Logo Search packages:      
Sourcecode: ldaptor version File versions

def ldaptor::interfaces::ILDAPEntry::__str__ (   self  ) 


Stringify as LDIF.

>>> o=LDAPEntry(client=ldapclient.LDAPClient(),
...     dn='cn=foo,dc=example,dc=com',
...     attributes={'anAttribute': ['itsValue', 'secondValue'],
...     'onemore': ['aValue'],
...	})
>>> # must use rstrip or doctests won't like it due to the empty line
>>> # you can just say "print o"
>>> print str(o).rstrip()
dn: cn=foo,dc=example,dc=com
anAttribute: itsValue
anAttribute: secondValue
onemore: aValue

Definition at line 59 of file interfaces.py.

00059                      :
      """

      Stringify as LDIF.

      >>> o=LDAPEntry(client=ldapclient.LDAPClient(),
      ...     dn='cn=foo,dc=example,dc=com',
      ...     attributes={'anAttribute': ['itsValue', 'secondValue'],
      ...     'onemore': ['aValue'],
      ...   })
      >>> # must use rstrip or doctests won't like it due to the empty line
      >>> # you can just say "print o"
      >>> print str(o).rstrip()
      dn: cn=foo,dc=example,dc=com
      anAttribute: itsValue
      anAttribute: secondValue
      onemore: aValue

      """

    def __eq__(self, other):


Generated by  Doxygen 1.6.0   Back to index