svn commit: samba r25044 - in
branches/SAMBA_4_0/source/lib/tdb/swig: .
tpot at samba.org
tpot at samba.org
Sun Sep 9 06:39:25 GMT 2007
Author: tpot
Date: 2007-09-09 06:39:24 +0000 (Sun, 09 Sep 2007)
New Revision: 25044
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25044
Log:
The has_key() method should return a boolean, not an integer.
Add TODO for missing iterator and other oddball methods.
Modified:
branches/SAMBA_4_0/source/lib/tdb/swig/Tdb.py
Changeset:
Modified: branches/SAMBA_4_0/source/lib/tdb/swig/Tdb.py
===================================================================
--- branches/SAMBA_4_0/source/lib/tdb/swig/Tdb.py 2007-09-09 01:08:50 UTC (rev 25043)
+++ branches/SAMBA_4_0/source/lib/tdb/swig/Tdb.py 2007-09-09 06:39:24 UTC (rev 25044)
@@ -69,7 +69,7 @@
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 @@
def clear(self):
for k in iter(self):
del(self[k])
+
+ # TODO: iterkeys, itervalues, iteritems
+
+ # TODO: any other missing methods for container types
More information about the samba-cvs
mailing list