Package ldaptor :: Module entry :: Class BaseLDAPEntry
[hide private]
[frames] | no frames]

Class BaseLDAPEntry

source code

object --+
         |
        BaseLDAPEntry
Known Subclasses:
EditableLDAPEntry

Instance Methods [hide private]
 
__init__(self, dn, attributes={})
Initialize the object.
source code
 
buildAttributeSet(self, key, values) source code
 
__getitem__(self, key) source code
 
get(self, key, default={0: <class ldaptor.protocols.ldap.ldaperrors.Success at 0x86f6...) source code
 
has_key(self, key) source code
 
__contains__(self, key) source code
 
keys(self) source code
 
items(self) source code
 
__str__(self)
str(x)
source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__len__(self) source code
 
__nonzero__(self) source code
 
__repr__(self)
repr(x)
source code
 
diff(self, other)
Compute differences between this and another LDAP entry.
source code
 
bind(self, password) source code
 
_bind(self, password) source code
 
hasMember(self, dn) source code
 
__hash__(self)
hash(x)
source code
 
__providedBy__(...)
Object Specification Descriptor

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]
  dn = {0: <class ldaptor.protocols.ldap.ldaperrors.Success at 0...
  __implemented__ = <implementedBy ldaptor.entry.BaseLDAPEntry>
  __provides__ = <zope.interface.declarations.ClassProvides obje...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, dn, attributes={})
(Constructor)

source code 
Initialize the object.
Parameters:
  • dn - Distinguished Name of the object, as a string.
  • attributes - Attributes of the object. A dictionary of attribute types to list of attribute values.
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

diff(self, other)

source code 
Compute differences between this and another LDAP entry.
Parameters:
  • other - An LDAPEntry to compare to.
Returns:
None if equal, otherwise a ModifyOp that would make this entry look like other.

__hash__(self)
(Hashing function)

source code 
hash(x)
Overrides: object.__hash__
(inherited documentation)

Class Variable Details [hide private]

dn

Value:
{0: <class ldaptor.protocols.ldap.ldaperrors.Success at 0x86f695c>,
 1: <class 'ldaptor.protocols.ldap.ldaperrors.LDAPOperationsError'>,
 2: <class 'ldaptor.protocols.ldap.ldaperrors.LDAPProtocolError'>,
 3: <class 'ldaptor.protocols.ldap.ldaperrors.LDAPTimeLimitExceeded'>,
 4: <class 'ldaptor.protocols.ldap.ldaperrors.LDAPSizeLimitExceeded'>,
 5: <class 'ldaptor.protocols.ldap.ldaperrors.LDAPCompareFalse'>,
 6: <class 'ldaptor.protocols.ldap.ldaperrors.LDAPCompareTrue'>,
 7: <class 'ldaptor.protocols.ldap.ldaperrors.LDAPAuthMethodNotSupport\
...

__provides__

Value:
<zope.interface.declarations.ClassProvides object at 0x86f94ec>