swh.web.inbound_email.views module#

class swh.web.inbound_email.views.InboundEmailForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]#

Bases: Form

clean_shared_key()[source]#
base_fields = {'email': <django.forms.fields.FileField object>, 'shared_key': <django.forms.fields.CharField object>}#
declared_fields = {'email': <django.forms.fields.FileField object>, 'shared_key': <django.forms.fields.CharField object>}#
property media#

Return all media required to render the widgets on this form.

class swh.web.inbound_email.views.InboundEmailView(**kwargs)[source]#

Bases: FormMixin, ProcessFormView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

form_class#

alias of InboundEmailForm

success_url = '/'#
form_invalid(form)[source]#

If the form is invalid, render the invalid form.

form_valid(form)[source]#

If the form is valid, redirect to the supplied URL.

dispatch(*args, **kwargs)[source]#