submissions.refereeing_cycles module

class submissions.refereeing_cycles.RequiredActionsDict[source]

Bases: dict

A collection of required actions.

The required action, meant for the editors-in-charge know how to display itself in various formats. Dictionary keys are the action-codes, the values are the texts to present to the user.

as_data()[source]
as_list_text()[source]
get_json_data(escape_html=False)[source]
as_json(escape_html=False)[source]
as_ul()[source]
as_text()[source]
class submissions.refereeing_cycles.BaseAction(object=None, **kwargs)[source]

Bases: object

An item in the RequiredActionsDict dictionary for the Submission refereeing cycle.

txt = ''
url = '#'
url2 = '#'
submission = None
as_text()[source]
class submissions.refereeing_cycles.VettingAction(object=None, **kwargs)[source]

Bases: submissions.refereeing_cycles.BaseAction

txt = '{author} has delivered a {object}. <a href="{url}">Please vet it</a>.'
property url

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

class submissions.refereeing_cycles.NoRefereeResponseAction(object=None, **kwargs)[source]

Bases: submissions.refereeing_cycles.BaseAction

txt = 'Referee {referee} has not responded for {days} days. Consider sending a reminder or cancelling the invitation.'
class submissions.refereeing_cycles.DeadlineAction(object=None, **kwargs)[source]

Bases: submissions.refereeing_cycles.BaseAction

txt = 'Referee {referee} has accepted to send a Report (with {deadline} days left), but not yet delivered it. Consider sending a reminder.'
class submissions.refereeing_cycles.OverdueAction(object=None, **kwargs)[source]

Bases: submissions.refereeing_cycles.BaseAction

txt = 'Referee {referee} has accepted to send a Report ({deadline_min} days overdue), but not yet delivered it. Consider sending a reminder.'
class submissions.refereeing_cycles.ChoiceCycleAction(object=None, **kwargs)[source]

Bases: submissions.refereeing_cycles.BaseAction

txt = 'Choose the submission cycle to proceed with.'
class submissions.refereeing_cycles.NoEICRecommendationAction(object=None, **kwargs)[source]

Bases: submissions.refereeing_cycles.BaseAction

needs_referees = False
property txt

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

property url

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

property url2

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

class submissions.refereeing_cycles.NeedRefereesAction(object=None, **kwargs)[source]

Bases: submissions.refereeing_cycles.BaseAction

property txt

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

class submissions.refereeing_cycles.BaseCycle(submission)[source]

Bases: object

A base blueprint for the Submission refereeing cycle.

The refereeing process may be defined differently for every cycle class by its own specific properties. The cycle class will then take care of the required actions, permissions and the overall refereeing process.

days_for_refereeing = 28
can_invite_referees = True
property required_actions
property minimum_number_of_referees
has_required_actions()[source]
add_action(action)[source]
update_required_actions()[source]

Gather the required actions list and populate self._required_actions.

as_text()[source]

Return a short description of the current status of the submission cycle.

reset_refereeing_round()[source]

Set the Submission status to EIC_ASSIGNED and reset the reporting deadline.

reinvite_referees(referees)[source]

Duplicate and reset RefereeInvitations and send reinvite mail.

referees - (list of) RefereeInvitation instances

class submissions.refereeing_cycles.RegularCycle(submission)[source]

Bases: submissions.refereeing_cycles.BaseCycle

class submissions.refereeing_cycles.ShortCycle(submission)[source]

Bases: submissions.refereeing_cycles.BaseCycle

Short (two weeks) version of the regular refereeing cycle, used for resubmissions on request by the editor.

days_for_refereeing = 14
property minimum_number_of_referees
class submissions.refereeing_cycles.DirectCycle(submission)[source]

Bases: submissions.refereeing_cycles.BaseCycle

Refereeing cycle without refereeing. The editor directly formulates an EICRecommendation.

can_invite_referees = False
update_required_actions()[source]

Gather the required actions list and populate self._required_actions.