From 77a44af384117d8bf228865e6e96e72c85c6b001 Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Sun, 9 Mar 2025 10:27:29 +0100 Subject: [PATCH] Fixes --- paramecio/app.py | 2 +- paramecio/console.py | 3 ++- paramecio/libraries/mtemplates.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/paramecio/app.py b/paramecio/app.py index 225109a..a75bb18 100644 --- a/paramecio/app.py +++ b/paramecio/app.py @@ -156,7 +156,7 @@ except: def catch_errors(all='/'): try: from pathlib import Path - from settings import modules + #from settings import modules import time prepare_app() p=Path('index.py') diff --git a/paramecio/console.py b/paramecio/console.py index b6cf505..1f45d49 100644 --- a/paramecio/console.py +++ b/paramecio/console.py @@ -112,7 +112,7 @@ def start(): print('Error: cannot copy the file create_module.py. Check if exists and if you have permissions for this task') - + """ try: shutil.copy(workdir+'/settings/modules.py', path_settings+'/modules.py') @@ -120,6 +120,7 @@ def start(): except: print('Error: cannot copy the file modules.py. Check if exists and if you have permissions for this task') + """ if args.symlink==True: try: diff --git a/paramecio/libraries/mtemplates.py b/paramecio/libraries/mtemplates.py index ab58719..fc054ae 100644 --- a/paramecio/libraries/mtemplates.py +++ b/paramecio/libraries/mtemplates.py @@ -86,9 +86,9 @@ def preload_templates(template_files, env): return templates -def url_for(name): +def url_for(name, **kwargs): - return app.get_url(name) + return app.get_url(name, **kwargs) class PTemplate: """A class used how shortcuts for Mako template functions.