shuup.admin.modules.service_providers.views package

Module contents

class shuup.admin.modules.service_providers.views.ServiceProviderDeleteView(**kwargs)[source]

Bases: DeleteView

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

model

alias of ServiceProvider

success_url = '/sa/service_provider/'
class shuup.admin.modules.service_providers.views.ServiceProviderEditView(**kwargs)[source]

Bases: CreateOrUpdateView

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

add_form_errors_as_messages = True
context_object_name = 'service_provider'
form_class

alias of Form

form_provide_key = 'service_provider_admin_form'
get_breadcrumb_parents()[source]
get_form(form_class=None)[source]

Return an instance of the form to be used in this view.

get_success_url()[source]

Return the URL to redirect to after processing a valid form.

get_toolbar()[source]
model

alias of ServiceProvider

template_name = 'shuup/admin/service_providers/edit.jinja'
property title
class shuup.admin.modules.service_providers.views.ServiceProviderListView[source]

Bases: PicotableListView

default_columns = [<Column: Name> name, <Column: Type> type]
get_object_abstract(instance, item)[source]

Get the object abstract lines (used for mobile layouts) for this object.

Supported keys in abstract line dicts are:

  • text (required)

  • title

  • class (CSS class name – header for instance)

  • raw (boolean; whether or not the text is raw HTML)

Parameters:
  • instance – The instance.

  • item – The item dict so far. Useful for reusing precalculated values.

Returns:

Iterable of dicts to pass through to the picotable javascript.

Return type:

Iterable[dict]

get_type_display(instance)[source]
mass_actions_provider_key: str | None = 'service_provider_mass_actions_provider'
model

alias of ServiceProvider

toolbar_buttons_provider_key: str | None = 'service_provider_list_toolbar_provider'
class shuup.admin.modules.service_providers.views.CarrierWizardPane(request, object=None)[source]

Bases: ServiceWizardFormPartMixin, WizardPane

base_name: str = 'shipping_method_base'
form_def_provide_key: str = 'carrier_wizard_form_def'
icon = 'shuup_admin/img/shipping.png'
identifier = 'carrier'
provider_label: Any = 'shipping method'
service_model

alias of ShippingMethod

text = 'To start shipping products right away, please add shipping methods for your shop'
title = 'Carrier'
valid()[source]

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

class shuup.admin.modules.service_providers.views.PaymentWizardPane(request, object=None)[source]

Bases: ServiceWizardFormPartMixin, WizardPane

base_name: str = 'payment_method_base'
form_def_provide_key: str = 'payment_processor_wizard_form_def'
icon = 'shuup_admin/img/payment.png'
identifier = 'payment'
provider_label: Any = 'payment method'
service_model

alias of PaymentMethod

text = 'To start accepting payments right away, please add payment methods for your shop'
title = 'Payment Provider'
valid()[source]

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