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_integrationconf 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.IntegrationProcessorWidget for to FeinCMS.
Property fobi.models.FormEntry form_entry: Form entry to be rendered. Property str template: If given used for rendering the form. -
FobiFormWidget.can_redirect= True¶
-
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.parentis aForwardManyToOneDescriptorinstance.
-
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'¶
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.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.
-