1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-22 16:59:09 +03:00

Implement __repr__ for Sid.

This commit is contained in:
Jelmer Vernooij
2008-09-18 23:54:53 +02:00
parent fc7050e54c
commit ec80fe4b21

View File

@ -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" \