diff --git a/wcs/qommon/template.py b/wcs/qommon/template.py index 4214abd3a..4a1be6c21 100644 --- a/wcs/qommon/template.py +++ b/wcs/qommon/template.py @@ -34,16 +34,6 @@ from quixote.util import StaticDirectory, StaticFile from . import ezt, force_str -def get_template_from_script(filename): - local_result = {} - exec( - open(filename).read(), - {'publisher': get_publisher(), 'request': get_request(), '__file__': filename}, - local_result, - ) - return local_result.get('template_content') - - def get_theme_directory(theme_id): system_location = os.path.join(get_publisher().data_dir, 'themes', theme_id) local_location = os.path.join(get_publisher().app_dir, 'themes', theme_id)