Remove deprecated config

This commit is contained in:
Lance Edgar 2022-01-17 19:01:02 -06:00
parent ad8bddc413
commit 8df1fc97f3

View file

@ -120,12 +120,11 @@ class ProductView(base.ProductView):
return kwargs return kwargs
# TODO: this seems awkward here, but makes things less awkward to
# modules using this one as their base
PendingProductView = base.PendingProductView
def includeme(config): def includeme(config):
# TODO: getting pretty tired of copy/pasting this extra config...
config.add_route('products.print_labels', '/products/labels')
config.add_view(base.print_labels, route_name='products.print_labels',
renderer='json', permission='products.print_labels')
ProductView.defaults(config) ProductView.defaults(config)
base.PendingProductView.defaults(config) PendingProductView.defaults(config)