[CMF-checkins] CVS: CMF - DiscussionItem.py:1.11

shane@digicool.com shane@digicool.com
Fri, 25 May 2001 13:43:37 -0400 (EDT)


Update of /cvs-repository/CMF/CMFDefault
In directory korak.digicool.com:/tmp/cvs-serv21979

Modified Files:
	DiscussionItem.py 
Log Message:
Temporarily removed workflow review_state checking since discussion items
cannot current be part of a workflow and thus have no review_state.
Once discussion items are able to be in a workflow we can reenable this
behavior.



--- Updated File DiscussionItem.py in package CMF --
--- DiscussionItem.py	2001/04/08 19:18:18	1.10
+++ DiscussionItem.py	2001/05/25 17:43:37	1.11
@@ -179,7 +179,7 @@
 
         for item in talkback._container.values():
             if item.in_reply_to == my_url:
-                if wf.getInfoFor( item, 'review_state' ) == 'published':
+                #if wf.getInfoFor( item, 'review_state' ) == 'published':
                     result.append(item.__of__(talkback))
 
         return result
@@ -295,15 +295,13 @@
         item = DiscussionItem( `id` )
         item.title = title
         item.description = title
-        item.text_format = 'structured-text'
-        item.text = text
+        item._edit('structured-text', text)
 
         if REQUEST.has_key( 'Creator' ):
             item.creator = REQUEST[ 'Creator' ]
 
         item.__of__(self).setReplyTo(self.aq_parent)
  
-        item._parse()
         self._container[`id`] = item
 
         RESPONSE.redirect( self.aq_inner.aq_parent.absolute_url() + '/view' )
@@ -329,7 +327,7 @@
 
         for item in self._container.values():
             if item.in_reply_to == my_url:
-                if wf.getInfoFor( item, 'review_state' ) == 'published':
+                #if wf.getInfoFor( item, 'review_state' ) == 'published':
                     result.append(item.getId())
 
         return result