[Erp5-report] r34091 jerome - /erp5/trunk/products/ERP5/Tool/NotificationTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Mar 25 13:02:06 CET 2010
Author: jerome
Date: Thu Mar 25 13:02:04 2010
New Revision: 34091
URL: http://svn.erp5.org?rev=34091&view=rev
Log:
use appropriate event portal type, even when not storing the event.
Modified:
erp5/trunk/products/ERP5/Tool/NotificationTool.py
Modified: erp5/trunk/products/ERP5/Tool/NotificationTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/NotificationTool.py?rev=34091&r1=34090&r2=34091&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/NotificationTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/NotificationTool.py [utf8] Thu Mar 25 13:02:04 2010
@@ -339,8 +339,9 @@
if event_keyword_argument_dict is None:
event_keyword_argument_dict = {}
for notifier in notifier_list:
- if notifier in available_notifier_list and store_as_event:
+ if notifier in available_notifier_list:
event = self.getDefaultModule(notifier).newContent(portal_type=notifier,
+ temp_object=not store_as_event,
**event_keyword_argument_dict)
else:
from Products.ERP5Type.Document import newTempEvent
More information about the Erp5-report
mailing list