shuup.xtheme.admin_module package

Submodules

shuup.xtheme.admin_module.views module

shuup.xtheme.admin_module.views.get_theme_context()[source]
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)[source]

Bases: django.forms.forms.Form

A very simple form for activating a theme.

base_fields = OrderedDict([('activate', <django.forms.fields.CharField object at 0x7fabc6bafb70>), ('selected_style', <django.forms.fields.CharField object at 0x7fabc7c46438>)])
declared_fields = OrderedDict([('activate', <django.forms.fields.CharField object at 0x7fabc6bafb70>), ('selected_style', <django.forms.fields.CharField object at 0x7fabc7c46438>)])
media
class shuup.xtheme.admin_module.views.ThemeWizardPane(request, object=None)[source]

Bases: shuup.admin.views.wizard.WizardPane

identifier = 'theme'
icon = 'xtheme/theme.png'
title = <django.utils.functional.lazy.<locals>.__proxy__ object>
text = <django.utils.functional.lazy.<locals>.__proxy__ object>
visible()[source]
get_form_defs()[source]
form_valid(form)[source]
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.

template_name = 'shuup/xtheme/admin/config.jinja'
form_class

alias of ActivationForm

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

model

alias of ThemeSettings

template_name = 'shuup/xtheme/admin/config_detail.jinja'
form_class

alias of Form

context_object_name = 'theme_settings'
add_form_errors_as_messages = True
get_object(queryset=None)[source]
get_theme()[source]

Get the theme object to configure.

Returns:Theme object
Return type:shuup.xtheme.Theme
get_context_data(**kwargs)[source]
get_form(form_class=None)[source]
get_success_url()[source]
save_form(form)[source]
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
dispatch(request, *args, **kwargs)[source]

Module contents

class shuup.xtheme.admin_module.XthemeAdminModule[source]

Bases: shuup.admin.base.AdminModule

Admin module for Xtheme.

Allows theme activation/deactivation and further configuration.

name = <django.utils.functional.lazy.<locals>.__proxy__ object>
breadcrumbs_menu_entry = <shuup.admin.base.MenuEntry object>
get_urls()[source]
get_menu_entries(request)[source]
get_help_blocks(request, kind)[source]
get_required_permissions()[source]
get_notifications(request)[source]