inspirehep.modules.editor package

Submodules

inspirehep.modules.editor.api module

Editor api views.

inspirehep.modules.editor.api.authorlist_text(*args, **kw)[source]

Run authorlist on a piece of text.

inspirehep.modules.editor.api.check_permission(endpoint, pid_value, **kwargs)[source]

Check if logged in user has permission to open the given record.

Used by record-editor on startup.

inspirehep.modules.editor.api.create_rt_ticket(endpoint, pid_value, **kwargs)[source]

View to create an rt ticket

inspirehep.modules.editor.api.get_linked_refs()[source]
inspirehep.modules.editor.api.get_revision(endpoint, pid_value, **kwargs)[source]

Get the revision of given record (uuid)

inspirehep.modules.editor.api.get_revisions(endpoint, pid_value, **kwargs)[source]

Get revisions of given record

inspirehep.modules.editor.api.get_rt_queues(*args, **kw)[source]

View to get all rt queues

inspirehep.modules.editor.api.get_rt_users(*args, **kw)[source]

View to get all rt users

inspirehep.modules.editor.api.get_tickets_for_record(endpoint, pid_value, **kwargs)[source]

View to get rt ticket belongs to given record

inspirehep.modules.editor.api.manual_merge(*args, **kw)[source]

Start a manual merge workflow on two records.

Todo

The following two assertions must be replaced with proper access control checks, as currently any curator who has access to the editor API can merge any two records, even if they are not among those who can see or edit them.

inspirehep.modules.editor.api.refextract_text(*args, **kw)[source]

Run refextract on a piece of text.

inspirehep.modules.editor.api.refextract_url(*args, **kw)[source]

Run refextract on a URL.

inspirehep.modules.editor.api.resolve_rt_ticket(endpoint, pid_value, **kwargs)[source]

View to resolve an rt ticket

inspirehep.modules.editor.api.revert_to_revision(endpoint, pid_value, **kwargs)[source]

Revert given record to given revision

inspirehep.modules.editor.api.upload_files(*args, **kw)[source]

inspirehep.modules.editor.bundles module

Bundle definition for record editor.

inspirehep.modules.editor.permissions module

inspirehep.modules.editor.permissions.editor_permission(fn)[source]

inspirehep.modules.editor.views module

Invenio module for editing JSON records.

inspirehep.modules.editor.views.index(*args, **kwargs)[source]

Render base view.

inspirehep.modules.editor.views.preview(*args, **kwargs)[source]

Preview the record being edited.

Module contents

INSPIRE editor.