shoop.xtheme.views package¶
Submodules¶
shoop.xtheme.views.command module¶
-
shoop.xtheme.views.command.
handle_command
(request, command)[source]¶ Internal dispatch function.
Parameters: - request (django.http.HttpRequest) – A request
- command (str) – Command string
Returns: A response
Return type:
-
shoop.xtheme.views.command.
command_dispatch
(request)[source]¶ Xtheme command dispatch view.
Parameters: request (django.http.HttpRequest) – A request Returns: A response Return type: django.http.HttpResponse
shoop.xtheme.views.editor module¶
shoop.xtheme.views.extra module¶
-
shoop.xtheme.views.extra.
extra_view_dispatch
(request, view)[source]¶ Dispatch to an Xtheme extra view.
Parameters: - request (django.http.HttpRequest) – A request
- view (str) – View name
Returns: A response of some ilk
Return type:
shoop.xtheme.views.forms module¶
-
class
shoop.xtheme.views.forms.
LayoutCellGeneralInfoForm
(**kwargs)[source]¶ Bases:
django.forms.forms.Form
-
CELL_FULL_WIDTH
= 12¶
-
CELL_WIDTH_CHOICES
= [(12, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7f5304ca0b00>), (9, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7f5304ca0d68>), (8, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7f5304c4c240>), (6, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7f5304c4c160>), (4, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7f5304c4c2b0>), (3, <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7f5304c4c320>)]¶
-
save
()[source]¶ Save size configuration. Plugin configuration is done via JavaScript POST.
Both breakpoints (
sm`and `md
) are set to same value defined incell_width_field
. The reason for this is that the difference between these breakpoints is so minor that manually assigning both of these by shop admin introduces too much complexity to row-cell management UI.
-
base_fields
= OrderedDict([('plugin', <django.forms.fields.ChoiceField object at 0x7f5304ca0320>)])¶
-
declared_fields
= OrderedDict([('plugin', <django.forms.fields.ChoiceField object at 0x7f5304ca0320>)])¶
-
media
¶
-
-
class
shoop.xtheme.views.forms.
LayoutCellFormGroup
(**kwargs)[source]¶ Bases:
shoop.utils.form_group.FormGroup
Form group containing the LayoutCellGeneralInfoForm and a possible plugin-dependent configuration form.