diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/tdb/swig/Tdb.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/tdb/swig/Tdb.py b/source4/lib/tdb/swig/Tdb.py index 529d0753d1..d1a506e69c 100644 --- a/source4/lib/tdb/swig/Tdb.py +++ b/source4/lib/tdb/swig/Tdb.py @@ -69,7 +69,7 @@ class Tdb: tdb_delete(self.tdb, key) def has_key(self, key): - return tdb_exists(self.tdb, key) + return tdb_exists(self.tdb, key) != 0 # Tdb iterator @@ -113,3 +113,7 @@ class Tdb: def clear(self): for k in iter(self): del(self[k]) + + # TODO: iterkeys, itervalues, iteritems + + # TODO: any other missing methods for container types |