[CMF-checkins] CVS: CMF/CMFCollector - CollectorIssue.py:1.46

Ken Manheimer klm@zope.com
Wed, 2 Oct 2002 13:57:14 -0400


Update of /cvs-repository/CMF/CMFCollector
In directory cvs.zope.org:/tmp/cvs-serv29013

Modified Files:
	CollectorIssue.py 
Log Message:
Make last update get properly set on updates!  Also, fix setting of
initial modification date.

Was failling to revise the modification_date on general issue actions
and edits - now using the DefaultDublinCoreImpl interface methods (and
use the right DefaultDublinCoreImpl method for initially setting the
modification_date, if one is explicitly specified).


=== CMF/CMFCollector/CollectorIssue.py 1.45 => 1.46 ===
--- CMF/CMFCollector/CollectorIssue.py:1.45	Sat Aug  3 22:31:30 2002
+++ CMF/CMFCollector/CollectorIssue.py	Wed Oct  2 13:57:13 2002
@@ -154,9 +154,8 @@
                                        effective_date=effective_date,
                                        expiration_date=expiration_date)
 
-        if modification_date is None:
-            modification_date = self.creation_date
-        self.modification_date = modification_date
+        if modification_date:
+            self.setModificationDate(DateTime(modification_date))
 
     def _set_submitter_specs(self, submitter_id,
                              submitter_name, submitter_email):
@@ -300,8 +299,11 @@
         else:
             transcript.edit(self.TRANSCRIPT_FORMAT,
                             transcript.EditableBody())            
+
+        self.notifyModified()
         self.reindexObject()
         self._send_update_notice('Edit', username)
+
         return ", ".join(changes)
 
     def _changed(self, field_name, value):
@@ -374,10 +376,13 @@
                             and ("\n" + RULE + "\n")
                             or '')
                          + transcript.EditableBody())
+
+        self.notifyModified()
         self.reindexObject()
         got = self._send_update_notice(action, username,
                                        orig_status, additions, removals,
                                        file=file, fileid=fileid)
+
         return got
 
     def _supporters_diff(self, orig_supporters):