fobi.contrib.apps.feincms_integration package¶
Submodules¶
fobi.contrib.apps.feincms_integration.apps module¶
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.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. -
can_redirect
= True¶
-
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 aForwardManyToOneDescriptor
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'¶
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:
-
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.
-