|
Asterisk - The Open Source Telephony Project
18.5.0
|
Data Structures | |
| class | MultiOrderedConfigParser |
| class | Section |
Functions | |
| def | find_dict (mdicts, key, val) |
| def | merge_values (left, right, key) |
| def | remove_comment (line, is_comment) |
| def | try_include (line) |
| def | try_option (line) |
| def | try_section (line) |
| def | write_dicts (config_file, mdicts) |
Variables | |
| string | COMMENT = ';' |
| string | COMMENT_END = '--;' |
| string | COMMENT_START = ';--' |
| string | DEFAULTSECT = 'general' |
Copyright (C) 2016, Digium, Inc. This program is free software, distributed under the terms of the GNU General Public License Version 2.
| def astconfigparser.find_dict | ( | mdicts, | |
| key, | |||
| val | |||
| ) |
Given a list of mult-dicts, return the multi-dict that contains the given key/value pair.
Definition at line 289 of file astconfigparser.py.
| def astconfigparser.merge_values | ( | left, | |
| right, | |||
| key | |||
| ) |
Merges values from right into left.
Definition at line 16 of file astconfigparser.py.
Referenced by Section.get_merged().
| def astconfigparser.remove_comment | ( | line, | |
| is_comment | |||
| ) |
Remove any commented elements from the line.
Definition at line 195 of file astconfigparser.py.
Referenced by MultiOrderedConfigParser.read().
| def astconfigparser.try_include | ( | line | ) |
Checks to see if the given line is an include. If so return the included filename, otherwise None.
Definition at line 237 of file astconfigparser.py.
Referenced by process_text_line(), and MultiOrderedConfigParser.read().
| def astconfigparser.try_option | ( | line | ) |
Parses the line as an option, returning the key/value pair.
Definition at line 280 of file astconfigparser.py.
Referenced by MultiOrderedConfigParser.read().
| def astconfigparser.try_section | ( | line | ) |
Checks to see if the given line is a section. If so return the section name, otherwise return 'None'.
Definition at line 256 of file astconfigparser.py.
References replace().
Referenced by MultiOrderedConfigParser.read().
| def astconfigparser.write_dicts | ( | config_file, | |
| mdicts | |||
| ) |
Write the contents of the mdicts to the specified config file
Definition at line 305 of file astconfigparser.py.
References str.
Referenced by MultiOrderedConfigParser.write(), and sip_to_pjsip.write_pjsip().
| string COMMENT = ';' |
Definition at line 188 of file astconfigparser.py.
| string COMMENT_END = '--;' |
Definition at line 190 of file astconfigparser.py.
| string COMMENT_START = ';--' |
Definition at line 189 of file astconfigparser.py.
| string DEFAULTSECT = 'general' |
Definition at line 192 of file astconfigparser.py.
1.8.13