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.

delete(request, *args, **kwargs)[source]
get(request, *args, **kwargs)[source]
get_queryset()[source]
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

form_valid(form)[source]
get_form_kwargs()[source]
get_queryset()[source]
get_toolbar()[source]
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]
get_queryset()[source]
get_themes(value)[source]
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.

get(request, *args, **kwargs)[source]
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_context_data(**kwargs)[source]
get_form(form_class=None)[source]
get_object(queryset=None)[source]
get_success_url()[source]
get_theme()[source]

Get the theme object to configure.

Returns:Theme object.
Return type:shuup.xtheme.Theme
get_toolbar()[source]
model

alias of ThemeSettings

save_form(form)[source]
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

form_valid(form)[source]
get_context_data(**kwargs)[source]
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.

dispatch(request, *args, **kwargs)[source]
template_name = None
class shuup.xtheme.admin_module.views.ThemeWizardPane(request, object=None)[source]

Bases: shuup.admin.views.wizard.WizardPane

form_valid(form)[source]
get_form_defs()[source]
icon = 'xtheme/theme.png'
identifier = 'theme'
text = 'Choose a theme for your shop'
title = 'Theme'
valid()[source]
visible()[source]