diff --git a/tailbone_corepos/views/products.py b/tailbone_corepos/views/products.py index e859c66..e33d4c5 100644 --- a/tailbone_corepos/views/products.py +++ b/tailbone_corepos/views/products.py @@ -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)