Logo Search packages:      
Sourcecode: ldaptor version File versions

def ldaptor::interfaces::ILDAPEntry::__eq__ (   self,
  other 
)


Comparison. Only equality is supported.

>>> client=ldapclient.LDAPClient()
>>> a=LDAPEntry(client=client,
...             dn='dc=example,dc=com')
>>> b=LDAPEntry(client=client,
...             dn='dc=example,dc=com')
>>> a==b
1
>>> c=LDAPEntry(client=ldapclient.LDAPClient(),
...             dn='ou=different,dc=example,dc=com')
>>> a==c
0

Comparison does not consider the client of the object.

>>> anotherClient=ldapclient.LDAPClient()
>>> d=LDAPEntry(client=anotherClient,
...             dn='dc=example,dc=com')
>>> a==d
1

Definition at line 79 of file interfaces.py.

00079                            :
      """

      Comparison. Only equality is supported.

      >>> client=ldapclient.LDAPClient()
      >>> a=LDAPEntry(client=client,
      ...             dn='dc=example,dc=com')
      >>> b=LDAPEntry(client=client,
      ...             dn='dc=example,dc=com')
      >>> a==b
      1
      >>> c=LDAPEntry(client=ldapclient.LDAPClient(),
      ...             dn='ou=different,dc=example,dc=com')
      >>> a==c
      0

      Comparison does not consider the client of the object.

      >>> anotherClient=ldapclient.LDAPClient()
      >>> d=LDAPEntry(client=anotherClient,
      ...             dn='dc=example,dc=com')
      >>> a==d
      1

      """

    def __ne__(self, other):


Generated by  Doxygen 1.6.0   Back to index