pyldb: use dn.is_child_of() instead of dn.compare_base()
authorAndrew Tridgell <tridge@samba.org>
Thu, 14 Jul 2011 03:17:49 +0000 (13:17 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 21 Jul 2011 01:44:36 +0000 (11:44 +1000)
commita36af1a5011dddd5551c768f9bf69188c8775a43
tree7c9a445d7a2272d02f4be9c549d104ac3ac0e7b2
parent9117a2fa3c5f6b6d16aefc9652670a2b5e878e7c
pyldb: use dn.is_child_of() instead of dn.compare_base()

the compare_base() C API doesn't really fit well in python, as it
returns 0 for true. Better to have a boolean function for the python
interface.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
lib/ldb/pyldb.c
lib/ldb/tests/python/api.py