summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Vagelpohl <jens@netz.ooo>2004-02-06 17:15:57 +0000
committerJens Vagelpohl <jens@netz.ooo>2004-02-06 17:15:57 +0000
commit43f6a2a0d857cb1cf8095452da996e8cc7cd4066 (patch)
treee823445d02ed92124515cb3d58d924853def13c5
parent60507953ee6e7a6da7d2b1799a9de891d9706e63 (diff)
downloadCMFLDAP-43f6a2a0d857cb1cf8095452da996e8cc7cd4066.zip
CMFLDAP-43f6a2a0d857cb1cf8095452da996e8cc7cd4066.tar.gz
- slight variation on setting properties on the member upon adding it
-rw-r--r--LDAPMembershipTool.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/LDAPMembershipTool.py b/LDAPMembershipTool.py
index 28fc553..ded6a9c 100644
--- a/LDAPMembershipTool.py
+++ b/LDAPMembershipTool.py
@@ -42,12 +42,13 @@ class LDAPMembershipTool(MembershipTool):
args[login_attr] = id
args['user_roles'] = roles
- for key, val in properties.form.items():
- args[key] = val
-
acl.manage_addUser(REQUEST=None, kwargs=args)
self.createMemberarea(id)
+ if properties is not None:
+ member = self.getMemberById(id)
+ member.setMemberProperties(properties)
+
security.declareProtected(View, 'memberExists')
def memberExists(self, properties):