Remove deprecated config
This commit is contained in:
parent
ad8bddc413
commit
8df1fc97f3
|
@ -120,12 +120,11 @@ class ProductView(base.ProductView):
|
|||
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):
|
||||
|
||||
# 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)
|
||||
base.PendingProductView.defaults(config)
|
||||
PendingProductView.defaults(config)
|
||||
|
|
Loading…
Reference in a new issue