You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cms/index.py

315 lines
9.4 KiB
Python

2 years ago
__doc__ = """
arguments :
--config path of the configuration otherwise it will look for the default in the working directory
"""
# _html = ""
_handler = _route.get()
# else:
10 months ago
return the content of a folder formatted for a menu
2 years ago
_args = _route.render(_uri,_title)
if os.path.exists(path) and os.path.isfile(path):
_args = {'path':path}
if shared :
_args['location'] = path
_args['shared'] = shared
# _route = cms.engine.Router(**_args) #path=path,shared=shared)
_route = cms.engine.basic.CMS(**_args)
# dir(_route)
# _args = _route.get().get_app()
_args = _route.get().app()