diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-05-24 04:01:57 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-05-24 04:01:57 +0200 |
commit | 73b789b6d25698dba15c867c71d0cdd8c264f352 (patch) | |
tree | c6c94f7fffbd9461424a53fc9ebdbd5b11b95303 /source4/scripting/python/misc.py | |
parent | b9c3aae792d06e01802c860f9cb8a463fb2a7428 (diff) | |
download | samba-73b789b6d25698dba15c867c71d0cdd8c264f352.tar.gz samba-73b789b6d25698dba15c867c71d0cdd8c264f352.tar.bz2 samba-73b789b6d25698dba15c867c71d0cdd8c264f352.zip |
Add docstrings to a couple more python modules.
(This used to be commit b4560c90e5e8d3a35367d3a21d361dc4c9c0de23)
Diffstat (limited to 'source4/scripting/python/misc.py')
-rw-r--r-- | source4/scripting/python/misc.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source4/scripting/python/misc.py b/source4/scripting/python/misc.py index 25e8d2de8c..0c14944001 100644 --- a/source4/scripting/python/misc.py +++ b/source4/scripting/python/misc.py @@ -3,6 +3,10 @@ # # Don't modify this file, modify the SWIG interface instead. +""" +Python bindings for miscellaneous Samba functions. +""" + import _misc import new new_instancemethod = new.instancemethod @@ -61,7 +65,13 @@ import ldb import credentials import param import security -random_password = _misc.random_password + +def random_password(*args, **kwargs): + """ + S.random_password(len) -> string + Generate random password with specified length. + """ + return _misc.random_password(*args, **kwargs) def ldb_set_credentials(*args, **kwargs): """ |