mirror of
https://github.com/Cian-H/invenio-theme-iform.git
synced 2025-12-22 20:51:58 +00:00
updated ext
removed Todo & unnecessary lines.
This commit is contained in:
@@ -18,10 +18,6 @@ class inveniothemetugraz(object):
|
|||||||
|
|
||||||
def __init__(self, app=None):
|
def __init__(self, app=None):
|
||||||
"""Extension initialization."""
|
"""Extension initialization."""
|
||||||
# TODO: This is an example of translation string with comment. Please
|
|
||||||
# remove it.
|
|
||||||
# NOTE: This is a note to a translator.
|
|
||||||
_('A translation string')
|
|
||||||
if app:
|
if app:
|
||||||
self.init_app(app)
|
self.init_app(app)
|
||||||
|
|
||||||
@@ -32,12 +28,6 @@ class inveniothemetugraz(object):
|
|||||||
|
|
||||||
def init_config(self, app):
|
def init_config(self, app):
|
||||||
"""Initialize configuration."""
|
"""Initialize configuration."""
|
||||||
# Use theme's base template if theme is installed
|
|
||||||
if 'BASE_TEMPLATE' in app.config:
|
|
||||||
app.config.setdefault(
|
|
||||||
'INVENIO_THEME_TUGRAZ_BASE_TEMPLATE',
|
|
||||||
app.config['BASE_TEMPLATE'],
|
|
||||||
)
|
|
||||||
for k in dir(config):
|
for k in dir(config):
|
||||||
if k.startswith('INVENIO_THEME_TUGRAZ_'):
|
if k.startswith('INVENIO_THEME_TUGRAZ_'):
|
||||||
app.config.setdefault(k, getattr(config, k))
|
app.config.setdefault(k, getattr(config, k))
|
||||||
|
|||||||
Reference in New Issue
Block a user