s4-python: added ndr_print() method in ndr
authorAndrew Tridgell <tridge@samba.org>
Sun, 22 Aug 2010 21:52:25 +0000 (07:52 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 23 Aug 2010 05:55:39 +0000 (15:55 +1000)
source4/scripting/python/samba/ndr.py

index c9ee6848a396bd1173f318916328bc807f163df7..3397e1da14b2dea1a5cd9425e9034301e9bf7e56 100644 (file)
@@ -26,3 +26,6 @@ def ndr_unpack(cls, data):
     object = cls()
     object.__ndr_unpack__(data)
     return object
+
+def ndr_print(object):
+    return object.__ndr_print__()