Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
webservices
cern-search
cern-search-rest-api
Commits
32ca4bf2
Commit
32ca4bf2
authored
Mar 28, 2019
by
Pablo Panero
Browse files
[skip ci] extension: change signal registration to comply with new invenio-indexer version
parent
53a7a3ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
cern_search_rest_api/modules/cernsearch/ext.py
View file @
32ca4bf2
...
...
@@ -7,7 +7,7 @@
# granted to it by virtue of its status as Intergovernmental Organization
# or submit itself to any jurisdiction.
from
invenio_indexer.signals
import
before_record_index
_arguments
from
invenio_indexer.signals
import
before_record_index
from
cern_search_rest_api.modules.cernsearch.indexer
import
csas_indexer_receiver
from
cern_search_rest_api.modules.cernsearch.views
import
build_blueprint
...
...
@@ -26,7 +26,7 @@ class CERNSearch(object):
self
.
init_config
(
app
)
blueprint
=
build_blueprint
(
app
)
app
.
register_blueprint
(
blueprint
)
before_record_index
_arguments
.
connect
(
csas_indexer_receiver
,
sender
=
app
)
before_record_index
.
connect
(
csas_indexer_receiver
,
sender
=
app
)
app
.
extensions
[
"cern-search"
]
=
self
def
init_config
(
self
,
app
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment