diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-06-08 04:20:26 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-06-08 04:20:26 +0200 |
commit | cad533c68e8100131dca364b76abdedac31f4184 (patch) | |
tree | d339242775aa3f44ff0fd9184ffdf6f4f4128d95 /source4/lib/tdb/tdb.py | |
parent | 3df0fee42d39301d276f4148ab9861514cbe7b6d (diff) | |
download | samba-cad533c68e8100131dca364b76abdedac31f4184.tar.gz samba-cad533c68e8100131dca364b76abdedac31f4184.tar.bz2 samba-cad533c68e8100131dca364b76abdedac31f4184.zip |
Add more docstrings in tdb.
(This used to be commit 3d798a1440603b7929955f2120f09ba1482885a1)
Diffstat (limited to 'source4/lib/tdb/tdb.py')
-rw-r--r-- | source4/lib/tdb/tdb.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/lib/tdb/tdb.py b/source4/lib/tdb/tdb.py index a8c1d06e0d..9f306bab8c 100644 --- a/source4/lib/tdb/tdb.py +++ b/source4/lib/tdb/tdb.py @@ -92,6 +92,13 @@ class Tdb(object): Open a TDB file. """ _tdb.Tdb_swiginit(self,_tdb.new_Tdb(*args, **kwargs)) + def error(*args, **kwargs): + """ + S.error() -> int + Find last error number returned by operation on this TDB. + """ + return _tdb.Tdb_error(*args, **kwargs) + __swig_destroy__ = _tdb.delete_Tdb def close(*args, **kwargs): """ @@ -128,6 +135,13 @@ class Tdb(object): """ return _tdb.Tdb_store(*args, **kwargs) + def exists(*args, **kwargs): + """ + S.exists(key) -> bool + Check whether key exists in this database. + """ + return _tdb.Tdb_exists(*args, **kwargs) + def firstkey(*args, **kwargs): """ S.firstkey() -> data |