shuup.admin.modules.shops.views package

Submodules

shuup.admin.modules.shops.views.edit module

class shuup.admin.modules.shops.views.edit.ShopBaseFormPart(request, object=None)[source]

Bases: FormPart

priority: int = 1
get_form_defs()[source]
form_valid(form)[source]
class shuup.admin.modules.shops.views.edit.ContactAddressFormPart(request, object=None)[source]

Bases: FormPart

priority: int = 2
get_form_defs()[source]
form_valid(form)[source]
class shuup.admin.modules.shops.views.edit.ShopEnablerView(**kwargs)[source]

Bases: View

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

post(request, *args, **kwargs)[source]
class shuup.admin.modules.shops.views.edit.ShopEditView(**kwargs)[source]

Bases: SaveFormPartsMixin, FormPartsViewMixin, CreateOrUpdateView

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

model

alias of Shop

template_name = 'shuup/admin/shops/edit.jinja'
context_object_name = 'shop'
base_form_part_classes: Any | Any = [<class 'shuup.admin.modules.shops.views.edit.ShopBaseFormPart'>, <class 'shuup.admin.modules.shops.views.edit.ContactAddressFormPart'>]
form_part_class_provide_key: str | None = 'admin_shop_form_part'
get_object(queryset=None)[source]

Return the object the view is displaying.

Require self.queryset and a pk or slug argument in the URLconf. Subclasses can override this to return any object.

get_toolbar()[source]
form_valid(form)[source]

If the form is valid, save the associated model.

get_queryset()[source]

Return the QuerySet that will be used to look up the object.

This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.

class shuup.admin.modules.shops.views.edit.ShopSelectView(**kwargs)[source]

Bases: View

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

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

shuup.admin.modules.shops.views.list module

class shuup.admin.modules.shops.views.list.ShopListView[source]

Bases: PicotableListView

model

alias of Shop

default_columns = [<Column: Logo> logo, <Column: Name> name, <Column: Domain> domain, <Column: Identifier> identifier, <Column: Status> status]
toolbar_buttons_provider_key: str | None = 'shop_list_toolbar_provider'
mass_actions_provider_key: str | None = 'shop_list_mass_actions_provider'
get_queryset()[source]

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

get_toolbar()[source]

shuup.admin.modules.shops.views.wizard module

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

Bases: WizardPane

identifier = 'general'
icon = 'shuup_admin/img/configure.png'
title = 'Shop Details'
text = 'Add an address so you can get paid'
valid()[source]

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

visible()[source]

Returns whether this pane is visible for editing.

get_form_defs()[source]
form_valid(form)[source]

Module contents

class shuup.admin.modules.shops.views.ShopEditView(**kwargs)[source]

Bases: SaveFormPartsMixin, FormPartsViewMixin, CreateOrUpdateView

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

base_form_part_classes: Any | Any = [<class 'shuup.admin.modules.shops.views.edit.ShopBaseFormPart'>, <class 'shuup.admin.modules.shops.views.edit.ContactAddressFormPart'>]
context_object_name = 'shop'
form_part_class_provide_key: str | None = 'admin_shop_form_part'
form_valid(form)[source]

If the form is valid, save the associated model.

get_object(queryset=None)[source]

Return the object the view is displaying.

Require self.queryset and a pk or slug argument in the URLconf. Subclasses can override this to return any object.

get_queryset()[source]

Return the QuerySet that will be used to look up the object.

This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.

get_toolbar()[source]
model

alias of Shop

template_name = 'shuup/admin/shops/edit.jinja'
class shuup.admin.modules.shops.views.ShopEnablerView(**kwargs)[source]

Bases: View

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

post(request, *args, **kwargs)[source]
class shuup.admin.modules.shops.views.ShopListView[source]

Bases: PicotableListView

default_columns = [<Column: Logo> logo, <Column: Name> name, <Column: Domain> domain, <Column: Identifier> identifier, <Column: Status> status]
get_queryset()[source]

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

get_toolbar()[source]
mass_actions_provider_key: str | None = 'shop_list_mass_actions_provider'
model

alias of Shop

toolbar_buttons_provider_key: str | None = 'shop_list_toolbar_provider'
class shuup.admin.modules.shops.views.ShopWizardPane(request, object=None)[source]

Bases: WizardPane

form_valid(form)[source]
get_form_defs()[source]
icon = 'shuup_admin/img/configure.png'
identifier = 'general'
text = 'Add an address so you can get paid'
title = 'Shop Details'
valid()[source]

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

visible()[source]

Returns whether this pane is visible for editing.

class shuup.admin.modules.shops.views.ShopSelectView(**kwargs)[source]

Bases: View

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

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