shoop.xtheme.admin_module package

Submodules

shoop.xtheme.admin_module.views module

class shoop.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 0x7f530070e358>)])
declared_fields = OrderedDict([('activate', <django.forms.fields.CharField object at 0x7f530070e358>)])
media
class shoop.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 = 'shoop/xtheme/admin/config.jinja'
form_class

alias of ActivationForm

get_context_data(**kwargs)[source]
form_valid(form)[source]
class shoop.xtheme.admin_module.views.ThemeConfigDetailView(**kwargs)[source]

Bases: shoop.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 = 'shoop/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:shoop.xtheme.Theme
get_context_data(**kwargs)[source]
get_form(form_class=None)[source]
get_success_url()[source]

Module contents

class shoop.xtheme.admin_module.XthemeAdminModule[source]

Bases: shoop.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 = <shoop.admin.base.MenuEntry object>
get_urls()[source]
get_menu_category_icons()[source]
get_menu_entries(request)[source]
get_required_permissions()[source]
get_notifications(request)[source]