[CMF-checkins] SVN: CMF/branches/1.5/CMFDefault/DiscussionItem.py
Merge from 37628 on trunk:
Florent Guillaume
fg at nuxeo.com
Mon Aug 1 14:42:54 EDT 2005
Log message for revision 37629:
Merge from 37628 on trunk:
Put the DiscussionItem in its container before indexing it.
Changed:
U CMF/branches/1.5/CMFDefault/DiscussionItem.py
-=-
Modified: CMF/branches/1.5/CMFDefault/DiscussionItem.py
===================================================================
--- CMF/branches/1.5/CMFDefault/DiscussionItem.py 2005-08-01 18:40:20 UTC (rev 37628)
+++ CMF/branches/1.5/CMFDefault/DiscussionItem.py 2005-08-01 18:42:53 UTC (rev 37629)
@@ -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