19 lines
496 B
Python
19 lines
496 B
Python
|
# -*- coding: utf-8; -*-
|
||
|
"""
|
||
|
Vendor views
|
||
|
"""
|
||
|
|
||
|
from tailbone.views import vendors as base
|
||
|
# NOTE: the main point of this module is to bring this in
|
||
|
from tailbone_corepos.views.vendors import VendorView
|
||
|
|
||
|
|
||
|
def includeme(config):
|
||
|
|
||
|
# 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)
|