dependency handling

v2.2
Steve Nyemba 2 months ago
parent 0417a50085
commit 515fb1a997

@ -2,7 +2,7 @@
This file handles the structure (strict) of the configuration file, This file handles the structure (strict) of the configuration file,
Not all elements are programmatically editable (for now) Not all elements are programmatically editable (for now)
""" """
import meta # import meta
class Section : class Section :
def build (self,**_args): def build (self,**_args):
@ -36,7 +36,8 @@ class System (Section) :
""" """
return 'default' if 'name' not in _args else _args['name'] return 'default' if 'name' not in _args else _args['name']
def version(self,**_args): def version(self,**_args):
return meta.__version__ if 'version' not in _args else _args['version'] import cms
return cms.meta.__version__ if 'version' not in _args else _args['version']
def context (self,**_args): def context (self,**_args):
return "" if 'context' not in _args else _args['context'] return "" if 'context' not in _args else _args['context']
def app (self,**_args): def app (self,**_args):
@ -74,4 +75,4 @@ class Layout (Section):
def header (self,**_args): def header (self,**_args):
_data = {"title":"QCMS Project", "subtitle":"Powered by Python Flask"} _data = {"title":"QCMS Project", "subtitle":"Powered by Python Flask"}
return self.update(_data,**_args) return self.update(_data,**_args)

Loading…
Cancel
Save