Esempio n. 1
0
 def unregister(self):
     """ Unregister an already registered deposition type """
     from invenio.modules.deposit.registry import deposit_types
     from invenio.modules.deposit.url_converters import refresh_url_map
     deposit_types.unregister(self.deposition_type)
     assert self.deposition_type not in deposit_types
     self.deposition_type = None
     refresh_url_map(self.app)
Esempio n. 2
0
 def unregister(self):
     """ Unregister an already registered deposition type """
     from invenio.modules.deposit.registry import deposit_types
     from invenio.modules.deposit.url_converters import refresh_url_map
     deposit_types.unregister(self.deposition_type)
     assert self.deposition_type not in deposit_types
     self.deposition_type = None
     refresh_url_map(self.app)
Esempio n. 3
0
 def register(self, deposition_type):
     """ Register the deposition type """
     from invenio.modules.deposit.registry import deposit_types
     from invenio.modules.deposit.url_converters import refresh_url_map
     deposit_types.register(deposition_type)
     assert deposition_type in deposit_types
     self.deposition_type = deposition_type
     refresh_url_map(self.app)
Esempio n. 4
0
 def register(self, deposition_type):
     """ Register the deposition type """
     from invenio.modules.deposit.registry import deposit_types
     from invenio.modules.deposit.url_converters import refresh_url_map
     deposit_types.register(deposition_type)
     assert deposition_type in deposit_types
     self.deposition_type = deposition_type
     refresh_url_map(self.app)