rattail-demo/rattail_demo/web/views/vendors.py

19 lines
496 B
Python
Raw Normal View History

# -*- 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)