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'
can_redirect = True
finalize(request, response)[source]

Finalize.

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.

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.

form_sent_get_param = 'sent'
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.

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.

form_title

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

get_form_template_name_display(**morekwargs)
get_success_page_template_name_display(**morekwargs)
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.

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.

process(request, **kwargs)[source]

This is where most of the form handling happens.

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

Render.

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.

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.

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