invitations.views module

class invitations.views.RegistrationInvitationsView(**kwargs)[source]

Bases: scipost.mixins.PaginationMixin, scipost.mixins.PermissionsMixin, django.views.generic.list.ListView

permission_required = 'scipost.can_create_registration_invitations'
paginate_by = 10
ordering = ['date_sent_last', 'last_name']
search_form = None
get_queryset()[source]

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

get_context_data(**kwargs)[source]

Get the context for this view.

class invitations.views.RegistrationInvitationsSentView(**kwargs)[source]

Bases: invitations.views.RegistrationInvitationsView

permission_required = 'scipost.can_manage_registration_invitations'
template_name = 'invitations/registrationinvitation_list_sent.html'
class invitations.views.RegistrationInvitationsDraftContributorView(**kwargs)[source]

Bases: invitations.views.RegistrationInvitationsView

permission_required = 'scipost.can_manage_registration_invitations'
template_name = 'invitations/registrationinvitation_list_contributors.html'
get_queryset()[source]

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

class invitations.views.RegistrationInvitationsFellowView(**kwargs)[source]

Bases: invitations.views.RegistrationInvitationsView

permission_required = 'scipost.can_invite_fellows'
template_name = 'invitations/registrationinvitation_list_fellows.html'
class invitations.views.CitationNotificationsView(**kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, scipost.mixins.PaginationMixin, django.views.generic.list.ListView

permission_required = 'scipost.can_manage_registration_invitations'
paginate_by = 25
class invitations.views.CitationNotificationsProcessView(*args, **kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, invitations.mixins.RequestArgumentMixin, mails.views.MailFormView

permission_required = 'scipost.can_manage_registration_invitations'
form_class

alias of invitations.forms.CitationNotificationProcessForm

success_url = '/invitations/citations'
mail_code = 'citation_notification'
can_send_mail()[source]

Only send mail if Contributor has not opted-out.

form_valid(form)[source]

Form is valid; the MailFormView will send the mail if (possible) Contributor didn’t opt-out from mails.

invitations.views.create_registration_invitation_or_citation(request)[source]

Create a new Registration Invitation or Citation Notification, depending whether it is meant for an already existing Contributor or not.

class invitations.views.RegistrationInvitationsUpdateView(*args, **kwargs)[source]

Bases: invitations.mixins.RequestArgumentMixin, scipost.mixins.PermissionsMixin, mails.views.MailFormView

permission_required = 'scipost.can_create_registration_invitations'
form_class

alias of invitations.forms.RegistrationInvitationForm

mail_code = 'registration_invitation'
get_context_data(**kwargs)[source]

Insert the form into the context dict.

get_success_url()[source]

Returns the supplied URL.

get_queryset()[source]

Return the QuerySet that will be used to look up the object.

This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.

can_send_mail()[source]

Overwrite method to control permissions for sending mails.

get_mail_config()[source]
class invitations.views.RegistrationInvitationsMergeView(**kwargs)[source]

Bases: invitations.mixins.RequestArgumentMixin, scipost.mixins.PermissionsMixin, django.views.generic.edit.UpdateView

permission_required = 'scipost.can_manage_registration_invitations'
form_class

alias of invitations.forms.RegistrationInvitationMergeForm

template_name = 'invitations/registrationinvitation_form_merge.html'
success_url = '/invitations/'
class invitations.views.RegistrationInvitationsAddCitationView(**kwargs)[source]

Bases: invitations.mixins.RequestArgumentMixin, scipost.mixins.PermissionsMixin, django.views.generic.edit.UpdateView

permission_required = 'scipost.can_create_registration_invitations'
form_class

alias of invitations.forms.RegistrationInvitationAddCitationForm

template_name = 'invitations/registrationinvitation_form_add_citation.html'
success_url = '/invitations/'
class invitations.views.RegistrationInvitationsMarkView(**kwargs)[source]

Bases: invitations.mixins.RequestArgumentMixin, scipost.mixins.PermissionsMixin, django.views.generic.edit.UpdateView

permission_required = 'scipost.can_manage_registration_invitations'
form_class

alias of invitations.forms.RegistrationInvitationMarkForm

template_name = 'invitations/registrationinvitation_form_mark_as.html'
success_url = '/invitations/'
class invitations.views.RegistrationInvitationsMapToContributorView(**kwargs)[source]

Bases: invitations.mixins.RequestArgumentMixin, scipost.mixins.PermissionsMixin, django.views.generic.edit.UpdateView

permission_required = 'scipost.can_manage_registration_invitations'
model

alias of invitations.models.RegistrationInvitation

form_class

alias of invitations.forms.RegistrationInvitationMapToContributorForm

template_name = 'invitations/registrationinvitation_form_map_to_contributor.html'
success_url = '/invitations/'
class invitations.views.RegistrationInvitationsReminderView(*args, **kwargs)[source]

Bases: invitations.mixins.RequestArgumentMixin, scipost.mixins.PermissionsMixin, mails.views.MailFormView

permission_required = 'scipost.can_manage_registration_invitations'
success_url = '/invitations/'
form_class

alias of invitations.forms.RegistrationInvitationReminderForm

template_name = 'invitations/registrationinvitation_reminder_form.html'
mail_code = 'registration_invitation_reminder'
get_mail_config()[source]
class invitations.views.RegistrationInvitationsDeleteView(**kwargs)[source]

Bases: scipost.mixins.PermissionsMixin, django.views.generic.edit.DeleteView

permission_required = 'scipost.can_manage_registration_invitations'
model

alias of invitations.models.RegistrationInvitation

success_url = '/invitations/'
invitations.views.cleanup(request)[source]

Compares the email addresses of invitations with those in the database of registered Contributors. Flags overlaps.