***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Invenio Utilities TUW
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Center for Research Data Management
Invenio Utilities TUW
Commits
dc3e2fb5
Commit
dc3e2fb5
authored
4 years ago
by
Moser, Maximilian
Browse files
Options
Downloads
Patches
Plain Diff
Minor cleanup
parent
cd897187
Branches
main
No related tags found
1 merge request
!2
Modernization
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
invenio_utilities_tuw/cli/__init__.py
+1
-1
1 addition, 1 deletion
invenio_utilities_tuw/cli/__init__.py
invenio_utilities_tuw/ext.py
+1
-13
1 addition, 13 deletions
invenio_utilities_tuw/ext.py
with
2 additions
and
14 deletions
invenio_utilities_tuw/cli/__init__.py
+
1
−
1
View file @
dc3e2fb5
...
...
@@ -10,4 +10,4 @@
from
.cli
import
utilities
__all__
=
(
utilities
,)
__all__
=
(
"
utilities
"
,)
This diff is collapsed.
Click to expand it.
invenio_utilities_tuw/ext.py
+
1
−
13
View file @
dc3e2fb5
...
...
@@ -8,20 +8,14 @@
"""
Some utilities for InvenioRDM.
"""
from
flask_babelex
import
gettext
as
_
from
.
import
config
class
InvenioUtilitiesTUW
(
object
)
:
class
InvenioUtilitiesTUW
:
"""
Invenio-Utilities-TUW extension.
"""
def
__init__
(
self
,
app
=
None
):
"""
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
:
self
.
init_app
(
app
)
...
...
@@ -32,12 +26,6 @@ class InvenioUtilitiesTUW(object):
def
init_config
(
self
,
app
):
"""
Initialize configuration.
"""
# Use theme's base template if theme is installed
if
"
BASE_TEMPLATE
"
in
app
.
config
:
app
.
config
.
setdefault
(
"
UTILITIES_TUW_BASE_TEMPLATE
"
,
app
.
config
[
"
BASE_TEMPLATE
"
],
)
for
k
in
dir
(
config
):
if
k
.
startswith
(
"
UTILITIES_TUW_
"
):
app
.
config
.
setdefault
(
k
,
getattr
(
config
,
k
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment