configfile: add get_prefix_options method
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
This commit is contained in:
parent
8c2991ceac
commit
d9e35481be
|
@ -74,6 +74,9 @@ class ConfigWrapper:
|
||||||
def get_prefix_sections(self, prefix):
|
def get_prefix_sections(self, prefix):
|
||||||
return [self.getsection(s) for s in self.fileconfig.sections()
|
return [self.getsection(s) for s in self.fileconfig.sections()
|
||||||
if s.startswith(prefix)]
|
if s.startswith(prefix)]
|
||||||
|
def get_prefix_options(self, prefix):
|
||||||
|
return [o for o in self.fileconfig.options(self.section)
|
||||||
|
if o.startswith(prefix)]
|
||||||
|
|
||||||
AUTOSAVE_HEADER = """
|
AUTOSAVE_HEADER = """
|
||||||
#*# <---------------------- SAVE_CONFIG ---------------------->
|
#*# <---------------------- SAVE_CONFIG ---------------------->
|
||||||
|
|
Loading…
Reference in New Issue