sideshow.web.views.customers

Views for Customers

class sideshow.web.views.customers.LocalCustomerView(request, context=None)[source]

Master view for LocalCustomer; route prefix is local_customers.

Notable URLs provided by this class:

  • /local/customers/

  • /local/customers/new

  • /local/customers/XXX

  • /local/customers/XXX/edit

  • /local/customers/XXX/delete

make_new_order_batches_grid(customer)[source]

Make and return the grid for the New Order Batches field.

make_orders_grid(customer)[source]

Make and return the grid for the Orders field.

model_class

alias of LocalCustomer

class sideshow.web.views.customers.PendingCustomerView(request, context=None)[source]

Master view for PendingCustomer; route prefix is pending_customers.

Notable URLs provided by this class:

  • /pending/customers/

  • /pending/customers/new

  • /pending/customers/XXX

  • /pending/customers/XXX/edit

  • /pending/customers/XXX/delete

make_new_order_batches_grid(customer)[source]

Make and return the grid for the New Order Batches field.

make_orders_grid(customer)[source]

Make and return the grid for the Orders field.

model_class

alias of PendingCustomer