Changeset b64f6c7 in tailbone


Ignore:
Timestamp:
11/23/2022 12:20:58 PM (2 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
604420c
Parents:
db9b361
Message:

Use newer config strategy for all views

to make inheritance easier

Location:
tailbone/views
Files:
44 edited

Legend:

Unmodified
Added
Removed
  • tailbone/views/auth.py

    rdb9b361 rb64f6c7  
    240240
    241241
     242def defaults(config, **kwargs):
     243    base = globals()
     244
     245    AuthenticationView = kwargs.get('AuthenticationView', base['AuthenticationView'])
     246    AuthenticationView.defaults(config)
     247
     248
    242249def includeme(config):
    243     AuthenticationView.defaults(config)
     250    defaults(config)
  • tailbone/views/bouncer.py

    rdb9b361 rb64f6c7  
    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.
     
    211211
    212212
     213def defaults(config, **kwargs):
     214    base = globals()
     215
     216    EmailBounceView = kwargs.get('EmailBounceView', base['EmailBounceView'])
     217    EmailBounceView.defaults(config)
     218
     219
    213220def includeme(config):
    214     EmailBounceView.defaults(config)
     221    defaults(config)
  • tailbone/views/categories.py

    rdb9b361 rb64f6c7  
    111111
    112112
     113def defaults(config, **kwargs):
     114    base = globals()
     115
     116    CategoryView = kwargs.get('CategoryView', base['CategoryView'])
     117    CategoryView.defaults(config)
     118
     119
    113120def includeme(config):
    114     CategoryView.defaults(config)
     121    defaults(config)
  • tailbone/views/common.py

    rdb9b361 rb64f6c7  
    341341
    342342
     343def defaults(config, **kwargs):
     344    base = globals()
     345
     346    CommonView = kwargs.get('CommonView', base['CommonView'])
     347    CommonView.defaults(config)
     348
     349
    343350def includeme(config):
    344     CommonView.defaults(config)
     351    defaults(config)
  • tailbone/views/customergroups.py

    rdb9b361 rb64f6c7  
    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.
     
    8181
    8282
     83def defaults(config, **kwargs):
     84    base = globals()
     85
     86    CustomerGroupView = kwargs.get('CustomerGroupView', base['CustomerGroupView'])
     87    CustomerGroupView.defaults(config)
     88
     89
    8390def includeme(config):
    84     CustomerGroupView.defaults(config)
     91    defaults(config)
  • tailbone/views/custorders/creating.py

    rdb9b361 rb64f6c7  
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2020 Lance Edgar
     5#  Copyright © 2010-2022 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    4646
    4747
     48def defaults(config, **kwargs):
     49    base = globals()
     50
     51    CreateCustomerOrderBatchView = kwargs.get('CreateCustomerOrderBatchView', base['CreateCustomerOrderBatchView'])
     52    CreateCustomerOrderBatchView.defaults(config)
     53
     54
    4855def includeme(config):
    49     CreateCustomerOrderBatchView.defaults(config)
     56    defaults(config)
  • tailbone/views/custorders/items.py

    rdb9b361 rb64f6c7  
    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.
     
    567567
    568568
     569def defaults(config, **kwargs):
     570    base = globals()
     571
     572    CustomerOrderItemView = kwargs.get('CustomerOrderItemView', base['CustomerOrderItemView'])
     573    CustomerOrderItemView.defaults(config)
     574
     575
    569576def includeme(config):
    570     CustomerOrderItemView.defaults(config)
     577    defaults(config)
  • tailbone/views/departments.py

    rdb9b361 rb64f6c7  
    242242
    243243
     244def defaults(config, **kwargs):
     245    base = globals()
     246
     247    DepartmentView = kwargs.get('DepartmentView', base['DepartmentView'])
     248    DepartmentView.defaults(config)
     249
     250
    244251def includeme(config):
    245     DepartmentView.defaults(config)
     252    defaults(config)
  • tailbone/views/depositlinks.py

    rdb9b361 rb64f6c7  
    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.
     
    6565
    6666
     67def defaults(config, **kwargs):
     68    base = globals()
     69
     70    DepositLinkView = kwargs.get('DepositLinkView', base['DepositLinkView'])
     71    DepositLinkView.defaults(config)
     72
     73
    6774def includeme(config):
    68     DepositLinkView.defaults(config)
     75    defaults(config)
  • tailbone/views/families.py

    rdb9b361 rb64f6c7  
    109109
    110110
     111def defaults(config, **kwargs):
     112    base = globals()
     113
     114    FamilyView = kwargs.get('FamilyView', base['FamilyView'])
     115    FamilyView.defaults(config)
     116
     117
    111118def includeme(config):
    112     FamilyView.defaults(config)
     119    defaults(config)
  • tailbone/views/features.py

    rdb9b361 rb64f6c7  
    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.
     
    113113
    114114
     115def defaults(config, **kwargs):
     116    base = globals()
     117
     118    GenerateFeatureView = kwargs.get('GenerateFeatureView', base['GenerateFeatureView'])
     119    GenerateFeatureView.defaults(config)
     120
     121
    115122def includeme(config):
    116     GenerateFeatureView.defaults(config)
     123    defaults(config)
  • tailbone/views/filemon.py

    rdb9b361 rb64f6c7  
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2018 Lance Edgar
     5#  Copyright © 2010-2022 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    6464
    6565
     66def defaults(config, **kwargs):
     67    base = globals()
     68
     69    FilemonView = kwargs.get('FilemonView', base['FilemonView'])
     70    FilemonView.defaults(config)
     71
     72
    6673def includeme(config):
    67     FilemonView.defaults(config)
     74    defaults(config)
  • tailbone/views/ifps.py

    rdb9b361 rb64f6c7  
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2020 Lance Edgar
     5#  Copyright © 2010-2022 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    9191
    9292
     93def defaults(config, **kwargs):
     94    base = globals()
     95
     96    IFPS_PLUView = kwargs.get('IFPS_PLUView', base['IFPS_PLUView'])
     97    IFPS_PLUView.defaults(config)
     98
     99
    93100def includeme(config):
    94     IFPS_PLUView.defaults(config)
     101    defaults(config)
  • tailbone/views/importing.py

    rdb9b361 rb64f6c7  
    651651
    652652
     653def defaults(config, **kwargs):
     654    base = globals()
     655
     656    ImportingView = kwargs.get('ImportingView', base['ImportingView'])
     657    ImportingView.defaults(config)
     658
     659
    653660def includeme(config):
    654     ImportingView.defaults(config)
     661    defaults(config)
  • tailbone/views/inventory.py

    rdb9b361 rb64f6c7  
    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.
     
    7171
    7272
     73def defaults(config, **kwargs):
     74    base = globals()
     75
     76    InventoryAdjustmentReasonView = kwargs.get('InventoryAdjustmentReasonView', base['InventoryAdjustmentReasonView'])
     77    InventoryAdjustmentReasonView.defaults(config)
     78
     79
    7380def includeme(config):
    74     InventoryAdjustmentReasonView.defaults(config)
     81    defaults(config)
  • tailbone/views/labels/profiles.py

    rdb9b361 rb64f6c7  
    178178
    179179
     180def defaults(config, **kwargs):
     181    base = globals()
     182
     183    LabelProfileView = kwargs.get('LabelProfileView', base['LabelProfileView'])
     184    LabelProfileView.defaults(config)
     185
     186
    180187def includeme(config):
    181     LabelProfileView.defaults(config)
     188    defaults(config)
  • tailbone/views/members.py

    rdb9b361 rb64f6c7  
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2020 Lance Edgar
     5#  Copyright © 2010-2022 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    190190
    191191
     192def defaults(config, **kwargs):
     193    base = globals()
     194
     195    MemberView = kwargs.get('MemberView', base['MemberView'])
     196    MemberView.defaults(config)
     197
     198
    192199def includeme(config):
    193     MemberView.defaults(config)
     200    defaults(config)
  • tailbone/views/messages.py

    rdb9b361 rb64f6c7  
    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.
     
    576576
    577577
     578def defaults(config, **kwargs):
     579    base = globals()
     580
     581    config.add_tailbone_permission('messages', 'messages.list',
     582                                   "List/Search Messages")
     583
     584    # inbox
     585    InboxView = kwargs.get('InboxView', base['InboxView'])
     586    config.add_route('messages.inbox', '/messages/inbox/')
     587    config.add_view(InboxView, attr='index',
     588                    route_name='messages.inbox',
     589                    permission='messages.list')
     590
     591    # archive
     592    ArchiveView = kwargs.get('ArchiveView', base['ArchiveView'])
     593    config.add_route('messages.archive', '/messages/archive/')
     594    config.add_view(ArchiveView, attr='index',
     595                    route_name='messages.archive',
     596                    permission='messages.list')
     597
     598    # sent
     599    SentView = kwargs.get('SentView', base['SentView'])
     600    config.add_route('messages.sent', '/messages/sent/')
     601    config.add_view(SentView, attr='index',
     602                    route_name='messages.sent',
     603                    permission='messages.list')
     604
     605    MessageView = kwargs.get('MessageView', base['MessageView'])
     606    MessageView.defaults(config)
     607
     608
    578609def includeme(config):
    579 
    580     config.add_tailbone_permission('messages', 'messages.list', "List/Search Messages")
    581 
    582     # inbox
    583     config.add_route('messages.inbox', '/messages/inbox/')
    584     config.add_view(InboxView, attr='index', route_name='messages.inbox',
    585                     permission='messages.list')
    586 
    587     # archive
    588     config.add_route('messages.archive', '/messages/archive/')
    589     config.add_view(ArchiveView, attr='index', route_name='messages.archive',
    590                     permission='messages.list')
    591 
    592     # sent
    593     config.add_route('messages.sent', '/messages/sent/')
    594     config.add_view(SentView, attr='index', route_name='messages.sent',
    595                     permission='messages.list')
    596 
    597     MessageView.defaults(config)
     610    defaults(config)
  • tailbone/views/permissions.py

    rdb9b361 rb64f6c7  
    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.
     
    5555
    5656
     57def defaults(config, **kwargs):
     58    base = globals()
     59
     60    PermissionView = kwargs.get('PermissionView', base['PermissionView'])
     61    PermissionView.defaults(config)
     62
     63
    5764def includeme(config):
    58     PermissionView.defaults(config)
     65    defaults(config)
  • tailbone/views/progress.py

    rdb9b361 rb64f6c7  
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2020 Lance Edgar
     5#  Copyright © 2010-2022 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    6666
    6767
    68 def includeme(config):
     68def defaults(config, **kwargs):
     69    base = globals()
     70
     71    progress = kwargs.get('progress', base['progress'])
    6972    config.add_route('progress', '/progress/{key}')
    7073    config.add_view(progress, route_name='progress', renderer='json')
    7174
     75    cancel = kwargs.get('cancel', base['cancel'])
    7276    config.add_route('progress.cancel', '/progress/{key}/cancel')
    7377    config.add_view(cancel, route_name='progress.cancel', renderer='json')
     78
     79
     80def includeme(config):
     81    defaults(config)
  • tailbone/views/projects.py

    rdb9b361 rb64f6c7  
    224224
    225225
     226def defaults(config, **kwargs):
     227    base = globals()
     228
     229    GenerateProjectView = kwargs.get('GenerateProjectView', base['GenerateProjectView'])
     230    GenerateProjectView.defaults(config)
     231
     232
    226233def includeme(config):
    227     GenerateProjectView.defaults(config)
     234    defaults(config)
  • tailbone/views/purchases/core.py

    rdb9b361 rb64f6c7  
    409409
    410410
     411def defaults(config, **kwargs):
     412    base = globals()
     413
     414    PurchaseView = kwargs.get('PurchaseView', base['PurchaseView'])
     415    PurchaseView.defaults(config)
     416
     417
    411418def includeme(config):
    412     PurchaseView.defaults(config)
     419    defaults(config)
  • tailbone/views/purchases/credits.py

    rdb9b361 rb64f6c7  
    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.
     
    202202
    203203
     204def defaults(config, **kwargs):
     205    base = globals()
     206
     207    PurchaseCreditView = kwargs.get('PurchaseCreditView', base['PurchaseCreditView'])
     208    PurchaseCreditView.defaults(config)
     209
     210
    204211def includeme(config):
    205     PurchaseCreditView.defaults(config)
     212    defaults(config)
  • tailbone/views/purchasing/costing.py

    rdb9b361 rb64f6c7  
    378378
    379379
     380def defaults(config, **kwargs):
     381    base = globals()
     382
     383    CostingBatchView = kwargs.get('CostingBatchView', base['CostingBatchView'])
     384    CostingBatchView.defaults(config)
     385
     386
    380387def includeme(config):
    381     CostingBatchView.defaults(config)
     388    defaults(config)
  • tailbone/views/purchasing/ordering.py

    rdb9b361 rb64f6c7  
    528528
    529529
     530def defaults(config, **kwargs):
     531    base = globals()
     532
     533    OrderingBatchView = kwargs.get('OrderingBatchView', base['OrderingBatchView'])
     534    OrderingBatchView.defaults(config)
     535
     536
    530537def includeme(config):
    531     OrderingBatchView.defaults(config)
     538    defaults(config)
  • tailbone/views/purchasing/receiving.py

    rdb9b361 rb64f6c7  
    20832083
    20842084
     2085def defaults(config, **kwargs):
     2086    base = globals()
     2087
     2088    ReceivingBatchView = kwargs.get('ReceivingBatchView', base['ReceivingBatchView'])
     2089    ReceivingBatchView.defaults(config)
     2090
     2091
    20852092def includeme(config):
    2086     ReceivingBatchView.defaults(config)
     2093    defaults(config)
  • tailbone/views/reportcodes.py

    rdb9b361 rb64f6c7  
    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.
     
    108108
    109109
     110def defaults(config, **kwargs):
     111    base = globals()
     112
     113    ReportCodeView = kwargs.get('ReportCodeView', base['ReportCodeView'])
     114    ReportCodeView.defaults(config)
     115
     116
    110117def includeme(config):
    111     ReportCodeView.defaults(config)
     118    defaults(config)
  • tailbone/views/reports.py

    rdb9b361 rb64f6c7  
    801801
    802802
    803 def includeme(config):
     803def defaults(config, **kwargs):
     804    base = globals()
    804805
    805806    # TODO: not in love with this pattern, but works for now
    806807    add_routes(config)
     808    OrderingWorksheet = kwargs.get('OrderingWorksheet', base['OrderingWorksheet'])
    807809    config.add_view(OrderingWorksheet, route_name='reports.ordering',
    808810                    renderer='/reports/ordering.mako')
     811    InventoryWorksheet = kwargs.get('InventoryWorksheet', base['InventoryWorksheet'])
    809812    config.add_view(InventoryWorksheet, route_name='reports.inventory',
    810813                    renderer='/reports/inventory.mako')
    811814
     815    ReportOutputView = kwargs.get('ReportOutputView', base['ReportOutputView'])
    812816    ReportOutputView.defaults(config)
     817
     818    ProblemReportView = kwargs.get('ProblemReportView', base['ProblemReportView'])
    813819    ProblemReportView.defaults(config)
     820
     821
     822def includeme(config):
     823    defaults(config)
  • tailbone/views/roles.py

    rdb9b361 rb64f6c7  
    530530
    531531
     532def defaults(config, **kwargs):
     533    base = globals()
     534
     535    RoleView = kwargs.get('RoleView', base['RoleView'])
     536    RoleView.defaults(config)
     537
     538
    532539def includeme(config):
    533     RoleView.defaults(config)
     540    defaults(config)
  • tailbone/views/settings.py

    rdb9b361 rb64f6c7  
    311311
    312312
     313def defaults(config, **kwargs):
     314    base = globals()
     315
     316    AppSettingsView = kwargs.get('AppSettingsView', base['AppSettingsView'])
     317    AppSettingsView.defaults(config)
     318
     319    SettingView = kwargs.get('SettingView', base['SettingView'])
     320    SettingView.defaults(config)
     321
     322
    313323def includeme(config):
    314     AppSettingsView.defaults(config)
    315     SettingView.defaults(config)
     324    defaults(config)
  • tailbone/views/shifts/core.py

    rdb9b361 rb64f6c7  
    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.
     
    208208
    209209
     210def defaults(config, **kwargs):
     211    base = globals()
     212
     213    ScheduledShiftView = kwargs.get('ScheduledShiftView', base['ScheduledShiftView'])
     214    ScheduledShiftView.defaults(config)
     215
     216    WorkedShiftView = kwargs.get('WorkedShiftView', base['WorkedShiftView'])
     217    WorkedShiftView.defaults(config)
     218
     219
    210220def includeme(config):
    211     ScheduledShiftView.defaults(config)
    212     WorkedShiftView.defaults(config)
     221    defaults(config)
  • tailbone/views/shifts/schedule.py

    rdb9b361 rb64f6c7  
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2018 Lance Edgar
     5#  Copyright © 2010-2022 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    213213
    214214
     215def defaults(config, **kwargs):
     216    base = globals()
     217
     218    ScheduleView = kwargs.get('ScheduleView', base['ScheduleView'])
     219    ScheduleView.defaults(config)
     220
     221
    215222def includeme(config):
    216     ScheduleView.defaults(config)
     223    defaults(config)
  • tailbone/views/shifts/timesheet.py

    rdb9b361 rb64f6c7  
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2018 Lance Edgar
     5#  Copyright © 2010-2022 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    134134
    135135
     136def defaults(config, **kwargs):
     137    base = globals()
     138
     139    TimeSheetView = kwargs.get('TimeSheetView', base['TimeSheetView'])
     140    TimeSheetView.defaults(config)
     141
     142
    136143def includeme(config):
    137     TimeSheetView.defaults(config)
     144    defaults(config)
  • tailbone/views/stores.py

    rdb9b361 rb64f6c7  
    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.
     
    122122
    123123
     124def defaults(config, **kwargs):
     125    base = globals()
     126
     127    StoreView = kwargs.get('StoreView', base['StoreView'])
     128    StoreView.defaults(config)
     129
     130
    124131def includeme(config):
    125     StoreView.defaults(config)
     132    defaults(config)
  • tailbone/views/subdepartments.py

    rdb9b361 rb64f6c7  
    155155
    156156
     157def defaults(config, **kwargs):
     158    base = globals()
     159
     160    SubdepartmentView = kwargs.get('SubdepartmentView', base['SubdepartmentView'])
     161    SubdepartmentView.defaults(config)
     162
     163
    157164def includeme(config):
    158     SubdepartmentView.defaults(config)
     165    defaults(config)
  • tailbone/views/tables.py

    rdb9b361 rb64f6c7  
    7777
    7878
     79def defaults(config, **kwargs):
     80    base = globals()
     81
     82    TableView = kwargs.get('TableView', base['TableView'])
     83    TableView.defaults(config)
     84
     85
    7986def includeme(config):
    80     TableView.defaults(config)
     87    defaults(config)
  • tailbone/views/taxes.py

    rdb9b361 rb64f6c7  
    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.
     
    6565
    6666
     67def defaults(config, **kwargs):
     68    base = globals()
     69
     70    TaxView = kwargs.get('TaxView', base['TaxView'])
     71    TaxView.defaults(config)
     72
     73
    6774def includeme(config):
    68     TaxView.defaults(config)
     75    defaults(config)
  • tailbone/views/tempmon/appliances.py

    rdb9b361 rb64f6c7  
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2018 Lance Edgar
     5#  Copyright © 2010-2022 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    188188
    189189
     190def defaults(config, **kwargs):
     191    base = globals()
     192
     193    TempmonApplianceView = kwargs.get('TempmonApplianceView', base['TempmonApplianceView'])
     194    TempmonApplianceView.defaults(config)
     195
     196
    190197def includeme(config):
    191     TempmonApplianceView.defaults(config)
     198    defaults(config)
  • tailbone/views/tempmon/clients.py

    rdb9b361 rb64f6c7  
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2019 Lance Edgar
     5#  Copyright © 2010-2022 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    277277
    278278
     279def defaults(config, **kwargs):
     280    base = globals()
     281
     282    TempmonClientView = kwargs.get('TempmonClientView', base['TempmonClientView'])
     283    TempmonClientView.defaults(config)
     284
     285
    279286def includeme(config):
    280     TempmonClientView.defaults(config)
     287    defaults(config)
  • tailbone/views/tempmon/dashboard.py

    rdb9b361 rb64f6c7  
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2020 Lance Edgar
     5#  Copyright © 2010-2022 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    159159
    160160
     161def defaults(config, **kwargs):
     162    base = globals()
     163
     164    TempmonDashboardView = kwargs.get('TempmonDashboardView', base['TempmonDashboardView'])
     165    TempmonDashboardView.defaults(config)
     166
     167
    161168def includeme(config):
    162     TempmonDashboardView.defaults(config)
     169    defaults(config)
  • tailbone/views/tempmon/probes.py

    rdb9b361 rb64f6c7  
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2019 Lance Edgar
     5#  Copyright © 2010-2022 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    345345
    346346
     347def defaults(config, **kwargs):
     348    base = globals()
     349
     350    TempmonProbeView = kwargs.get('TempmonProbeView', base['TempmonProbeView'])
     351    TempmonProbeView.defaults(config)
     352
     353
    347354def includeme(config):
    348     TempmonProbeView.defaults(config)
     355    defaults(config)
  • tailbone/views/tempmon/readings.py

    rdb9b361 rb64f6c7  
    33#
    44#  Rattail -- Retail Software Framework
    5 #  Copyright © 2010-2018 Lance Edgar
     5#  Copyright © 2010-2022 Lance Edgar
    66#
    77#  This file is part of Rattail.
     
    126126
    127127
     128def defaults(config, **kwargs):
     129    base = globals()
     130
     131    TempmonReadingView = kwargs.get('TempmonReadingView', base['TempmonReadingView'])
     132    TempmonReadingView.defaults(config)
     133
     134
    128135def includeme(config):
    129     TempmonReadingView.defaults(config)
     136    defaults(config)
  • tailbone/views/trainwreck/defaults.py

    rdb9b361 rb64f6c7  
    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.
     
    4040
    4141
     42def defaults(config, **kwargs):
     43    base = globals()
     44
     45    TransactionView = kwargs.get('TransactionView', base['TransactionView'])
     46    TransactionView.defaults(config)
     47
     48
    4249def includeme(config):
    43     TransactionView.defaults(config)
     50    defaults(config)
  • tailbone/views/uoms.py

    rdb9b361 rb64f6c7  
    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.
     
    127127
    128128
     129def defaults(config, **kwargs):
     130    base = globals()
     131
     132    UnitOfMeasureView = kwargs.get('UnitOfMeasureView', base['UnitOfMeasureView'])
     133    UnitOfMeasureView.defaults(config)
     134
     135
    129136def includeme(config):
    130     UnitOfMeasureView.defaults(config)
     137    defaults(config)
Note: See TracChangeset for help on using the changeset viewer.