mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Fix syntax of docstrings, set project name when generating Python API documentation.
(This used to be commit 68f13d87eb
)
This commit is contained in:
parent
7a402da97e
commit
2fa4c15858
@ -33,7 +33,7 @@ pythonmods:: $(PYTHON_DSOS) $(PYTHON_PYS)
|
||||
PYDOCTOR_MODULES=bin/python/ldb.py bin/python/auth.py bin/python/credentials.py bin/python/registry.py bin/python/tdb.py bin/python/security.py bin/python/events.py bin/python/net.py
|
||||
|
||||
pydoctor:: pythonmods
|
||||
LD_LIBRARY_PATH=bin/shared PYTHONPATH=bin/python pydoctor --make-html --docformat=restructuredtext --add-package scripting/python/samba/ $(addprefix --add-module , $(PYDOCTOR_MODULES))
|
||||
LD_LIBRARY_PATH=bin/shared PYTHONPATH=bin/python pydoctor --project-name=Samba --make-html --docformat=restructuredtext --add-package scripting/python/samba/ $(addprefix --add-module , $(PYDOCTOR_MODULES))
|
||||
|
||||
installpython:: pythonmods
|
||||
@$(SHELL) $(srcdir)/script/installpython.sh \
|
||||
|
@ -278,13 +278,12 @@ def setup_samdb_partitions(samdb_path, setup_path, message, lp, session_info,
|
||||
Alternatively, provision() may call this, and then populate the database.
|
||||
|
||||
:param erase: Remove the existing data present in the database.
|
||||
:param
|
||||
|
||||
:note: This will wipe the Sam Database!
|
||||
|
||||
:note: This function always removes the local SAM LDB file. The erase
|
||||
parameter controls whether to erase the existing data, which
|
||||
may not be stored locally but in LDAP.
|
||||
parameter controls whether to erase the existing data, which
|
||||
may not be stored locally but in LDAP.
|
||||
"""
|
||||
assert session_info is not None
|
||||
|
||||
@ -479,7 +478,6 @@ def setup_samdb_rootdse(samdb, setup_path, schemadn, domaindn, hostname,
|
||||
|
||||
:param samdb: Sam Database handle
|
||||
:param setup_path: Obtain setup path
|
||||
...
|
||||
"""
|
||||
setup_add_ldif(samdb, setup_path("provision_rootdse_add.ldif"), {
|
||||
"SCHEMADN": schemadn,
|
||||
|
@ -10,6 +10,7 @@
|
||||
from provision import findnss, provision, FILL_DRS
|
||||
import grp
|
||||
import ldb
|
||||
import time
|
||||
import pwd
|
||||
import uuid
|
||||
import registry
|
||||
@ -162,7 +163,6 @@ def import_wins(samba4_winsdb, samba3_winsdb):
|
||||
:param samba3_winsdb: WINS database to import from
|
||||
"""
|
||||
version_id = 0
|
||||
import time
|
||||
|
||||
for (name, (ttl, ips, nb_flags)) in samba3_winsdb.items():
|
||||
version_id+=1
|
||||
|
Loading…
Reference in New Issue
Block a user