Changeset d16290c in tailbone


Ignore:
Timestamp:
07/18/2022 12:31:54 PM (7 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
5e025392
Parents:
c6df827
Message:

Add new-style config defaults for BrandView?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tailbone/views/brands.py

    rc6df827 rd16290c  
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2021 Lance Edgar
     5#  Copyright © 2010-2022 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    136136
    137137
     138def defaults(config, **kwargs):
     139    base = globals()
     140
     141    BrandView = kwargs.get('BrandView', base['BrandView'])
     142    BrandView.defaults(config)
     143
     144
    138145def includeme(config):
    139     BrandView.defaults(config)
     146    defaults(config)
Note: See TracChangeset for help on using the changeset viewer.