Skip to content

Commit

Permalink
Merge pull request #11 from oarepo/empty-workflows-key-in-config
Browse files Browse the repository at this point in the history
Initializing empty workflow if not in invenio.cfg
  • Loading branch information
mesemus authored Aug 18, 2024
2 parents 9e3a159 + bb61d37 commit 7acdfc2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions oarepo_workflows/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def init_config(self, app):
ext_config.OAREPO_PERMISSIONS_PRESETS[k]
)

app.config.setdefault("WORKFLOWS", ext_config.WORKFLOWS)

@cached_property
def state_changed_notifiers(self):
group_name = "oarepo_workflows.state_changed_notifiers"
Expand Down
2 changes: 2 additions & 0 deletions oarepo_workflows/ext_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
OAREPO_PERMISSIONS_PRESETS = {
"workflow": WorkflowPermissionPolicy,
}

WORKFLOWS = {}
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = oarepo-workflows
version = 1.0.7
version = 1.0.8
description =
authors = Ronald Krist <[email protected]>
readme = README.md
Expand Down

0 comments on commit 7acdfc2

Please sign in to comment.