def __init__(self, app=None):
     """Extension initialization."""
     if app:
         self.init_app(app)
         post_action.connect(post_action_notifications,
                             sender=app,
                             weak=False)
示例#2
0
文件: ext.py 项目: lnielsen/zenodo
 def register_signals(app):
     """Register Zenodo Deposit signals."""
     before_record_index.connect(indexer_receiver, sender=app, weak=False)
     post_action.connect(datacite_register_after_publish, sender=app,
                         weak=False)
     post_action.connect(index_versioned_record_siblings, sender=app,
                         weak=False)
示例#3
0
 def register_signals(app):
     """Register CDS Deposit signals."""
     # index records after published
     # note: if publish a project -> index also videos
     post_action.connect(index_deposit_after_action,
                         sender=app, weak=False)
     # if it's a project/video, expands informations before index
     before_record_index.connect(
         cdsdeposit_indexer_receiver, sender=app, weak=False)
     # register Datacite after publish record
     post_action.connect(
         datacite_register_after_publish, sender=app, weak=False)
示例#4
0
 def register_signals(app):
     """Register Zenodo Deposit signals."""
     before_record_index.connect(indexer_receiver, sender=app, weak=False)
     post_action.connect(datacite_register_after_publish,
                         sender=app,
                         weak=False)
     post_action.connect(index_versioned_record_siblings,
                         sender=app,
                         weak=False)
     post_action.connect(openaire_direct_index_after_publish,
                         sender=app,
                         weak=False)
     post_action.connect(sipstore_write_files_after_publish,
                         sender=app,
                         weak=False)
示例#5
0
 def register_signals(self):
     post_action.connect(index_published_record)
示例#6
0
 def register_signals(app):
     """Register Zenodo Deposit signals."""
     before_record_index.connect(indexer_receiver, sender=app, weak=False)
     post_action.connect(datacite_register_after_publish,
                         sender=app,
                         weak=False)