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

def CMFLDAP::LDAPMembershipTool::LDAPMembershipTool::memberExists (   self,
  properties 
)

Does the incoming set of data collide with an existing member? 

Definition at line 53 of file LDAPMembershipTool.py.

00053                                       :
        """ Does the incoming set of data collide with an existing member? """
        acl = self.acl_users
        rdn_attr = acl.getProperty('_rdnattr')
        login_attr = acl.getProperty('_login_attr')

        my_rdn = properties.get(rdn_attr, None)
        my_login = properties.get('username')

        if not acl.isUnique(login_attr, my_login):
            return 'Login name'

        if not acl.isUnique(rdn_attr, my_rdn):
            return 'Name'

        return 0
        

InitializeClass(LDAPMembershipTool)


def manage_addLDAPMembershipTool(self, REQUEST=None):


Generated by  Doxygen 1.6.0   Back to index