[CMF-checkins] SVN: CMF/branches/1.6/CMFCore/RegistrationTool.py Not to forget addMember :-O

Alec Mitchell apm13 at columbia.edu
Sat Mar 31 14:25:46 EDT 2007


Log message for revision 73957:
  Not to forget addMember :-O
  

Changed:
  U   CMF/branches/1.6/CMFCore/RegistrationTool.py

-=-
Modified: CMF/branches/1.6/CMFCore/RegistrationTool.py
===================================================================
--- CMF/branches/1.6/CMFCore/RegistrationTool.py	2007-03-31 17:26:09 UTC (rev 73956)
+++ CMF/branches/1.6/CMFCore/RegistrationTool.py	2007-03-31 18:25:46 UTC (rev 73957)
@@ -32,6 +32,7 @@
 from utils import _limitGrantedRoles
 from utils import getToolByName
 from utils import _dtmldir
+from utils import postonly
 
 from interfaces.portal_registration \
         import portal_registration as IRegistrationTool
@@ -128,7 +129,7 @@
 
     security.declareProtected(AddPortalMember, 'addMember')
     def addMember(self, id, password, roles=('Member',), domains='',
-                  properties=None):
+                  properties=None, REQUEST=None):
         '''Creates a PortalMember and returns it. The properties argument
         can be a mapping with additional member properties. Raises an
         exception if the given id already exists, the password does not
@@ -160,6 +161,7 @@
         member = membership.getMemberById(id)
         self.afterAdd(member, id, password, properties)
         return member
+    addMember = postonly(addMember)
 
     security.declareProtected(AddPortalMember, 'isMemberIdAllowed')
     def isMemberIdAllowed(self, id):



More information about the CMF-checkins mailing list