From d16290cb7051ae0f9a3ae43e07858376f2084528 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 18 Jul 2022 12:31:54 -0500 Subject: [PATCH] Add new-style config defaults for BrandView --- tailbone/views/brands.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tailbone/views/brands.py b/tailbone/views/brands.py index b73060a3..92c6a41b 100644 --- a/tailbone/views/brands.py +++ b/tailbone/views/brands.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2021 Lance Edgar +# Copyright © 2010-2022 Lance Edgar # # This file is part of Rattail. # @@ -135,5 +135,12 @@ class BrandView(MasterView): self.Session.delete(removing) -def includeme(config): +def defaults(config, **kwargs): + base = globals() + + BrandView = kwargs.get('BrandView', base['BrandView']) BrandView.defaults(config) + + +def includeme(config): + defaults(config)