Part of samba
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 |
Parameters | text | Text in which to subsitute. |
values | Dictionary with keys and values. |
If not, raise an exception.
Parameters | text | The text to search for substitution variables |
Parameters | file_name | File to be read (typically from setup directory) param subst_vars: Optional variables to subsitute in the file. |
Parameters | template | Path of the template file. |
fname | Path of the file to create. | |
subst_vars | Substitution variables. |
Parameters | modulename | Module name to import |
location | Location to add to sys.path (can be relative to ${srcdir}/lib) | |
Note | This should only be called if the system version of the package is not adequate. |