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,
Not all elements are programmatically editable (for now)
"""
import meta
# import meta
class Section :
def build (self,**_args):
@ -36,7 +36,8 @@ class System (Section) :
"""
return 'default' if 'name' not in _args else _args['name']
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):
return "" if 'context' not in _args else _args['context']
def app (self,**_args):
@ -74,4 +75,4 @@ class Layout (Section):
def header (self,**_args):
_data = {"title":"QCMS Project", "subtitle":"Powered by Python Flask"}
return self.update(_data,**_args)

Loading…
Cancel
Save