cri_frontend.views module
- class cri_frontend.views.CRIGroupView(**kwargs)[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,django.views.generic.detail.DetailView
- model
alias of
cri_models.models.crigroup.CRIGroup
- template_name = 'cri_frontend/crigroup_detail.html'
- class cri_frontend.views.CRIUserChangePasswordView(**kwargs)[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,cri_frontend.views.CRIUserProfileMixin
,django.contrib.auth.views.PasswordChangeView
,django.views.generic.detail.SingleObjectMixin
- model
alias of
cri_models.models.criuser.CRIUser
- slug_field = 'username'
- slug_url_kwarg = 'username'
- template_name = 'cri_frontend/criuser_password.html'
- class cri_frontend.views.CRIUserConnectionLogView(**kwargs)[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,cri_frontend.views.CRIUserProfileMixin
,django.views.generic.list.ListView
- context_object_name = 'logs'
- 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.
- model
alias of
cri_auth.models.ConnectionLogEntry
- paginate_by = 20
- template_name = 'cri_frontend/criuser_connection_log.html'
- class cri_frontend.views.CRIUserEditView(**kwargs)[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,cri_frontend.views.CRIUserProfileMixin
,django.views.generic.edit.UpdateView
- form_class
alias of
cri_frontend.forms.CRIUserForm
- model
alias of
cri_models.models.criuser.CRIUser
- slug_field = 'username'
- slug_url_kwarg = 'username'
- template_name = 'cri_frontend/criuser_editprofile.html'
- class cri_frontend.views.CRIUserNoteCreateView(**kwargs)[source]
Bases:
cri_frontend.views.CRIUserNoteFormMixin
,django.views.generic.edit.CreateView
- class cri_frontend.views.CRIUserNoteDeleteView(**kwargs)[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,django.views.generic.edit.DeleteView
- model
- template_name = 'cri_frontend/criusernote_confirm_delete.html'
- class cri_frontend.views.CRIUserNoteFormMixin[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,django.views.generic.detail.SingleObjectMixin
- form_class
alias of
cri_frontend.forms.CRIUserNoteForm
- model
- template_name = 'cri_frontend/criusernote_form.html'
- class cri_frontend.views.CRIUserNoteUpdateView(**kwargs)[source]
Bases:
cri_frontend.views.CRIUserNoteFormMixin
,django.views.generic.edit.UpdateView
- class cri_frontend.views.CRIUserNotesView(**kwargs)[source]
Bases:
cri_frontend.views.CRIUserView
- template_name = 'cri_frontend/criusernote_list.html'
- class cri_frontend.views.CRIUserOIDCView(**kwargs)[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,cri_frontend.views.CRIUserProfileMixin
,django.views.generic.detail.DetailView
- model
alias of
cri_models.models.criuser.CRIUser
- slug_field = 'username'
- slug_url_kwarg = 'username'
- template_name = 'cri_frontend/criuser_oidc.html'
- class cri_frontend.views.CRIUserPhotoSquare(**kwargs)[source]
Bases:
django.views.generic.base.View
- class cri_frontend.views.CRIUserPreferencesView(**kwargs)[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,cri_frontend.views.CRIUserProfileMixin
,django.views.generic.edit.UpdateView
- form_class
- get_object(queryset=None)[source]
Return the object the view is displaying.
Require self.queryset and a pk or slug argument in the URLconf. Subclasses can override this to return any object.
- model
- template_name = 'cri_frontend/criuser_preferences.html'
- class cri_frontend.views.CRIUserProfileMixin[source]
Bases:
object
A mixin to use for all user profile views
Implementing class MUST have the criuser attribute set to the displayed CRIUser.
- class cri_frontend.views.CRIUserSSHKeysShortcutView(**kwargs)[source]
Bases:
django.views.generic.base.View
- class cri_frontend.views.CRIUserSSHKeysView(**kwargs)[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,cri_frontend.views.CRIUserProfileMixin
,django.views.generic.edit.CreateView
- form_class
alias of
cri_frontend.forms.SSHPublicKeyForm
- model
- post(*args, **kwargs)[source]
Handle POST requests: instantiate a form instance with the passed POST variables and then check if it’s valid.
- template_name = 'cri_frontend/criuser_ssh_keys.html'
- class cri_frontend.views.CRIUserTasksView(**kwargs)[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,cri_frontend.views.CRIUserProfileMixin
,django.views.generic.list.ListView
- 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.
- paginate_by = 100
- template_name = 'cri_frontend/criuser_tasks.html'
- class cri_frontend.views.CRIUserView(**kwargs)[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,cri_frontend.views.CRIUserProfileMixin
,django.views.generic.detail.DetailView
- model
alias of
cri_models.models.criuser.CRIUser
- slug_field = 'username'
- slug_url_kwarg = 'username'
- template_name = 'cri_frontend/criuser_detail.html'
- class cri_frontend.views.ExportView(**kwargs)[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,django.views.generic.edit.FormView
- EXPORT_FORMAT_MAP = {'csv': <import_export.formats.base_formats.CSV object>, 'html': <import_export.formats.base_formats.HTML object>, 'json': <import_export.formats.base_formats.JSON object>, 'ods': <import_export.formats.base_formats.ODS object>, 'tsv': <import_export.formats.base_formats.TSV object>, 'xls': <import_export.formats.base_formats.XLS object>, 'xlsx': <import_export.formats.base_formats.XLSX object>, 'yaml': <import_export.formats.base_formats.YAML object>}
- EXPORT_TYPE_MAP = {'moodle': <class 'cri_models.import_export.CRIUserMoodleResource'>, 'regular': <class 'cri_models.import_export.CRIUserResource'>}
- form_class
alias of
cri_frontend.forms.ExportForm
- class cri_frontend.views.IndexView(**kwargs)[source]
Bases:
django.views.generic.list.ListView
- 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.
- model
alias of
cri_frontend.models.Shortcut
- template_name = 'cri_frontend/index.html'
- class cri_frontend.views.NotAvailableView(**kwargs)[source]
Bases:
django.views.generic.base.TemplateView
- template_name = 'cri_frontend/not_available.html'
- class cri_frontend.views.OIDCConsentDeleteView(**kwargs)[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,django.views.generic.edit.DeleteView
- http_method_names = ('post', 'put', 'patch', 'delete', 'head', 'options', 'trace')
- model
alias of
oidc_provider.models.UserConsent
- class cri_frontend.views.SSHKeyDeleteView(**kwargs)[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,django.views.generic.edit.DeleteView
- http_method_names = ('post', 'put', 'patch', 'delete', 'head', 'options', 'trace')
- model
- class cri_frontend.views.SearchFormView(**kwargs)[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,django.views.generic.edit.FormView
- form_class
alias of
cri_frontend.forms.SearchForm
- template_name = 'cri_frontend/search.html'
- class cri_frontend.views.UserlistAction(**kwargs)[source]
Bases:
django.contrib.auth.mixins.LoginRequiredMixin
,django.views.generic.base.View
- dispatch_map = {'cards_issue': <class 'cri_cards.views.CardIssueFormView'>, 'export': <class 'cri_frontend.views.ExportView'>, 'keep-selected': <class 'cri_frontend.views.SearchFormView'>, 'search': <class 'cri_frontend.views.SearchFormView'>}