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'
- 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]
- model
alias of
ServiceProvider
- class shuup.admin.modules.service_providers.views.CarrierWizardPane(request, object=None)[source]
Bases:
ServiceWizardFormPartMixin
,WizardPane
- icon = 'shuup_admin/img/shipping.png'
- identifier = 'carrier'
- service_model
alias of
ShippingMethod
- text = 'To start shipping products right away, please add shipping methods for your shop'
- title = 'Carrier'
- class shuup.admin.modules.service_providers.views.PaymentWizardPane(request, object=None)[source]
Bases:
ServiceWizardFormPartMixin
,WizardPane
- icon = 'shuup_admin/img/payment.png'
- identifier = 'payment'
- service_model
alias of
PaymentMethod
- text = 'To start accepting payments right away, please add payment methods for your shop'
- title = 'Payment Provider'