fix: useExisting in MemberRegistration

This commit is contained in:
hplattner 2012-05-07 17:14:58 +02:00
parent c74af2b960
commit f0bc424168

View file

@ -72,7 +72,7 @@ class MemberRegistrationManager(object):
if pfName is None: if pfName is None:
pfName = options(self.principalfolder_key, pfName = options(self.principalfolder_key,
(self.default_principalfolder,))[0] (self.default_principalfolder,))[0]
self.createPrincipal(pfName, userId, password, lastName, firstName) self.createPrincipal(pfName, userId, password, lastName, firstName, useExisting=useExisting)
if len(groups)==0: if len(groups)==0:
groups = options(self.groups_key, ()) groups = options(self.groups_key, ())
self.setGroupsForPrincipal(pfName, userId, groups=groups) self.setGroupsForPrincipal(pfName, userId, groups=groups)