From e36c413efbf7587e1cf6ac04ec372fb5746a0e13 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 25 Oct 2019 15:35:43 -0500 Subject: [PATCH] Allow CRUD actions by default, for CORE master views --- tailbone_corepos/views/corepos/master.py | 30 +----------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/tailbone_corepos/views/corepos/master.py b/tailbone_corepos/views/corepos/master.py index ff95e35..7639bb4 100644 --- a/tailbone_corepos/views/corepos/master.py +++ b/tailbone_corepos/views/corepos/master.py @@ -24,18 +24,11 @@ CORE POS master view """ -# import six - -# from corepos.util import catapult_time - -# from rattail.time import localtime -# from rattail.util import NOTSET from rattail.util import OrderedDict -from webhelpers2.html import HTML, tags +from webhelpers2.html import tags from tailbone.views import MasterView -# from tailbone.util import raw_datetime from tailbone_corepos.db import CoreOfficeSession, ExtraCoreOfficeSessions @@ -43,30 +36,9 @@ class CoreOfficeMasterView(MasterView): """ Master base class for Catapult views """ - # model_key = 'pk' - creatable = False - editable = False - deletable = False - supports_multiple_engines = True engine_type_key = 'corepos' - # # 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)} - - # def render_catapult_datetime(self, record, field, value=NOTSET): - # if value is NOTSET: - # value = getattr(record, field) - # if not value: - # return "" - # value = catapult_time(value) - # value = localtime(self.rattail_config, value) - # return raw_datetime(self.rattail_config, value) - def get_db_engines(self): engines = OrderedDict() if self.rattail_config.corepos_engine: