diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-11-28 03:34:47 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-11-28 05:00:06 +0100 |
commit | a7675bd5010641051096344bffb9ce569193a8fb (patch) | |
tree | e819947fe36cbb7dfcdcf6c94855537b9e3894e9 /source4/scripting/python/samba/provision.py | |
parent | 6fea6368885a88f100def2aa230dfac1cb26b0d0 (diff) | |
download | samba-a7675bd5010641051096344bffb9ce569193a8fb.tar.gz samba-a7675bd5010641051096344bffb9ce569193a8fb.tar.xz samba-a7675bd5010641051096344bffb9ce569193a8fb.zip |
s4-python: Fix formatting of docstrings for the purpose of pydoctor.
Diffstat (limited to 'source4/scripting/python/samba/provision.py')
-rw-r--r-- | source4/scripting/python/samba/provision.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py index b5f37b555ae..70afc2a1ee8 100644 --- a/source4/scripting/python/samba/provision.py +++ b/source4/scripting/python/samba/provision.py @@ -241,7 +241,7 @@ def update_provision_usn(samdb, low, high, replace=False): tab = [] if not replace: - entry = samdb.search(expression="(&(dn=@PROVISION)(%s=*))" % \ + entry = samdb.search(expression="(&(dn=@PROVISION)(%s=*))" % LAST_PROVISION_USN_ATTRIBUTE, base="", scope=ldb.SCOPE_SUBTREE, attrs=[LAST_PROVISION_USN_ATTRIBUTE, "dn"]) @@ -296,10 +296,10 @@ def get_last_provision_usn(sam): """Get the lastest USN modified by a provision or an upgradeprovision :param sam: An LDB object pointing to the sam.ldb - :return an integer corresponding to the highest USN modified by - (upgrade)provision, 0 is this value is unknown""" - - entry = sam.search(expression="(&(dn=@PROVISION)(%s=*))" % \ + :return: an integer corresponding to the highest USN modified by + (upgrade)provision, 0 is this value is unknown + """ + entry = sam.search(expression="(&(dn=@PROVISION)(%s=*))" % LAST_PROVISION_USN_ATTRIBUTE, base="", scope=ldb.SCOPE_SUBTREE, attrs=[LAST_PROVISION_USN_ATTRIBUTE]) @@ -837,7 +837,7 @@ def setup_secretsdb(paths, setup_path, session_info, backend_credentials, lp): """Setup the secrets database. :note: This function does not handle exceptions and transaction on purpose, - it's up to the caller to do this job. + it's up to the caller to do this job. :param path: Path to the secrets database. :param setup_path: Get the path to a setup file. |