mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 11:12:15 +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())
|
||||
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
|
||||
def plugins_path():
|
||||
config = configparser.ConfigParser()
|
||||
|
@ -89,7 +110,7 @@ class System:
|
|||
def received_dir_path():
|
||||
path = '/tmp/.ahenk/'
|
||||
if Util.is_exist(path) is False:
|
||||
#TODO write permission add
|
||||
# TODO write permission add
|
||||
Util.create_directory(path)
|
||||
return path
|
||||
|
||||
|
|
Loading…
Reference in a new issue