Remove unwanted autocomplete view config
This commit is contained in:
parent
c9dace8a26
commit
39ed58f75c
|
@ -81,14 +81,4 @@ class CustomerView(base.CustomerView):
|
||||||
|
|
||||||
|
|
||||||
def includeme(config):
|
def includeme(config):
|
||||||
|
|
||||||
# autocomplete
|
|
||||||
# TODO: ugh
|
|
||||||
config.add_route('customers.autocomplete', '/customers/autocomplete')
|
|
||||||
config.add_view(base.CustomerNameAutocomplete, route_name='customers.autocomplete',
|
|
||||||
renderer='json', permission='customers.list')
|
|
||||||
config.add_route('customers.autocomplete.phone', '/customers/autocomplete/phone')
|
|
||||||
config.add_view(base.CustomerPhoneAutocomplete, route_name='customers.autocomplete.phone',
|
|
||||||
renderer='json', permission='customers.list')
|
|
||||||
|
|
||||||
CustomerView.defaults(config)
|
CustomerView.defaults(config)
|
||||||
|
|
|
@ -93,13 +93,4 @@ class PersonView(base.PersonView):
|
||||||
|
|
||||||
|
|
||||||
def includeme(config):
|
def includeme(config):
|
||||||
|
|
||||||
# autocomplete
|
|
||||||
config.add_route('people.autocomplete', '/people/autocomplete')
|
|
||||||
config.add_view(base.PeopleAutocomplete, route_name='people.autocomplete',
|
|
||||||
renderer='json', permission='people.list')
|
|
||||||
config.add_route('people.autocomplete.employees', '/people/autocomplete/employees')
|
|
||||||
config.add_view(base.PeopleEmployeesAutocomplete, route_name='people.autocomplete.employees',
|
|
||||||
renderer='json', permission='people.list')
|
|
||||||
|
|
||||||
PersonView.defaults(config)
|
PersonView.defaults(config)
|
||||||
|
|
|
@ -122,11 +122,6 @@ 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',
|
||||||
|
|
|
@ -92,11 +92,4 @@ class VendorView(base.VendorView):
|
||||||
|
|
||||||
|
|
||||||
def includeme(config):
|
def includeme(config):
|
||||||
|
|
||||||
# TODO: ugh
|
|
||||||
# autocomplete
|
|
||||||
config.add_route('vendors.autocomplete', '/vendors/autocomplete')
|
|
||||||
config.add_view(base.VendorsAutocomplete, route_name='vendors.autocomplete',
|
|
||||||
renderer='json', permission='vendors.list')
|
|
||||||
|
|
||||||
VendorView.defaults(config)
|
VendorView.defaults(config)
|
||||||
|
|
Loading…
Reference in a new issue