git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f30cd5
)
r25044: The has_key() method should return a boolean, not an integer.
author
Tim Potter
<tpot@samba.org>
Sun, 9 Sep 2007 06:39:24 +0000
(06:39 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 20:05:47 +0000
(15:05 -0500)
Add TODO for missing iterator and other oddball methods.
source/lib/tdb/swig/Tdb.py
patch
|
blob
|
history
diff --git
a/source/lib/tdb/swig/Tdb.py
b/source/lib/tdb/swig/Tdb.py
index 529d0753d11a5dd6429da7db12e430bc3fa38148..d1a506e69c0460a18b5911c475c9019a382c3b6f 100644
(file)
--- a/
source/lib/tdb/swig/Tdb.py
+++ b/
source/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