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

def LDAPUserFolder::LDAPUserFolder::LDAPUserFolder::isUnique (   self,
  attr,
  value 
)

    Find out if any objects have the same attribute value.
    This method should be called when a new user record is
    about to be created. It guards uniqueness of names by 
    warning for items with the same name.

Definition at line 1463 of file LDAPUserFolder.py.

01463                                    :
        """ 
            Find out if any objects have the same attribute value.
            This method should be called when a new user record is
            about to be created. It guards uniqueness of names by 
            warning for items with the same name.
        """
        search_str = '(%s=%s)' % (attr, str(value))
        res = self._delegate.search( base=self.users_base
                                   , scope=self.users_scope
                                   , filter=search_str
                                   )

        if res['exception']:
            return res['exception']

        return res['size'] < 1


    def getEncryptions(self):


Generated by  Doxygen 1.6.0   Back to index