diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-09-18 23:54:53 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-09-18 23:54:53 +0200 |
commit | ec80fe4b214e311952ab67b3fd8b1cb1551c3b5c (patch) | |
tree | eac06f0be57dca910523381a1eace49c914e304f | |
parent | fc7050e54c69919d754ca0adf3f2f741a501fec4 (diff) | |
download | samba-ec80fe4b214e311952ab67b3fd8b1cb1551c3b5c.tar.gz samba-ec80fe4b214e311952ab67b3fd8b1cb1551c3b5c.tar.bz2 samba-ec80fe4b214e311952ab67b3fd8b1cb1551c3b5c.zip |
Implement __repr__ for Sid.
-rw-r--r-- | source4/libcli/security/security.i | 8 |
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" \ |