shuup.front.apps.customer_information package

Submodules

shuup.front.apps.customer_information.dashboard_items module

class shuup.front.apps.customer_information.dashboard_items.CustomerDashboardItem(request)[source]

Bases: shuup.front.utils.dashboard.DashboardItem

template_name = 'shuup/customer_information/customer_dashboard_item.jinja'
title = <django.utils.functional.lazy.<locals>.__proxy__ object>
icon = 'fa fa-user'
get_context()[source]
class shuup.front.apps.customer_information.dashboard_items.CompanyDashboardItem(request)[source]

Bases: shuup.front.utils.dashboard.DashboardItem

title = <django.utils.functional.lazy.<locals>.__proxy__ object>
description = <django.utils.functional.lazy.<locals>.__proxy__ object>
icon = 'fa fa-building'
show_on_dashboard()[source]
show_on_menu()[source]
class shuup.front.apps.customer_information.dashboard_items.AddressBookDashboardItem(request)[source]

Bases: shuup.front.utils.dashboard.DashboardItem

title = <django.utils.functional.lazy.<locals>.__proxy__ object>
description = <django.utils.functional.lazy.<locals>.__proxy__ object>
icon = 'fa fa-building'
show_on_dashboard()[source]

shuup.front.apps.customer_information.forms module

class shuup.front.apps.customer_information.forms.PersonContactForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of PersonContact

fields = ('first_name', 'last_name', 'phone', 'email', 'gender', 'language', 'marketing_permission')
PersonContactForm.save(commit=True)[source]
PersonContactForm.base_fields = OrderedDict([('first_name', <django.forms.fields.CharField object at 0x7fabc9d54f60>), ('last_name', <django.forms.fields.CharField object at 0x7fabc9d547b8>), ('phone', <django.forms.fields.CharField object at 0x7fabc9d54860>), ('email', <django.forms.fields.EmailField object at 0x7fabc9d54dd8>), ('gender', <enumfields.forms.EnumChoiceField object at 0x7fabc9d54390>), ('language', <shuup.core.fields.LanguageFormField object at 0x7fabc9d6cf28>), ('marketing_permission', <django.forms.fields.BooleanField object at 0x7fabc9d54630>)])
PersonContactForm.declared_fields = OrderedDict([('language', <shuup.core.fields.LanguageFormField object at 0x7fabc9d6cf28>)])
PersonContactForm.media
class shuup.front.apps.customer_information.forms.CompanyContactForm(*args, **kwargs)[source]

Bases: django.forms.models.ModelForm

class Meta[source]

Bases: object

model

alias of CompanyContact

fields = ('name', 'tax_number', 'phone', 'email', 'marketing_permission')
CompanyContactForm.clean_tax_number()[source]

Clean Tax Number

This is done because we want to prevent duplicates in front-end

CompanyContactForm.base_fields = OrderedDict([('name', <django.forms.fields.CharField object at 0x7fabc9d540b8>), ('tax_number', <django.forms.fields.CharField object at 0x7fabc9e425c0>), ('phone', <django.forms.fields.CharField object at 0x7fabc9d54550>), ('email', <django.forms.fields.EmailField object at 0x7fabc9e42fd0>), ('marketing_permission', <django.forms.fields.BooleanField object at 0x7fabc9d54c88>)])
CompanyContactForm.declared_fields = OrderedDict()
CompanyContactForm.media
class shuup.front.apps.customer_information.forms.SavedAddressForm(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)[source]

Bases: django.forms.forms.Form

base_fields = OrderedDict([('title', <django.forms.fields.CharField object at 0x7fabc9e42860>), ('role', <enumfields.forms.EnumChoiceField object at 0x7fabc9e42b38>), ('status', <enumfields.forms.EnumChoiceField object at 0x7fabc9e424a8>)])
declared_fields = OrderedDict([('title', <django.forms.fields.CharField object at 0x7fabc9e42860>), ('role', <enumfields.forms.EnumChoiceField object at 0x7fabc9e42b38>), ('status', <enumfields.forms.EnumChoiceField object at 0x7fabc9e424a8>)])
media

shuup.front.apps.customer_information.notify_events module

class shuup.front.apps.customer_information.notify_events.CompanyAccountCreated(**variable_values)[source]

Bases: shuup.notify.base.Event

identifier = 'company_account_created'
bindings = {}
name = 'Company Account Created'
variables = {'contact': <shuup.notify.base.Variable object at 0x7fabc9e421d0>, 'customer_email': <shuup.notify.base.Variable object at 0x7fabc9e42908>}

shuup.front.apps.customer_information.urls module

shuup.front.apps.customer_information.views module

class shuup.front.apps.customer_information.views.PasswordChangeView(**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/customer_information/change_password.jinja'
post(*args, **kwargs)[source]
get_context_data(**kwargs)[source]
class shuup.front.apps.customer_information.views.CustomerEditView(**kwargs)[source]

Bases: shuup.front.views.dashboard.DashboardViewMixin, django.views.generic.edit.FormView

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

template_name = 'shuup/customer_information/edit_customer.jinja'
get_form(form_class=None)
form_valid(form)[source]
class shuup.front.apps.customer_information.views.CompanyEditView(**kwargs)[source]

Bases: shuup.front.views.dashboard.DashboardViewMixin, django.views.generic.edit.FormView

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

template_name = 'shuup/customer_information/edit_company.jinja'
dispatch(request, *args, **kwargs)[source]
get_form(form_class=None)
form_valid(form)[source]
class shuup.front.apps.customer_information.views.AddressBookView(**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/customer_information/addressbook/index.jinja'
get_context_data(**kwargs)[source]
class shuup.front.apps.customer_information.views.AddressBookEditView(**kwargs)[source]

Bases: shuup.front.views.dashboard.DashboardViewMixin, django.views.generic.edit.FormView

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

template_name = 'shuup/customer_information/addressbook/edit.jinja'
form_class

alias of SavedAddressForm

instance = None
dispatch(request, *args, **kwargs)[source]
get_form(form_class=None)
form_valid(form)[source]
shuup.front.apps.customer_information.views.delete_address(request, pk)[source]

Module contents

class shuup.front.apps.customer_information.AppConfig(*args, **kwargs)[source]

Bases: shuup.apps.AppConfig

name = 'shuup.front.apps.customer_information'
verbose_name = <django.utils.functional.lazy.<locals>.__proxy__ object>
label = 'shuup_front.customer_information'
provides = {'customer_dashboard_items': ['shuup.front.apps.customer_information.dashboard_items:CustomerDashboardItem', 'shuup.front.apps.customer_information.dashboard_items:CompanyDashboardItem', 'shuup.front.apps.customer_information.dashboard_items:AddressBookDashboardItem'], 'notify_event': ['shuup.front.apps.customer_information.notify_events:CompanyAccountCreated'], 'front_urls': ['shuup.front.apps.customer_information.urls:urlpatterns']}