summaryrefslogtreecommitdiff
path: root/source4/libcli/security
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-18 23:54:53 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-18 23:54:53 +0200
commitec80fe4b214e311952ab67b3fd8b1cb1551c3b5c (patch)
treeeac06f0be57dca910523381a1eace49c914e304f /source4/libcli/security
parentfc7050e54c69919d754ca0adf3f2f741a501fec4 (diff)
downloadsamba-ec80fe4b214e311952ab67b3fd8b1cb1551c3b5c.tar.gz
samba-ec80fe4b214e311952ab67b3fd8b1cb1551c3b5c.tar.bz2
samba-ec80fe4b214e311952ab67b3fd8b1cb1551c3b5c.zip
Implement __repr__ for Sid.
Diffstat (limited to 'source4/libcli/security')
-rw-r--r--source4/libcli/security/security.i8
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/libcli/security/security.i b/source4/libcli/security/security.i
index 1d964cc3d5..6ba106bb5f 100644
--- a/source4/libcli/security/security.i
+++ b/source4/libcli/security/security.i
@@ -27,8 +27,8 @@ typedef struct security_token security_token;
typedef struct security_descriptor security_descriptor;
%}
-%import "../../lib/talloc/talloc.i"
-%import "../util/errors.i"
+%import "../lib/talloc/talloc.i"
+%include "../util/errors.i"
%import "stdint.i"
enum sec_privilege {
@@ -117,6 +117,10 @@ typedef struct dom_sid {
#endif
bool equal(const struct dom_sid *other);
}
+%pythoncode {
+ def __repr__(self):
+ return "Sid(%r)" % str(self)
+}
} dom_sid;
%feature("docstring") random_sid "random_sid() -> sid\n" \