Remove old-style continuum version views

This commit is contained in:
Lance Edgar 2017-07-06 00:19:31 -05:00
parent 83751f7c9e
commit 66cc6cd39a
10 changed files with 11 additions and 357 deletions

View file

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8; -*-
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2016 Lance Edgar
# Copyright © 2010-2017 Lance Edgar
#
# This file is part of Rattail.
#
@ -33,7 +33,6 @@ from pyramid.httpexceptions import HTTPFound
from tailbone import forms
from tailbone.db import Session
from tailbone.views import MasterView
from tailbone.views.continuum import VersionView, version_defaults
class ProfilesView(MasterView):
@ -83,16 +82,6 @@ class ProfilesView(MasterView):
pass
class LabelProfileVersionView(VersionView):
"""
View which shows version history for a label profile.
"""
parent_class = model.LabelProfile
model_title = "Label Profile"
route_model_list = 'label_profiles'
route_model_view = 'labelprofiles.view'
def printer_settings(request):
uuid = request.matchdict['uuid']
profile = Session.query(model.LabelProfile).get(uuid) if uuid else None
@ -123,7 +112,6 @@ def printer_settings(request):
def includeme(config):
ProfilesView.defaults(config)
version_defaults(config, LabelProfileVersionView, 'labelprofile', template_prefix='/labels/profiles')
# edit printer settings
config.add_route('labelprofiles.printer_settings', '/labels/profiles/{uuid}/printer')