pytdb: Add support for tdb_add_flags() & tdb_remove_flags()
authorKirill Smelkov <kirr@mns.spb.ru>
Sun, 19 Sep 2010 09:53:20 +0000 (13:53 +0400)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 8 Oct 2010 01:55:31 +0000 (12:55 +1100)
commitc53392d5cbb8b0aaf40d6da231e986bc49f66ed2
tree80dafc83b2ca3544447317550b4dd4081e92e774
parent9aff8e281d0c914dce460fc6b1046edc3611e95b
pytdb: Add support for tdb_add_flags() & tdb_remove_flags()

Note, unlike tdb_open where flags is `int', tdb_{add,remove}_flags want
flags as `unsigned', so instead of "i" I used "I" in PyArg_ParseTuple.

Cc: 597386@bugs.debian.org
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
lib/tdb/pytdb.c
lib/tdb/python/tests/simple.py