rattail-demo/rattail_demo/web/views/corepos/master.py
2018-11-22 16:48:06 -06:00

31 lines
658 B
Python

# -*- coding: utf-8; -*-
"""
CORE-POS master view
"""
from __future__ import unicode_literals, absolute_import
# import six
from tailbone.views import MasterView
from rattail_demo.web.db import CoreSession
class CoreMasterView(MasterView):
"""
Master base class for CORE-POS views
"""
Session = CoreSession
# model_key = 'pk'
creatable = False
editable = False
deletable = False
# # TODO: would be nice to find a way around this somehow
# # must encode all search values as utf-8
# use_byte_string_filters = True
# def get_action_route_kwargs(self, row):
# return {'pk': six.text_type(row.pk)}