[CMF-checkins] CVS: CMF/CMFDefault - DiscussionItem.py:1.36

Alan Runyan cvs-admin at zope.org
Sun Nov 16 04:43:20 EST 2003


Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv13950

Modified Files:
	DiscussionItem.py 
Log Message:
allow text_format to be passed in when creating a comment


=== CMF/CMFDefault/DiscussionItem.py 1.35 => 1.36 ===
--- CMF/CMFDefault/DiscussionItem.py:1.35	Sat Jun 28 12:31:21 2003
+++ CMF/CMFDefault/DiscussionItem.py	Sun Nov 16 04:43:18 2003
@@ -290,7 +290,7 @@
     #   Discussable interface
     #
     security.declareProtected(ReplyToItem, 'createReply')
-    def createReply( self, title, text, Creator=None ):
+    def createReply( self, title, text, Creator=None, text_format='structured-text' ):
         """
             Create a reply in the proper place
         """
@@ -302,7 +302,7 @@
         id = str( id )
 
         item = DiscussionItem( id, title=title, description=title )
-        item._edit( text_format='structured-text', text=text )
+        item._edit( text_format=text_format, text=text )
 
         if Creator:
             item.creator = Creator




More information about the CMF-checkins mailing list