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

Ken Manheimer klm@zope.com
Fri, 8 Mar 2002 15:40:02 -0500


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

Modified Files:
	CollectorIssue.py 
Log Message:
Add "stealthy" option, so issues can be edited without leaving an
overt trace - no new comment (even if the comment is filled in).

This option to do this should be per-collector configurable.


=== CMF/CMFCollector/CollectorIssue.py 1.40 => 1.41 ===
              importance=None,
              version_info=None,
+             stealthy=None,
              comment=None,
              text=None):
         """Update the explicitly passed fields."""
@@ -287,13 +288,17 @@
         else:
             comment = ''
 
-        transcript.edit(self.TRANSCRIPT_FORMAT,
-                         self._entry_header('Edit', username)
-                         + "\n\n"
-                         + " Changes: " + ", ".join(changes)
-                         + comment
-                         + ((self.action_number > 1) and "\n" + RULE + "\n")
-                         + transcript.EditableBody())
+        if not stealthy:
+            transcript.edit(self.TRANSCRIPT_FORMAT,
+                            self._entry_header('Edit', username)
+                            + "\n\n"
+                            + " Changes: " + ", ".join(changes)
+                            + comment
+                            + ((self.action_number > 1) and "\n" + RULE + "\n")
+                            + transcript.EditableBody())
+        else:
+            transcript.edit(self.TRANSCRIPT_FORMAT,
+                            transcript.EditableBody())            
         self.reindexObject()
         self._send_update_notice('Edit', username)
         return ", ".join(changes)