Logo Search packages:      
Sourcecode: ldaptor version File versions

def ldaptor::interfaces::ILDAPEntry::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', [])
[]

Definition at line 31 of file interfaces.py.

00031                                     :
      """

      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', [])
      []

      """

    def has_key(self, key):


Generated by  Doxygen 1.6.0   Back to index