[CMF-checkins] CVS: CMF/CMFCore - MemberDataTool.py:1.30.12.2
Yvo Schubbe
schubbe at web.de
Tue Sep 9 10:01:51 EDT 2003
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv14535/CMFCore
Modified Files:
Tag: yuppie-deleteMembers-branch
MemberDataTool.py
Log Message:
added deleteMemberData method
=== CMF/CMFCore/MemberDataTool.py 1.30.12.1 => 1.30.12.2 ===
--- CMF/CMFCore/MemberDataTool.py:1.30.12.1 Tue Sep 9 07:58:39 2003
+++ CMF/CMFCore/MemberDataTool.py Tue Sep 9 09:01:21 2003
@@ -217,6 +217,17 @@
"""
self._members[id] = m
+ security.declarePrivate('deleteMemberData')
+ def deleteMemberData(self, member_id):
+ """ Delete member data of specified member.
+ """
+ members = self._members
+ if members.has_key(member_id):
+ del members[member_id]
+ return 1
+ else:
+ return 0
+
InitializeClass(MemberDataTool)
More information about the CMF-checkins
mailing list