r14897: Do more error checking of tdb function returns and raise IOError or
authorTim Potter <tpot@samba.org>
Mon, 3 Apr 2006 22:04:33 +0000 (22:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:00:13 +0000 (14:00 -0500)
commit6705f888d5a8a540e341ad782fa84036c400b753
treecb4e2fab999242cb96b32056b9cb874e62df7f23
parent1ac990ddcf8501ce551c87e70cb3722ae9f4f34b
r14897: Do more error checking of tdb function returns and raise IOError or
KeyError exceptions as appropriate.

Add a close() function to the wrapper as we can't rely on the
Python garbage collector destroying the object and closing the tdb file
at any particular time.
(This used to be commit a40d6c792257315d1eac955718db5ec1df7e07bb)
source4/scripting/swig/Tdb.py