Little fix
This commit is contained in:
parent
3c6288a097
commit
cdf5336810
2 changed files with 5 additions and 1 deletions
|
|
@ -51,6 +51,8 @@ def env_theme(module, cache_enabled=True, cache_impl='', cache_args={}, module_d
|
||||||
|
|
||||||
standard_templates=path.dirname(__file__)+'/templates'
|
standard_templates=path.dirname(__file__)+'/templates'
|
||||||
|
|
||||||
|
module_directory+='/'+module
|
||||||
|
|
||||||
module_templates=module+'/templates'
|
module_templates=module+'/templates'
|
||||||
|
|
||||||
theme_templates='themes/'+config.theme+'/templates'
|
theme_templates='themes/'+config.theme+'/templates'
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,9 @@ def get_session():
|
||||||
|
|
||||||
if not cookie:
|
if not cookie:
|
||||||
|
|
||||||
s=generate_session()
|
if len(request.environ)>0:
|
||||||
|
|
||||||
|
s=generate_session()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue