[CMF-checkins] CVS: CMF/CMFCore - MembershipTool.py:1.28
Chris McDonough
chrism@zope.com
Mon, 14 Oct 2002 16:30:26 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv12992
Modified Files:
MembershipTool.py
Log Message:
Removed obfuscation. We don't need to look up the portal_membership tool because we are the portal_membership tool (thanks Shane!).
=== CMF/CMFCore/MembershipTool.py 1.27 => 1.28 ===
--- CMF/CMFCore/MembershipTool.py:1.27 Mon Oct 14 15:47:35 2002
+++ CMF/CMFCore/MembershipTool.py Mon Oct 14 16:30:25 2002
@@ -404,13 +404,8 @@
raise "Can't add Member", "No supported UserSources"
if properties is not None:
- # note that the below seems really silly. We *are* the
- # portal_membership tool, aren't we? Is there a reason
- # for this? Acqusition? How about a comment? - chrism
- membership = getToolByName(self, 'portal_membership')
- member = membership.getMemberById(id)
+ member = self.getMemberById(id)
member.setMemberProperties(properties)
-
security.declarePrivate('listActions')
def listActions(self, info=None):