[CMF-checkins] CVS: Products/CMFDefault/skins/generic -
discussion_reply.py:1.3.32.2
Sidnei da Silva
sidnei at awkly.org
Thu Mar 17 11:35:50 EST 2005
Update of /cvs-repository/Products/CMFDefault/skins/generic
In directory cvs.zope.org:/tmp/cvs-serv7445/skins/generic
Modified Files:
Tag: CMF-1_4-branch
discussion_reply.py
Log Message:
Use getToolByName
=== Products/CMFDefault/skins/generic/discussion_reply.py 1.3.32.1 => 1.3.32.2 ===
--- Products/CMFDefault/skins/generic/discussion_reply.py:1.3.32.1 Thu Apr 22 13:47:53 2004
+++ Products/CMFDefault/skins/generic/discussion_reply.py Thu Mar 17 11:35:49 2005
@@ -1,8 +1,9 @@
## Script (Python) "discussion_reply"
##parameters=title,text
##title=Reply to content
-
-Creator = context.portal_membership.getAuthenticatedMember().getId()
+from Products.CMFCore.utils import getToolByName
+pm = getToolByName(context, 'portal_membership')
+Creator = pm.getAuthenticatedMember().getId()
replyID = context.createReply( title = title
, text = text
, Creator = Creator
More information about the CMF-checkins
mailing list