fobi.contrib.plugins.form_handlers.http_repost package

Submodules

fobi.contrib.plugins.form_handlers.http_repost.apps module

class fobi.contrib.plugins.form_handlers.http_repost.apps.Config(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

Config.

label = 'fobi_contrib_plugins_form_handlers_http_repost'
name = 'fobi.contrib.plugins.form_handlers.http_repost'

fobi.contrib.plugins.form_handlers.http_repost.base module

class fobi.contrib.plugins.form_handlers.http_repost.base.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.

do_http_repost(request, files)[source]

Re-post data via HTTP.

Might be used in integration plugins.

form

alias of fobi.contrib.plugins.form_handlers.http_repost.forms.HTTPRepostForm

name = <django.utils.functional.lazy.<locals>.__proxy__ object>
plugin_data_repr()[source]

Human readable representation of plugin data.

Return string:
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.
uid = 'http_repost'
class fobi.contrib.plugins.form_handlers.http_repost.base.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 fobi.contrib.plugins.form_handlers.http_repost.forms.HTTPRepostForm

name = <django.utils.functional.lazy.<locals>.__proxy__ object>
plugin_data_repr()[source]

Human readable representation of plugin data.

Return string:
run(form_wizard_entry, request, form_list, form_wizard, form_element_entries=None)[source]

Run.

Parameters:
uid = 'http_repost'

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.

do_http_repost(request, files)[source]

Re-post data via HTTP.

Might be used in integration plugins.

form

alias of fobi.contrib.plugins.form_handlers.http_repost.forms.HTTPRepostForm

name = <django.utils.functional.lazy.<locals>.__proxy__ object>
plugin_data_repr()[source]

Human readable representation of plugin data.

Return string:
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.
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 fobi.contrib.plugins.form_handlers.http_repost.forms.HTTPRepostForm

name = <django.utils.functional.lazy.<locals>.__proxy__ object>
plugin_data_repr()[source]

Human readable representation of plugin data.

Return string:
run(form_wizard_entry, request, form_list, form_wizard, form_element_entries=None)[source]

Run.

Parameters:
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='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 = {'endpoint_url': <django.forms.fields.URLField object>}
declared_fields = {'endpoint_url': <django.forms.fields.URLField object>}
media
plugin_data_fields = [('endpoint_url', '')]

Module contents