Skip to content

Commit

Permalink
parent doi action
Browse files Browse the repository at this point in the history
  • Loading branch information
Alzpeta committed Oct 2, 2024
1 parent f29fc8e commit 1e4438f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions oarepo_doi/actions/doi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

from oarepo_doi.api import community_slug_for_credentials, create_doi


class CreateDoiAction(OARepoAcceptAction):
class AssignDoiAction(OARepoAcceptAction):
log_event = True

def __init__(self, *args, **kwargs):
Expand Down Expand Up @@ -39,6 +38,9 @@ def credentials(self, community):
self.password = credentials["password"]
self.prefix = credentials["prefix"]

class CreateDoiAction(AssignDoiAction):


def execute(self, identity, uow, *args, **kwargs):
topic = self.request.topic.resolve()
slug = community_slug_for_credentials(topic.parent["communities"].get("default", None))
Expand Down

0 comments on commit 1e4438f

Please sign in to comment.