Home | Trees | Index | Help |
|
---|
Package ldaptor :: Module interfaces :: Class ILDAPEntry |
|
object
--+ |Interface
--+ | ILDAPEntry
>>> o=LDAPEntry(client=ldapclient.LDAPClient(), ... dn='cn=foo,dc=example,dc=com', ... attributes={'anAttribute': ['itsValue', 'secondValue'], ... 'onemore': ['aValue'], ... }) >>> o LDAPEntry(dn='cn=foo,dc=example,dc=com', attributes={'anAttribute': ['itsValue', 'secondValue'], 'onemore': ['aValue']})
Method Summary | |
---|---|
TODO | |
Comparison. | |
Get all values of an attribute. | |
TODO | |
Inequality comparison. | |
Always return True | |
Stringify as LDIF. | |
Get all values of an attribute. | |
TODO | |
TODO | |
TODO | |
Inherited from Interface | |
(Class method) | |
Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value |
Instance Method Details |
---|
__contains__(self,
key)
TODO
|
__eq__(self,
other)
Comparison. Only equality is supported.
|
__getitem__(self,
key)
Get all values of an attribute.
|
__len__(self)
TODO
|
__ne__(self, other)Inequality comparison. See__eq__ .
|
__nonzero__(self)
Always return True
|
__str__(self)
Stringify as LDIF.
|
get(self, key, default=None)Get all values of an attribute.>>> o=LDAPEntry(client=ldapclient.LDAPClient(), ... dn='cn=foo,dc=example,dc=com', ... attributes={'anAttribute': ['itsValue']}) >>> o.get('anAttribute') ['itsValue'] >>> o.get('foo') >>> o.get('foo', []) [] |
has_key(self, key)TODO |
items(self)TODO |
keys(self)TODO |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Tue Aug 17 17:08:20 2004 | http://epydoc.sf.net |