[CMF-checkins] CVS: CMF - DiscussionItem.py:1.6
tseaver@digicool.com
tseaver@digicool.com
Mon, 26 Mar 2001 16:36:33 -0500 (EST)
Update of /cvs-repository/CMF/CMFDefault
In directory korak:/tmp/cvs-serv724/CMFDefault
Modified Files:
DiscussionItem.py
Log Message:
* Fix DiscussionItem Creator (PTK Tracker #203)
--- Updated File DiscussionItem.py in package CMF --
--- DiscussionItem.py 2001/03/23 02:11:55 1.5
+++ DiscussionItem.py 2001/03/26 21:36:32 1.6
@@ -131,6 +131,7 @@
"""
meta_type = 'Discussion Item'
allow_discussion = 1
+ creator = 'unknown'
__ac_permissions__ = (
('Change Discussion Items', ('edit',), ('Owner',)),
@@ -190,6 +191,11 @@
return self.editForm(self, REQUEST, portal_status_message= \
'Discussion item changed.')
+ def Creator( self ):
+ """
+ """
+ return self.creator
+
Globals.default__class_init__(DiscussionItem)
@@ -287,7 +293,7 @@
item.text = text
if REQUEST.has_key( 'Creator' ):
- item.Creator = REQUEST[ 'Creator' ]
+ item.creator = REQUEST[ 'Creator' ]
item.__of__(self).setReplyTo(self.aq_parent)