Logo Search packages:      
Sourcecode: zope-cmfldap version File versions

def CMFLDAP::LDAPMembershipTool::LDAPMembershipTool::addMember (   self,
  id,
  password,
  roles,
  domains,
  properties 
)

    Adds a new member to the user folder.  Security checks will have
    already been performed.  Called by portal_registration.

Definition at line 32 of file LDAPMembershipTool.py.

00032                                                                  :
        """
            Adds a new member to the user folder.  Security checks will have
            already been performed.  Called by portal_registration.
        """
        args = {}
        acl = self.acl_users
        login_attr = acl.getProperty('_login_attr')
        
        args['user_pw'] = args['confirm_pw'] = password
        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)


    security.declareProtected(View, 'memberExists')
    def memberExists(self, properties):


Generated by  Doxygen 1.6.0   Back to index