[CMF-checkins] CVS: Releases/CMF/CMFCollector - CollectorIssue.py:1.34 WebTextDocument.py:1.6

Jens Vagelpohl jens@zope.com
Tue, 11 Dec 2001 18:46:49 -0500


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

Modified Files:
	CollectorIssue.py WebTextDocument.py 
Log Message:
changes to match the recent refactoring of Document.edit and Document._edit



=== Releases/CMF/CMFCollector/CollectorIssue.py 1.33 => 1.34 ===
         if text is not None and text != transcript.text:
             changes.append('edited transcript')
-            transcript._edit(text_format=self.TRANSCRIPT_FORMAT, text=text)
+            transcript.edit(text_format=self.TRANSCRIPT_FORMAT, text=text)
         if changed('title', title):
             changes.append('revised title')
             self.title = title
@@ -284,7 +284,7 @@
         else:
             comment = ''
 
-        transcript._edit(self.TRANSCRIPT_FORMAT,
+        transcript.edit(self.TRANSCRIPT_FORMAT,
                          self._entry_header('Edit', username)
                          + "\n\n"
                          + " Changes: " + ", ".join(changes)
@@ -358,7 +358,7 @@
 
         comment_header_str = "\n\n".join(comment_header) + "\n\n"
 
-        transcript._edit(self.TRANSCRIPT_FORMAT,
+        transcript.edit(self.TRANSCRIPT_FORMAT,
                          comment_header_str
                          + comment
                          + ((action_number > 1)


=== Releases/CMF/CMFCollector/WebTextDocument.py 1.5 => 1.6 ===
             return Document.guessFormat(self, text)
 
-    def _edit(self, text_format, text, file='', safety_belt=''):
-        got = Document._edit(self, text_format or self.text_format,
+    def edit(self, text_format, text, file='', safety_belt=''):
+        got = Document.edit(self, text_format or self.text_format,
                              text=text, file=file, safety_belt=safety_belt)
         # The document stubbornly insists on a text format it likes, despite
         # our explicit specification - set it back: