summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-11 01:02:58 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-01-11 01:04:25 +0100
commitc3695026e1cfac3e835e937ed9343d82500cf197 (patch)
tree1e3bcbfb58bd300340e044a9879a09ada5925af6 /source4/lib/ldb/ldb.py
parent9269db983d847be7a0cdc9eb2bcc4ebe3066be1c (diff)
downloadsamba-c3695026e1cfac3e835e937ed9343d82500cf197.tar.gz
samba-c3695026e1cfac3e835e937ed9343d82500cf197.tar.bz2
samba-c3695026e1cfac3e835e937ed9343d82500cf197.zip
ldb/python: Implement __len__ for MessageElement.
(This used to be commit a8f90ed34ce9341080b63c801ef54b82de42b8e6)
Diffstat (limited to 'source4/lib/ldb/ldb.py')
-rw-r--r--source4/lib/ldb/ldb.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb.py b/source4/lib/ldb/ldb.py
index 51a4a0fadb..2d037f080c 100644
--- a/source4/lib/ldb/ldb.py
+++ b/source4/lib/ldb/ldb.py
@@ -110,6 +110,7 @@ class ldb_msg_element(object):
ldb_msg_element.__iter__ = new_instancemethod(_ldb.ldb_msg_element___iter__,None,ldb_msg_element)
ldb_msg_element.__set__ = new_instancemethod(_ldb.ldb_msg_element___set__,None,ldb_msg_element)
+ldb_msg_element.__len__ = new_instancemethod(_ldb.ldb_msg_element___len__,None,ldb_msg_element)
ldb_msg_element.get = new_instancemethod(_ldb.ldb_msg_element_get,None,ldb_msg_element)
ldb_msg_element.__cmp__ = new_instancemethod(_ldb.ldb_msg_element___cmp__,None,ldb_msg_element)
ldb_msg_element_swigregister = _ldb.ldb_msg_element_swigregister