Skip to content

Commit

Permalink
chore: cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandromumo committed Nov 13, 2024
1 parent 7936522 commit d5a6631
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions invenio_rdm_records/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from flask import Blueprint
from flask_iiif import IIIF
from flask_principal import identity_loaded
from importlib_metadata import entry_points
from invenio_records_resources.resources.files import FileResource

from . import config
Expand Down Expand Up @@ -312,14 +313,12 @@ def fix_datacite_configs(self, app):
app.config[config_item] = str(app.config[config_item])

def init_record_service_registry(self, app):
# TODO load entry points
"""Initialize record service registry."""
self.record_service_registry = {}
self._register_entry_point(
self.record_service_registry,
"invenio_rdm_records.services.record_service_registry",
)
# Discussed w/Alex
# Interface could be the function itself that modifies the record class and returns it

def _register_entry_point(self, registry, ep_name):
"""Load entry points into the given registry."""
Expand Down

0 comments on commit d5a6631

Please sign in to comment.