From cdf5336810f2c61ca3eef933ff2309d6909da76b Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Fri, 26 Jan 2018 02:18:25 +0100 Subject: [PATCH] Little fix --- paramecio/citoplasma/mtemplates.py | 2 ++ paramecio/citoplasma/sessions.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/paramecio/citoplasma/mtemplates.py b/paramecio/citoplasma/mtemplates.py index 84e0719..57da41c 100644 --- a/paramecio/citoplasma/mtemplates.py +++ b/paramecio/citoplasma/mtemplates.py @@ -51,6 +51,8 @@ def env_theme(module, cache_enabled=True, cache_impl='', cache_args={}, module_d standard_templates=path.dirname(__file__)+'/templates' + module_directory+='/'+module + module_templates=module+'/templates' theme_templates='themes/'+config.theme+'/templates' diff --git a/paramecio/citoplasma/sessions.py b/paramecio/citoplasma/sessions.py index 97d4e79..10f9fdf 100644 --- a/paramecio/citoplasma/sessions.py +++ b/paramecio/citoplasma/sessions.py @@ -108,7 +108,9 @@ def get_session(): if not cookie: - s=generate_session() + if len(request.environ)>0: + + s=generate_session() else: