shuup.front.views package

Submodules

shuup.front.views.basket module

class shuup.front.views.basket.DefaultBasketView(**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/front/basket/default_basket.jinja'
get_context_data(**kwargs)[source]
class shuup.front.views.basket.BasketView(**kwargs)[source]

Bases: django.views.generic.base.View

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

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

shuup.front.views.category module

shuup.front.views.category.get_context_data(context, request, category, product_filters)[source]
class shuup.front.views.category.CategoryView(**kwargs)[source]

Bases: django.views.generic.detail.DetailView

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

template_name = 'shuup/front/product/category.jinja'
model

alias of Category

template_object_name = 'category'
get_queryset()[source]
get_product_filters()[source]
get_context_data(**kwargs)[source]
class shuup.front.views.category.AllCategoriesView(**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/front/product/category.jinja'
get_product_filters()[source]
get_context_data(**kwargs)[source]

shuup.front.views.checkout module

class shuup.front.views.checkout.BaseCheckoutView(**kwargs)[source]

Bases: django.views.generic.base.View

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

url_namespace = 'shuup:checkout'
phase_specs = []
empty_phase_spec = None
initial_phase = None
process_class

alias of CheckoutProcess

dispatch(request, *args, **kwargs)[source]
get_url(**kwargs)[source]

Get URL for given kwargs within the checkout process in this view.

This can be overriden in a subclass to customize the URLs.

Return type:str
get_phase_url(phase)[source]

Get URL for the given phase in the checkout process of this view.

Return type:str

shuup.front.views.dashboard module

class shuup.front.views.dashboard.DashboardViewMixin[source]

Bases: object

get_context_data(**kwargs)[source]
get_menu_items()[source]
dispatch(request, *args, **kwargs)[source]
class shuup.front.views.dashboard.DashboardView(**kwargs)[source]

Bases: shuup.front.views.dashboard.DashboardViewMixin, django.views.generic.base.TemplateView

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

template_name = 'shuup/front/dashboard/dashboard.jinja'

shuup.front.views.index module

class shuup.front.views.index.IndexView(**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/front/index.jinja'
get_context_data(**kwargs)[source]

shuup.front.views.misc module

shuup.front.views.misc.toggle_all_seeing(request)[source]
shuup.front.views.misc.force_anonymous_contact(request)[source]
shuup.front.views.misc.force_person_contact(request)[source]
shuup.front.views.misc.force_company_contact(request)[source]
shuup.front.views.misc.stop_impersonating(request)[source]

shuup.front.views.order module

class shuup.front.views.order.OrderCompleteView(**kwargs)[source]

Bases: django.views.generic.detail.DetailView

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

template_name = 'shuup/front/order/complete.jinja'
model

alias of Order

context_object_name = 'order'
render_to_response(context, **response_kwargs)[source]
get_object(queryset=None)[source]
class shuup.front.views.order.OrderRequiresVerificationView(**kwargs)[source]

Bases: django.views.generic.detail.DetailView

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

template_name = 'shuup/front/order/requires_verification.jinja'
model

alias of Order

get_object(queryset=None)[source]
get_context_data(**kwargs)[source]
get(request, **kwargs)[source]

shuup.front.views.payment module

shuup.front.views.payment.get_payment_urls(request, order)[source]
class shuup.front.views.payment.ProcessPaymentView(**kwargs)[source]

Bases: django.views.generic.detail.DetailView

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

model

alias of Order

context_object_name = 'order'
get_object(queryset=None)[source]
get_context_data(**kwargs)[source]
dispatch(request, *args, **kwargs)[source]

shuup.front.views.product module

class shuup.front.views.product.ProductDetailView(**kwargs)[source]

Bases: django.views.generic.detail.DetailView

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

template_name = 'shuup/front/product/detail.jinja'
model

alias of Product

context_object_name = 'product'
get_queryset()[source]
get_context_data(**kwargs)[source]
get(request, *args, **kwargs)[source]

shuup.front.views.upload module

shuup.front.views.upload.file_size_validator(value)[source]
class shuup.front.views.upload.UploadImageForm(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, field_order=None, use_required_attribute=None, renderer=None)[source]

Bases: django.forms.forms.Form

base_fields = OrderedDict([('file', <django.forms.fields.ImageField object>)])
declared_fields = OrderedDict([('file', <django.forms.fields.ImageField object>)])
media
shuup.front.views.upload.media_upload(request, *args, **kwargs)[source]

Module contents