Remove old/unwanted Vue.js index experiment, for Users table
This commit is contained in:
parent
59cae7d207
commit
413e9b0f1e
4 changed files with 3 additions and 195 deletions
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2019 Lance Edgar
|
||||
# Copyright © 2010-2020 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -42,7 +42,6 @@ from tailbone import forms
|
|||
from tailbone.db import Session
|
||||
from tailbone.views import MasterView
|
||||
from tailbone.views.principal import PrincipalMasterView, PermissionsRenderer
|
||||
from tailbone.config import expose_vuejs_experiments
|
||||
|
||||
|
||||
class UsersView(PrincipalMasterView):
|
||||
|
@ -133,16 +132,6 @@ class UsersView(PrincipalMasterView):
|
|||
g.set_link('last_name')
|
||||
g.set_link('display_name')
|
||||
|
||||
def template_kwargs_index(self, **kwargs):
|
||||
kwargs['expose_vuejs_experiments'] = expose_vuejs_experiments(self.rattail_config)
|
||||
return kwargs
|
||||
|
||||
def vue_index(self):
|
||||
if not expose_vuejs_experiments(self.rattail_config):
|
||||
raise self.notfound()
|
||||
|
||||
return self.render_to_response('vue_index', {})
|
||||
|
||||
def unique_username(self, node, value):
|
||||
query = self.Session.query(model.User)\
|
||||
.filter(model.User.username == value)
|
||||
|
@ -408,10 +397,6 @@ class UsersView(PrincipalMasterView):
|
|||
|
||||
@classmethod
|
||||
def defaults(cls, config):
|
||||
|
||||
# TODO: probably should stop doing this one
|
||||
cls._vue_index_defaults(config)
|
||||
|
||||
cls._user_defaults(config)
|
||||
cls._principal_defaults(config)
|
||||
cls._defaults(config)
|
||||
|
@ -430,22 +415,6 @@ class UsersView(PrincipalMasterView):
|
|||
config.add_tailbone_permission(permission_prefix, '{}.edit_roles'.format(permission_prefix),
|
||||
"Edit the Roles to which a {} belongs".format(model_title))
|
||||
|
||||
@classmethod
|
||||
def _vue_index_defaults(cls, config):
|
||||
"""
|
||||
Provide default configuration for the "Vue.js index" view. This was
|
||||
essentially an experiment and probably should be abandoned.
|
||||
"""
|
||||
rattail_config = config.registry.settings.get('rattail_config')
|
||||
route_prefix = cls.get_route_prefix()
|
||||
url_prefix = cls.get_url_prefix()
|
||||
permission_prefix = cls.get_permission_prefix()
|
||||
|
||||
# vue-index
|
||||
config.add_route('{}.vue_index'.format(route_prefix), '{}/vue-index/'.format(url_prefix))
|
||||
config.add_view(cls, attr='vue_index', route_name='{}.vue_index'.format(route_prefix),
|
||||
permission='{}.list'.format(permission_prefix))
|
||||
|
||||
|
||||
class UserEventsView(MasterView):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue