s.__init__ : module documentation

Part of samba

Samba 4.
Function source_tree_topdir Return the top level source directory.
Function in_source_tree Return True if we are running from within the samba source tree
Class Ldb Simple Samba-specific LDB subclass that takes care of setting up the modules dir, credentials pointers, etc.
Function substitute_var Substitute strings of the form ${NAME} in str, replacing with substitutions from values.
Function check_all_substituted Check that all substitution variables in a string have been replaced.
Function read_and_sub_file Read a file and sub in variables found in it
Function setup_file Setup a file in the private dir.
Function valid_netbios_name Check whether a name is valid as a NetBIOS name.
Function import_bundled_package Import the bundled version of a package.
Function ensure_external_module Add a location to sys.path if an external dependency can't be found.
Function dn_from_dns_name return a DN from a DNS name domain/forest root
def source_tree_topdir():
Return the top level source directory.
def in_source_tree():
Return True if we are running from within the samba source tree
def substitute_var(text, values):
Substitute strings of the form ${NAME} in str, replacing with substitutions from values.
ParameterstextText in which to subsitute.
valuesDictionary with keys and values.
def check_all_substituted(text):
Check that all substitution variables in a string have been replaced.

If not, raise an exception.

ParameterstextThe text to search for substitution variables
def read_and_sub_file(file_name, subst_vars):
Read a file and sub in variables found in it
Parametersfile_nameFile to be read (typically from setup directory) param subst_vars: Optional variables to subsitute in the file.
def setup_file(template, fname, subst_vars=None):
Setup a file in the private dir.
ParameterstemplatePath of the template file.
fnamePath of the file to create.
subst_varsSubstitution variables.
def valid_netbios_name(name):
Check whether a name is valid as a NetBIOS name.
def import_bundled_package(modulename, location):
Import the bundled version of a package.
ParametersmodulenameModule name to import
locationLocation to add to sys.path (can be relative to ${srcdir}/lib)
NoteThis should only be called if the system version of the package is not adequate.
def ensure_external_module(modulename, location):
Add a location to sys.path if an external dependency can't be found.
ParametersmodulenameModule name to import
locationLocation to add to sys.path (can be relative to ${srcdir}/lib)
def dn_from_dns_name(dnsdomain):
return a DN from a DNS name domain/forest root
API Documentation for Samba, generated by pydoctor at 2011-12-08 20:23:28.