shuup.xtheme.admin_module.views package¶
Module contents¶
-
class
shuup.xtheme.admin_module.views.
ActivationForm
(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶ Bases:
django.forms.forms.Form
A very simple form for activating a theme.
-
base_fields
= OrderedDict([('activate', <django.forms.fields.CharField object>), ('selected_style', <django.forms.fields.CharField object>)])¶
-
declared_fields
= OrderedDict([('activate', <django.forms.fields.CharField object>), ('selected_style', <django.forms.fields.CharField object>)])¶
-
media
¶
-
-
class
shuup.xtheme.admin_module.views.
SnippetDeleteView
(**kwargs)[source]¶ Bases:
django.views.generic.edit.BaseDeleteView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
model
¶ alias of
Snippet
-
success_url
= '/sa/xtheme/snippet/'¶
-
-
class
shuup.xtheme.admin_module.views.
SnippetEditView
(**kwargs)[source]¶ Bases:
shuup.admin.utils.views.CreateOrUpdateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
context_object_name
= 'snippet'¶
-
form_class
¶ alias of
SnippetForm
-
model
¶ alias of
Snippet
-
template_name
= 'shuup/xtheme/admin/snippet_edit.jinja'¶
-
-
class
shuup.xtheme.admin_module.views.
SnippetListView
[source]¶ Bases:
shuup.admin.utils.views.PicotableListView
-
default_columns
= [<Column: Location> location, <Column: Type> snippet_type, <Column: Themes> themes]¶
-
model
¶ alias of
Snippet
-
-
class
shuup.xtheme.admin_module.views.
TemplateView
(**kwargs)[source]¶ Bases:
django.views.generic.base.TemplateResponseMixin
,django.views.generic.base.ContextMixin
,django.views.generic.base.View
Render a template. Pass keyword arguments from the URLconf to the context.
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
class
shuup.xtheme.admin_module.views.
ThemeConfigDetailView
(**kwargs)[source]¶ Bases:
shuup.admin.utils.views.CreateOrUpdateView
A view for configuring a single theme.
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
add_form_errors_as_messages
= True¶
-
context_object_name
= 'theme_settings'¶
-
form_class
¶ alias of
Form
-
get_theme
()[source]¶ Get the theme object to configure.
Returns: Theme object. Return type: shuup.xtheme.Theme
-
model
¶ alias of
ThemeSettings
-
template_name
= 'shuup/xtheme/admin/config_detail.jinja'¶
-
-
class
shuup.xtheme.admin_module.views.
ThemeConfigView
(**kwargs)[source]¶ Bases:
django.views.generic.edit.FormView
A view for listing and activating themes.
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
form_class
¶ alias of
ActivationForm
-
template_name
= 'shuup/xtheme/admin/config.jinja'¶
-
-
class
shuup.xtheme.admin_module.views.
ThemeGuideTemplateView
(**kwargs)[source]¶ Bases:
django.views.generic.base.TemplateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
template_name
= None¶
-