mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 16:42:20 +03:00
new conf parameters serving
This commit is contained in:
parent
7aa5aad801
commit
98dde0a3d1
1 changed files with 22 additions and 1 deletions
|
@ -41,6 +41,27 @@ class System:
|
||||||
config.read(System.Ahenk.config_path())
|
config.read(System.Ahenk.config_path())
|
||||||
return config.get('BASE', 'dbPath')
|
return config.get('BASE', 'dbPath')
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def agreement_timeout():
|
||||||
|
config = configparser.ConfigParser()
|
||||||
|
config._interpolation = configparser.ExtendedInterpolation()
|
||||||
|
config.read(System.Ahenk.config_path())
|
||||||
|
return config.get('SESSION', 'agreement_timeout')
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def registration_timeout():
|
||||||
|
config = configparser.ConfigParser()
|
||||||
|
config._interpolation = configparser.ExtendedInterpolation()
|
||||||
|
config.read(System.Ahenk.config_path())
|
||||||
|
return config.get('SESSION', 'registration_timeout')
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def get_policy_timeout():
|
||||||
|
config = configparser.ConfigParser()
|
||||||
|
config._interpolation = configparser.ExtendedInterpolation()
|
||||||
|
config.read(System.Ahenk.config_path())
|
||||||
|
return config.get('SESSION', 'get_policy_timeout')
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def plugins_path():
|
def plugins_path():
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
|
|
Loading…
Reference in a new issue