Environment property function
This commit is contained in:
1 parent
600d2b70bd
commit
339c014674
1 file changed
+8
@@ -61,6 +61,14 @@ class Env(object):
|
||||
|
||||
return s
|
||||
|
||||
@staticmethod
|
||||
def prop(identifier, value = None):
|
||||
s = Env.get('settings')
|
||||
if value == None:
|
||||
return s.getProperty(identifier)
|
||||
|
||||
s.setProperty(identifier, value)
|
||||
|
||||
@staticmethod
|
||||
def getPermission(setting_type):
|
||||
perm = Env.get('settings').get('permission_%s' % setting_type, default = '0777')
|
||||
|
||||
Reference in new issue
Block a user