shuup.admin.views package

Submodules

shuup.admin.views.auth module

class shuup.admin.views.auth.LogoutView(**kwargs)[source]

Bases: django.contrib.auth.views.LogoutView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

template_name = 'shuup/admin/auth/logout.jinja'
class shuup.admin.views.auth.LoginView(**kwargs)[source]

Bases: django.contrib.auth.views.LoginView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

form_class

alias of EmailAuthenticationForm

shuup.admin.views.dashboard module

class shuup.admin.views.dashboard.DashboardView(**kwargs)[source]

Bases: django.views.generic.base.TemplateView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

template_name = 'shuup/admin/dashboard/dashboard.jinja'
get_context_data(**kwargs)[source]
get(request, *args, **kwargs)[source]

shuup.admin.views.edit module

class shuup.admin.views.edit.EditObjectView(**kwargs)[source]

Bases: django.views.generic.base.View

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

get(request)[source]

shuup.admin.views.home module

class shuup.admin.views.home.HelpBlockCategory[source]

Bases: enumfields.enums.Enum

An enumeration.

PRODUCTS = 1
ORDERS = 2
CAMPAIGNS = 3
CONTACTS = 4
STOREFRONT = 5
GENERAL = 200
class shuup.admin.views.home.SimpleHelpBlock(text, **kwargs)[source]

Bases: object

class shuup.admin.views.home.HomeView(**kwargs)[source]

Bases: django.views.generic.base.TemplateView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

template_name = 'shuup/admin/home/home.jinja'
get_context_data(**kwargs)[source]

shuup.admin.views.impersonate module

shuup.admin.views.impersonate.stop_impersonating_staff(request)[source]

shuup.admin.views.menu module

class shuup.admin.views.menu.MenuView(**kwargs)[source]

Bases: django.views.generic.base.TemplateView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

template_name = 'shuup/admin/base/_main_menu.jinja'
class shuup.admin.views.menu.MenuToggleView(**kwargs)[source]

Bases: django.views.generic.base.View

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

post(request, *args, **kwargs)[source]

shuup.admin.views.password module

class shuup.admin.views.password.RequestPasswordView(**kwargs)[source]

Bases: django.views.generic.edit.FormView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

template_name = 'shuup/admin/auth/request_password.jinja'
get_form_class()[source]
get_success_url()[source]
get_form_kwargs()[source]
form_valid(form)[source]
class shuup.admin.views.password.ResetPasswordView(**kwargs)[source]

Bases: django.views.generic.edit.FormView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

template_name = 'shuup/admin/auth/reset_password.jinja'
success_url = '/sa/'
token_generator = <django.contrib.auth.tokens.PasswordResetTokenGenerator object>
get_form_class()[source]
get_form_kwargs()[source]
get_target_user()[source]
dispatch(request, *args, **kwargs)[source]
form_valid(form)[source]

shuup.admin.views.search module

shuup.admin.views.search.get_search_results(request, query)[source]
class shuup.admin.views.search.SearchView(**kwargs)[source]

Bases: django.views.generic.base.View

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

get(request, *args, **kwargs)[source]

shuup.admin.views.select module

class shuup.admin.views.select.MultiselectAjaxView(**kwargs)[source]

Bases: django.views.generic.base.TemplateView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

model = None
search_fields = []
result_limit = 20
init_search_fields(cls)[source]

Configure the fields to use for searching.

If the cls object has a search_fields attribute, it will be used, otherwise, the class will be inspected and the attribute name or translations__name will mainly be used.

Other fields will be used for already known cls instances.

get_data(request, *args, **kwargs)[source]
get(request, *args, **kwargs)[source]

shuup.admin.views.tour module

class shuup.admin.views.tour.TourView(**kwargs)[source]

Bases: django.views.generic.base.View

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

post(request, *args, **kwargs)[source]

shuup.admin.views.wizard module

class shuup.admin.views.wizard.WizardFormDefMixin(**kwargs)[source]

Bases: object

class shuup.admin.views.wizard.WizardFormDef(**kwargs)[source]

Bases: shuup.admin.views.wizard.WizardFormDefMixin, shuup.utils.form_group.FormDef

class shuup.admin.views.wizard.TemplatedWizardFormDef(**kwargs)[source]

Bases: shuup.admin.views.wizard.WizardFormDefMixin, shuup.admin.form_part.TemplatedFormDef

class shuup.admin.views.wizard.WizardPane(request, object=None)[source]

Bases: shuup.admin.form_part.FormPart

identifier = None
title = None
text = None
icon = None
can_skip = False
editable = True
visible()[source]

Returns whether this pane is visible for editing.

valid()[source]

Returns whether this pane is valid and should be included in wizard pane list.

class shuup.admin.views.wizard.WizardView(**kwargs)[source]

Bases: django.views.generic.base.TemplateView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

template_name = 'shuup/admin/wizard/wizard.jinja'
panes
get_all_pane_forms()[source]
current_pane
get_final_pane_identifier()[source]
get_context_data(**kwargs)[source]
get_form_group_for_pane(pane)[source]
get_form()[source]
form_valid(form)[source]
form_invalid(form)[source]
post(request, *args, **kwargs)[source]
get(request, *args, **kwargs)[source]

Module contents