Asterisk - The Open Source Telephony Project
18.5.0
|
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" |
|||
) |
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 |
|||
) |
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
Definition at line 67 of file sqlconfigparser.py.
References MultiOrderedConfigParser._sections, and SqlConfigParser.write_dicts().
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().