Add Config.get_dict()
We don't want the version from DefaultSettings, so use super() to get the standard functionality from conf.Settings.
This commit is contained in:
parent
205a10bc8e
commit
876cdce51f
1 changed files with 3 additions and 0 deletions
|
@ -270,6 +270,9 @@ class Config(DefaultSettings):
|
|||
def UI_ADDRESS(self):
|
||||
return "http://%s:%i" % (DEFAULT_SETTINGS.API_INTERFACE, self.api_port)
|
||||
|
||||
def get_dict(self):
|
||||
return {k: self[k] for k in self}
|
||||
|
||||
def get_adjustable_settings_dict(self):
|
||||
return {opt: val for opt, val in self.get_dict().iteritems() if opt in ENVIRONMENT.original_schema}
|
||||
|
||||
|
|
Loading…
Reference in a new issue