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.FormA 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.FormViewA 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
-
-
class
shoop.xtheme.admin_module.views.ThemeConfigDetailView(**kwargs)[source]¶ Bases:
shoop.admin.utils.views.CreateOrUpdateViewA 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_theme()[source]¶ Get the theme object to configure.
Returns: Theme object Return type: shoop.xtheme.Theme
-
Module contents¶
-
class
shoop.xtheme.admin_module.XthemeAdminModule[source]¶ Bases:
shoop.admin.base.AdminModuleAdmin module for Xtheme.
Allows theme activation/deactivation and further configuration.
-
name= <django.utils.functional.lazy.<locals>.__proxy__ object>¶
-