[CMF-checkins] CVS: CMF/CMFCollector - CollectorIssue.py:1.57
Casey Duncan
casey at zope.com
Fri Jul 9 11:25:45 EDT 2004
Update of /cvs-repository/CMF/CMFCollector
In directory cvs.zope.org:/tmp/cvs-serv4392
Modified Files:
CollectorIssue.py
Log Message:
Make sure notifyCreated is only called when the issue is first created. manage_afterAdd can be triggered at other times which would cause issues to become pending again because their workflow state was reset.
=== CMF/CMFCollector/CollectorIssue.py 1.56 => 1.57 ===
--- CMF/CMFCollector/CollectorIssue.py:1.56 Fri May 7 12:23:56 2004
+++ CMF/CMFCollector/CollectorIssue.py Fri Jul 9 11:25:45 2004
@@ -163,6 +163,9 @@
if modification_date:
self._setModificationDate(DateTime(modification_date))
+ wf = getToolByName(self, 'portal_workflow', None)
+ if wf is not None:
+ wf.notifyCreated(contained)
def _set_submitter_specs(self, submitter_id,
submitter_name, submitter_email):
@@ -702,9 +705,6 @@
# Are we being added (or moved)?
if aq_base(container) is not aq_base(self):
self._set_collector_path(self.aq_parent)
- wf = getToolByName(self, 'portal_workflow', None)
- if wf is not None:
- wf.notifyCreated(self)
self.indexObject()
def manage_beforeDelete(self, item, container):
More information about the CMF-checkins
mailing list