list_route='/deposit/depositions', item_route='/deposit/depositions/<{0}:pid_value>'.format(_PID), file_list_route=( '/deposit/depositions/<{0}:pid_value>/files'.format(_PID)), file_item_route=( '/deposit/depositions/<{0}:pid_value>/files/<file_key:key>'.format( _PID)), default_media_type='application/json', links_factory_imp='zenodo.modules.deposit.links:links_factory', create_permission_factory_imp=check_oauth2_scope( lambda record: record_create_permission_factory( record=record).can(), write_scope.id), read_permission_factory_imp=deposit_read_permission_factory, update_permission_factory_imp=check_oauth2_scope( lambda record: deposit_update_permission_factory( record=record).can(), write_scope.id), delete_permission_factory_imp=check_oauth2_scope( lambda record: deposit_delete_permission_factory( record=record).can(), write_scope.id), max_result_window=10000, ), ) #: Depoist UI endpoints DEPOSIT_RECORDS_UI_ENDPOINTS = { 'depid': { 'pid_type': 'depid', 'route': '/deposit/<pid_value>', 'template': 'zenodo_deposit/edit.html', 'record_class': 'zenodo.modules.deposit.api:ZenodoDeposit',
}, list_route='/deposit/depositions', item_route='/deposit/depositions/<{0}:pid_value>'.format(_PID), file_list_route=( '/deposit/depositions/<{0}:pid_value>/files'.format(_PID)), file_item_route=( '/deposit/depositions/<{0}:pid_value>/files/<file_key:key>'.format( _PID)), default_media_type='application/json', links_factory_imp='zenodo.modules.deposit.links:links_factory', create_permission_factory_imp=check_oauth2_scope( lambda record: record_create_permission_factory(record=record).can( ), write_scope.id), read_permission_factory_imp=deposit_read_permission_factory, update_permission_factory_imp=check_oauth2_scope( lambda record: deposit_update_permission_factory(record=record). can(), write_scope.id), delete_permission_factory_imp=check_oauth2_scope( lambda record: deposit_delete_permission_factory(record=record). can(), write_scope.id), max_result_window=10000, ), ) #: Depoist UI endpoints DEPOSIT_RECORDS_UI_ENDPOINTS = { 'depid': { 'pid_type': 'depid', 'route': '/deposit/<pid_value>', 'template': 'zenodo_deposit/edit.html', 'record_class': 'zenodo.modules.deposit.api:ZenodoDeposit', 'view_imp': 'zenodo.modules.deposit.views.default_view_method', }, }
list_route='/deposit/depositions', item_route='/deposit/depositions/<{0}:pid_value>'.format(_PID), file_list_route=( '/deposit/depositions/<{0}:pid_value>/files'.format(_PID)), file_item_route=( '/deposit/depositions/<{0}:pid_value>/files/<file_key:key>'.format( _PID)), default_media_type='application/json', links_factory_imp='zenodo.modules.deposit.links:links_factory', create_permission_factory_imp=check_oauth2_scope( lambda record: record_create_permission_factory( record=record).can(), write_scope.id), read_permission_factory_imp=deposit_read_permission_factory, update_permission_factory_imp=check_oauth2_scope( lambda record: deposit_update_permission_factory( record=record).can(), write_scope.id), delete_permission_factory_imp=check_oauth2_scope( lambda record: deposit_delete_permission_factory( record=record).can(), write_scope.id), max_result_window=10000, ), ) #: Depoist UI endpoints DEPOSIT_RECORDS_UI_ENDPOINTS = { 'depid': { 'pid_type': 'depid', 'route': '/deposit/<pid_value>', 'template': 'zenodo_deposit/edit.html', 'record_class': 'zenodo.modules.deposit.api:ZenodoDeposit',