Tweak config for product views
per upstream changes
This commit is contained in:
parent
a537386dcf
commit
ccc13e1097
|
@ -143,14 +143,10 @@ class ProductView(base.ProductView):
|
||||||
|
|
||||||
def includeme(config):
|
def includeme(config):
|
||||||
|
|
||||||
# TODO: getting pretty tired of copy/pasting this extra config...
|
|
||||||
config.add_route('products.autocomplete', '/products/autocomplete')
|
|
||||||
config.add_view(base.ProductsAutocomplete, route_name='products.autocomplete',
|
|
||||||
renderer='json', permission='products.list')
|
|
||||||
|
|
||||||
# TODO: getting pretty tired of copy/pasting this extra config...
|
# TODO: getting pretty tired of copy/pasting this extra config...
|
||||||
config.add_route('products.print_labels', '/products/labels')
|
config.add_route('products.print_labels', '/products/labels')
|
||||||
config.add_view(base.print_labels, route_name='products.print_labels',
|
config.add_view(base.print_labels, route_name='products.print_labels',
|
||||||
renderer='json', permission='products.print_labels')
|
renderer='json', permission='products.print_labels')
|
||||||
|
|
||||||
ProductView.defaults(config)
|
ProductView.defaults(config)
|
||||||
|
PendingProductView.defaults(config)
|
||||||
|
|
Loading…
Reference in a new issue