Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Public Member Functions | |
def | __init__ (self, tablename="sippeers") |
def | connect (self, user, password, host, port, database) |
def | read (self, filename, sect=None) |
def | write (self, config_file) |
def | write_dicts (self, config_file, mdicts) |
Public Member Functions inherited from MultiOrderedConfigParser | |
def | __init__ (self, parent=None) |
def | add_default (self, key, template_keys=None) |
def | add_include (self, filename, parser=None) |
def | add_section (self, key, template_keys=None, mdicts=None) |
def | default (self, key) |
def | defaults (self) |
def | find_value (self, sections, key) |
def | get (self, section, key) |
def | get_defaults (self, key) |
def | get_sections (self, key, attr='_sections', searched=None) |
def | includes (self) |
def | multi_get (self, section, key_list) |
def | read (self, filename, sect=None) |
def | section (self, key) |
def | sections (self) |
def | set (self, section, key, val) |
def | write (self, config_file) |
Data Fields | |
cnx | |
Definition at line 13 of file sqlconfigparser.py.
def __init__ | ( | self, | |
tablename = "sippeers" |
|||
) |
Reimplemented from MultiOrderedConfigParser.
Definition at line 17 of file sqlconfigparser.py.
References SqlConfigParser._tablename.
def connect | ( | self, | |
user, | |||
password, | |||
host, | |||
port, | |||
database | |||
) |
Definition at line 21 of file sqlconfigparser.py.
def read | ( | self, | |
filename, | |||
sect = None |
|||
) |
Parse configuration information from a file
Reimplemented from MultiOrderedConfigParser.
Definition at line 24 of file sqlconfigparser.py.
References SqlConfigParser._tablename, MultiOrderedConfigParser.add_section(), SqlConfigParser.cnx, and str.
def write | ( | self, | |
config_file | |||
) |
Write configuration information out to a file
Reimplemented from MultiOrderedConfigParser.
Definition at line 67 of file sqlconfigparser.py.
References MultiOrderedConfigParser._sections, and SqlConfigParser.write_dicts().
Referenced by MultiOrderedConfigParser.write().
def write_dicts | ( | self, | |
config_file, | |||
mdicts | |||
) |
Write the contents of the mdicts to the specified config file
Definition at line 39 of file sqlconfigparser.py.
Referenced by SqlConfigParser.write().
cnx |
Definition at line 22 of file sqlconfigparser.py.
Referenced by SqlConfigParser.read().