scipost¶
Models¶
-
class
scipost.models.
AuthorshipClaim
(id, claimant, publication, submission, commentary, thesislink, vetted_by, status)[source]¶
-
class
scipost.models.
CitationNotification
(*args, **kwargs)[source]¶ Deprecated: Use the invitations app
-
class
scipost.models.
Contributor
(*args, **kwargs)[source]¶ All science users of SciPost are Contributors. username, password, email, first_name and last_name are inherited from User.
-
class
scipost.models.
DraftInvitation
(*args, **kwargs)[source]¶ Draft of an invitation, filled in by an officer.
-
class
scipost.models.
EditorialCollege
(*args, **kwargs)[source]¶ A SciPost Editorial College for a specific discipline.
-
class
scipost.models.
EditorialCollegeFellowship
(*args, **kwargs)[source]¶ Editorial College Fellowship connecting Editorial College and Contributors, maybe with a limiting start/until date.
-
class
scipost.models.
PrecookedEmail
(*args, **kwargs)[source]¶ Each instance contains an email template in both plain and html formats. Can only be created by Admins. For further use in scipost:send_precooked_email method.
-
class
scipost.models.
RegistrationInvitation
(*args, **kwargs)[source]¶ Deprecated: Use the invitations app
-
class
scipost.models.
Remark
(id, contributor, feedback, nomination, motion, submission, recommendation, date, remark)[source]¶
Views¶
-
scipost.views.
activation
(request, contributor_id, key)[source]¶ After registration, an email verification link is sent. Once clicked, the account is activated.
The system auto-detects potential authorships (of submissions, papers subject to commentaries, theses, ...). The contributor must confirm/deny authorship from the Personal Page.
-
scipost.views.
contributor_info
(request, contributor_id)[source]¶ All visitors can see a digest of a Contributor’s activities/contributions by clicking on the relevant name (in listing headers of Submissions, ...).
-
scipost.views.
csrf_failure
(request, reason='')[source]¶ Custom CSRF Failure. Informing admins via email as well.
Delete period unavailable registered.
-
scipost.views.
email_group_members
(request)[source]¶ Method to send bulk emails to (members of) selected groups
-
scipost.views.
email_particular
(request)[source]¶ Method to send emails to individuals (registered or not)
-
scipost.views.
invitation
(request, key)[source]¶ If a scientist has recieved an invitation (RegistrationInvitation) he/she will finish it’s invitation via still view which will prefill the default registration form.
-
scipost.views.
is_registered
(user)[source]¶ This method checks if user is activated assuming an validated user has at least one permission group (Registered Contributor or Partner Accounts).
-
scipost.views.
login_view
(request)[source]¶ This view shows and processes a user’s login session.
The function based method login() is deprecated from Django 1.11 and replaced by Class Based Views.
See: https://docs.djangoproject.com/en/1.11/releases/1.11/#django-contrib-auth
-
scipost.views.
logout_view
(request)[source]¶ The function based method logout() is deprecated from Django 1.11 and replaced by Class Based Views.
See: https://docs.djangoproject.com/en/1.11/releases/1.11/#django-contrib-auth
Mark period unavailable for Contributor using this view.
-
scipost.views.
personal_page
(request, tab='account')[source]¶ The Personal Page is the main view for accessing user functions.
-
scipost.views.
protected_serve
(request, path, show_indexes=False)[source]¶ Serve files that are saved outside the default MEDIA_ROOT folder for superusers only! This will be usefull eg. in the admin pages.
-
scipost.views.
register
(request)[source]¶ This public registration view shows and processes the form that will create new user account requests. After registration the Contributor will need to activate its account via the mail sent. After activation the user needs to be vetted by the SciPost admin.
-
scipost.views.
registration_requests
(request)[source]¶ List all inactive users. These are users that have filled the registration form, but did not yet activate their account using the validation email.
-
scipost.views.
registration_requests_reset
(request, contributor_id)[source]¶ Reset specific activation_key for Contributor and resend activation mail.
-
scipost.views.
request_new_activation_link
(request, contributor_id, key)[source]¶ Once a user tries to activate its account using the email verification link sent and the key has expired, the user redirected to possibly request a new token.
-
scipost.views.
send_precooked_email
(request)[source]¶ Method to send precooked emails to individuals (registered or not)
-
scipost.views.
unsubscribe
(request, contributor_id, key)[source]¶ The link to this method is included in all email communications with a Contributor. The key used is the original activation key. At this link, the Contributor can confirm that he/she does not want to receive any non-essential email notifications from SciPost.