fobi.contrib.plugins.form_handlers.http_repost package¶
Submodules¶
fobi.contrib.plugins.form_handlers.http_repost.apps module¶
fobi.contrib.plugins.form_handlers.http_repost.fobi_form_handlers module¶
-
class
fobi.contrib.plugins.form_handlers.http_repost.fobi_form_handlers.
HTTPRepostHandlerPlugin
(user=None)[source]¶ Bases:
fobi.base.FormHandlerPlugin
HTTP repost handler plugin.
Makes a HTTP repost to a given endpoint. Should be executed before
db_store
plugin.-
form
¶ alias of
HTTPRepostForm
-
name
= <django.utils.functional.__proxy__ object>¶
-
run
(form_entry, request, form, form_element_entries=None)[source]¶ Run.
Parameters: - form_entry (fobi.models.FormEntry) – Instance of
fobi.models.FormEntry
. - request (django.http.HttpRequest) –
- form (django.forms.Form) –
- form_element_entries (iterable) – Iterable of
fobi.models.FormElementEntry
objects.
- form_entry (fobi.models.FormEntry) – Instance of
-
uid
= 'http_repost'¶
-
-
class
fobi.contrib.plugins.form_handlers.http_repost.fobi_form_handlers.
HTTPRepostWizardHandlerPlugin
(user=None)[source]¶ Bases:
fobi.base.FormWizardHandlerPlugin
HTTP repost wizard handler plugin.
Makes a HTTP repost to a given endpoint. Should be executed before
db_store
plugin.-
form
¶ alias of
HTTPRepostForm
-
name
= <django.utils.functional.__proxy__ object>¶
-
run
(form_wizard_entry, request, form_list, form_wizard, form_element_entries=None)[source]¶ Run.
Parameters: - form_wizard_entry (fobi.models.FormWizardEntry) – Instance
of
fobi.models.FormWizardEntry
. - request (django.http.HttpRequest) –
- form_list (list) – List of
django.forms.Form
instances. - form_wizard (fobi.wizard.views.dynamic.DynamicWizardView) – Instance of
fobi.wizard.views.dynamic.DynamicWizardView
. - form_element_entries (iterable) – Iterable of
fobi.models.FormElementEntry
objects.
- form_wizard_entry (fobi.models.FormWizardEntry) – Instance
of
-
uid
= 'http_repost'¶
-
fobi.contrib.plugins.form_handlers.http_repost.forms module¶
-
class
fobi.contrib.plugins.form_handlers.http_repost.forms.
HTTPRepostForm
(data=None, files=None, auto_id=u'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)[source]¶ Bases:
django.forms.forms.Form
,fobi.base.BasePluginForm
Form for
HTTPRepostPlugin
.-
base_fields
= OrderedDict([('endpoint_url', <django.forms.fields.URLField object at 0x7f4388cb73d0>)])¶
-
declared_fields
= OrderedDict([('endpoint_url', <django.forms.fields.URLField object at 0x7f4388cb73d0>)])¶
-
media
¶
-
plugin_data_fields
= [('endpoint_url', '')]¶
-