source: rattail-demo/rattail_demo/web/views/corepos/master.py @ e20a9b8

Last change on this file since e20a9b8 was e20a9b8, checked in by Lance Edgar <lance@…>, 14 months ago

Add basic CORE-POS table views

  • Property mode set to 100644
File size: 658 bytes
Line 
1# -*- coding: utf-8; -*-
2"""
3CORE-POS master view
4"""
5
6from __future__ import unicode_literals, absolute_import
7
8# import six
9
10from tailbone.views import MasterView
11
12from rattail_demo.web.db import CoreSession
13
14
15class CoreMasterView(MasterView):
16    """
17    Master base class for CORE-POS views
18    """
19    Session = CoreSession
20    # model_key = 'pk'
21    creatable = False
22    editable = False
23    deletable = False
24
25    # # TODO: would be nice to find a way around this somehow
26    # # must encode all search values as utf-8
27    # use_byte_string_filters = True
28
29    # def get_action_route_kwargs(self, row):
30    #     return {'pk': six.text_type(row.pk)}
Note: See TracBrowser for help on using the repository browser.