[CMF-checkins] SVN: CMF/trunk/CMFDefault/DiscussionItem.py Put the
DiscussionItem in its container before indexing it.
Florent Guillaume
fg at nuxeo.com
Mon Aug 1 14:40:20 EDT 2005
Log message for revision 37628:
Put the DiscussionItem in its container before indexing it.
Changed:
U CMF/trunk/CMFDefault/DiscussionItem.py
-=-
Modified: CMF/trunk/CMFDefault/DiscussionItem.py
===================================================================
--- CMF/trunk/CMFDefault/DiscussionItem.py 2005-08-01 18:35:47 UTC (rev 37627)
+++ CMF/trunk/CMFDefault/DiscussionItem.py 2005-08-01 18:40:20 UTC (rev 37628)
@@ -298,15 +298,16 @@
id = str( id )
item = DiscussionItem( id, title=title, description=title )
+ self._container[id] = item
+ item = item.__of__(self)
+
item._edit( text_format=text_format, text=text )
- item.__of__(self).addCreator(Creator)
- item.__of__(self).indexObject()
+ item.addCreator(Creator)
+ item.indexObject()
item.setReplyTo( self._getDiscussable() )
- item.__of__(self).notifyWorkflowCreated()
+ item.notifyWorkflowCreated()
- self._container[ id ] = item
-
return id
security.declareProtected(ManagePortal, 'deleteReply')
More information about the CMF-checkins
mailing list