From 6bdd1425b75c8931965f0e5627f5a63dc6820a7c Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 10 Jan 2008 21:44:38 +0100 Subject: tdb: Add simple reimplementation of tdbdump in Python as an example of the tdb Python bindings. (This used to be commit 47d797f7885b1e7bcff724496ecb1990e8440eea) --- source4/lib/tdb/python/tdbdump.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 source4/lib/tdb/python/tdbdump.py diff --git a/source4/lib/tdb/python/tdbdump.py b/source4/lib/tdb/python/tdbdump.py new file mode 100644 index 0000000000..d759d771c8 --- /dev/null +++ b/source4/lib/tdb/python/tdbdump.py @@ -0,0 +1,12 @@ +#!/usr/bin/python +# Trivial reimplementation of tdbdump in Python + +import tdb, sys + +if len(sys.argv) < 2: + print "Usage: tdbdump.py " + sys.exit(1) + +db = tdb.Tdb(sys.argv[1]) +for (k, v) in db.iteritems(): + print "{\nkey(%d) = %r\ndata(%d) = %r\n}" % (len(k), k, len(v), v) -- cgit From 9eec5ad906de136e885130d83ff31862c0cc8074 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 10 Jan 2008 22:04:50 +0100 Subject: Update ignore list. (This used to be commit c21886614ddacbabef2420e4cf67e0488439c9c8) --- .gitignore | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index 8af28d01af..4e608544b5 100644 --- a/.gitignore +++ b/.gitignore @@ -179,3 +179,15 @@ source/lib/registry/tools/common.h source/librpc/ndr/ndr_table.h source/rpc_server/lsa/proto.h source/torture/winbind/proto.h +*~ +source/auth/auth_sam_reply.h +source/auth/session_proto.h +source/auth/system_session_proto.h +source/dsdb/common/proto.h +source/dsdb/schema/proto.h +source/lib/crypto/test_proto.h +source/lib/registry/tests/proto.h +source/lib/util/apidocs +source/lib/util/util_ldb.h +source/libcli/ldap/ldap_ndr.h +source/libcli/resolve/lp_proto.h -- cgit From dc6058e9922b277c01b0569042a62509b7294dec Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 10 Jan 2008 23:40:08 +0100 Subject: Ignore compiled Python files. (This used to be commit ff14ffc6582874d8248798bebd57703fbdbda942) --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 4e608544b5..7d87dbff53 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ autom4te.cache *.x *.hd *.ho +*.pyc Makefile configure source/bin/* -- cgit