fobi.contrib.apps.feincms_integration package

Submodules

fobi.contrib.apps.feincms_integration.apps module

class fobi.contrib.apps.feincms_integration.apps.Config(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

Config.

label = 'fobi_contrib_apps_feincms_integration'
name = 'fobi.contrib.apps.feincms_integration'

fobi.contrib.apps.feincms_integration.conf module

fobi.contrib.apps.feincms_integration.conf.get_setting(setting, override=None)[source]

Get setting.

Get a setting from fobi.contrib.apps.feincms_integration conf module, falling back to the default.

If override is not None, it will be used instead of the setting.

Parameters:
  • setting – String with setting name
  • override – Value to use when no setting is available. Defaults to None.
Returns:

Setting value.

fobi.contrib.apps.feincms_integration.defaults module

fobi.contrib.apps.feincms_integration.helpers module

fobi.contrib.apps.feincms_integration.helpers.get_form_template_choices()[source]

Gets the form template choices.

It’s possible to provide theme templates per theme or just per project.

Return list:
fobi.contrib.apps.feincms_integration.helpers.get_success_page_template_choices()[source]

Get success page template choices.

Return list:

fobi.contrib.apps.feincms_integration.settings module

  • WIDGET_FORM_SENT_GET_PARAM (str): Name of the GET param indicating that form has been successfully sent.

fobi.contrib.apps.feincms_integration.widgets module

class fobi.contrib.apps.feincms_integration.widgets.FobiFormWidget(*args, **kwargs)[source]

Bases: django.db.models.base.Model, fobi.integration.processors.IntegrationProcessor

Widget for to FeinCMS.

Property fobi.models.FormEntry form_entry:
 Form entry to be rendered.
Property str template:
 If given used for rendering the form.
class Meta[source]

Bases: object

Meta options.

abstract = False
app_label = 'fobi'
FobiFormWidget.can_redirect = True
FobiFormWidget.finalize(request, response)[source]

Finalize.

FobiFormWidget.form_entry

Accessor to the related object on the forward side of a many-to-one or one-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

child.parent is a ForwardManyToOneDescriptor instance.

FobiFormWidget.form_entry_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

FobiFormWidget.form_sent_get_param = 'sent'
FobiFormWidget.form_submit_button_text

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

FobiFormWidget.form_template_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

FobiFormWidget.form_title

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

FobiFormWidget.get_form_template_name_display(*moreargs, **morekwargs)
FobiFormWidget.get_success_page_template_name_display(*moreargs, **morekwargs)
FobiFormWidget.hide_form_title

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

FobiFormWidget.hide_success_page_title

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

FobiFormWidget.process(request, **kwargs)[source]

This is where most of the form handling happens.

Parameters:request (django.http.HttpRequest) –
Return django.http.HttpResponse | str:
 
FobiFormWidget.render(**kwargs)[source]

Render.

FobiFormWidget.success_page_template_name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

FobiFormWidget.success_page_text

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

FobiFormWidget.success_page_title

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

Module contents