| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
| Data Structures | |
| class | MultiOrderedConfigParser | 
| class | Section | 
| Functions | |
| find_dict (mdicts, key, val) | |
| merge_values (left, right, key) | |
| remove_comment (line, is_comment) | |
| try_include (line) | |
| try_option (line) | |
| try_section (line) | |
| write_dicts (config_file, mdicts) | |
| Variables | |
| str | COMMENT = ';' | 
| str | COMMENT_END = '--;' | 
| str | COMMENT_START = ';--' | 
| str | DEFAULTSECT = 'general' | 
Copyright (C) 2016, Digium, Inc. This program is free software, distributed under the terms of the GNU General Public License Version 2.
| 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.
| merge_values | ( | left, | |
| right, | |||
| key | |||
| ) | 
Merges values from right into left.
Definition at line 16 of file astconfigparser.py.
Referenced by Section.get_merged().
| remove_comment | ( | line, | |
| is_comment | |||
| ) | 
Remove any commented elements from the line.
Definition at line 195 of file astconfigparser.py.
References remove_comment().
Referenced by MultiOrderedConfigParser._read(), and remove_comment().
| 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 MultiOrderedConfigParser._read().
| 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().
| 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().
| 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().
| str COMMENT = ';' | 
Definition at line 188 of file astconfigparser.py.
| str COMMENT_END = '--;' | 
Definition at line 190 of file astconfigparser.py.
| str COMMENT_START = ';--' | 
Definition at line 189 of file astconfigparser.py.
| str DEFAULTSECT = 'general' | 
Definition at line 192 of file astconfigparser.py.