summaryrefslogtreecommitdiff
path: root/source4/lib/tdb
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2007-09-09 06:39:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:05:47 -0500
commitd2f33d43804f102066afaf7cd6097fc4e38808d8 (patch)
treee27498b6870465ed218df832ce9ab983988590eb /source4/lib/tdb
parent203bb616b97d3ecfcaacb1136cb07cf05561eba3 (diff)
downloadsamba-d2f33d43804f102066afaf7cd6097fc4e38808d8.tar.gz
samba-d2f33d43804f102066afaf7cd6097fc4e38808d8.tar.bz2
samba-d2f33d43804f102066afaf7cd6097fc4e38808d8.zip
r25044: The has_key() method should return a boolean, not an integer.
Add TODO for missing iterator and other oddball methods. (This used to be commit cd89b6793776b6db75eac09c718bfc9551b7641b)
Diffstat (limited to 'source4/lib/tdb')
-rw-r--r--source4/lib/tdb/swig/Tdb.py6
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