Changeset b64f6c7 in tailbone
- Timestamp:
- 11/23/2022 12:20:58 PM (2 months ago)
- Branches:
- master
- Children:
- 604420c
- Parents:
- db9b361
- Location:
- tailbone/views
- Files:
-
- 44 edited
Legend:
- Unmodified
- Added
- Removed
-
tailbone/views/auth.py
rdb9b361 rb64f6c7 240 240 241 241 242 def defaults(config, **kwargs): 243 base = globals() 244 245 AuthenticationView = kwargs.get('AuthenticationView', base['AuthenticationView']) 246 AuthenticationView.defaults(config) 247 248 242 249 def includeme(config): 243 AuthenticationView.defaults(config)250 defaults(config) -
tailbone/views/bouncer.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 1Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 211 211 212 212 213 def defaults(config, **kwargs): 214 base = globals() 215 216 EmailBounceView = kwargs.get('EmailBounceView', base['EmailBounceView']) 217 EmailBounceView.defaults(config) 218 219 213 220 def includeme(config): 214 EmailBounceView.defaults(config)221 defaults(config) -
tailbone/views/categories.py
rdb9b361 rb64f6c7 111 111 112 112 113 def defaults(config, **kwargs): 114 base = globals() 115 116 CategoryView = kwargs.get('CategoryView', base['CategoryView']) 117 CategoryView.defaults(config) 118 119 113 120 def includeme(config): 114 CategoryView.defaults(config)121 defaults(config) -
tailbone/views/common.py
rdb9b361 rb64f6c7 341 341 342 342 343 def defaults(config, **kwargs): 344 base = globals() 345 346 CommonView = kwargs.get('CommonView', base['CommonView']) 347 CommonView.defaults(config) 348 349 343 350 def includeme(config): 344 CommonView.defaults(config)351 defaults(config) -
tailbone/views/customergroups.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 1Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 81 81 82 82 83 def defaults(config, **kwargs): 84 base = globals() 85 86 CustomerGroupView = kwargs.get('CustomerGroupView', base['CustomerGroupView']) 87 CustomerGroupView.defaults(config) 88 89 83 90 def includeme(config): 84 CustomerGroupView.defaults(config)91 defaults(config) -
tailbone/views/custorders/creating.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 0Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 46 46 47 47 48 def defaults(config, **kwargs): 49 base = globals() 50 51 CreateCustomerOrderBatchView = kwargs.get('CreateCustomerOrderBatchView', base['CreateCustomerOrderBatchView']) 52 CreateCustomerOrderBatchView.defaults(config) 53 54 48 55 def includeme(config): 49 CreateCustomerOrderBatchView.defaults(config)56 defaults(config) -
tailbone/views/custorders/items.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 1Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 567 567 568 568 569 def defaults(config, **kwargs): 570 base = globals() 571 572 CustomerOrderItemView = kwargs.get('CustomerOrderItemView', base['CustomerOrderItemView']) 573 CustomerOrderItemView.defaults(config) 574 575 569 576 def includeme(config): 570 CustomerOrderItemView.defaults(config)577 defaults(config) -
tailbone/views/departments.py
rdb9b361 rb64f6c7 242 242 243 243 244 def defaults(config, **kwargs): 245 base = globals() 246 247 DepartmentView = kwargs.get('DepartmentView', base['DepartmentView']) 248 DepartmentView.defaults(config) 249 250 244 251 def includeme(config): 245 DepartmentView.defaults(config)252 defaults(config) -
tailbone/views/depositlinks.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 1Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 65 65 66 66 67 def defaults(config, **kwargs): 68 base = globals() 69 70 DepositLinkView = kwargs.get('DepositLinkView', base['DepositLinkView']) 71 DepositLinkView.defaults(config) 72 73 67 74 def includeme(config): 68 DepositLinkView.defaults(config)75 defaults(config) -
tailbone/views/families.py
rdb9b361 rb64f6c7 109 109 110 110 111 def defaults(config, **kwargs): 112 base = globals() 113 114 FamilyView = kwargs.get('FamilyView', base['FamilyView']) 115 FamilyView.defaults(config) 116 117 111 118 def includeme(config): 112 FamilyView.defaults(config)119 defaults(config) -
tailbone/views/features.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 1Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 113 113 114 114 115 def defaults(config, **kwargs): 116 base = globals() 117 118 GenerateFeatureView = kwargs.get('GenerateFeatureView', base['GenerateFeatureView']) 119 GenerateFeatureView.defaults(config) 120 121 115 122 def includeme(config): 116 GenerateFeatureView.defaults(config)123 defaults(config) -
tailbone/views/filemon.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-20 18Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 64 64 65 65 66 def defaults(config, **kwargs): 67 base = globals() 68 69 FilemonView = kwargs.get('FilemonView', base['FilemonView']) 70 FilemonView.defaults(config) 71 72 66 73 def includeme(config): 67 FilemonView.defaults(config)74 defaults(config) -
tailbone/views/ifps.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 0Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 91 91 92 92 93 def defaults(config, **kwargs): 94 base = globals() 95 96 IFPS_PLUView = kwargs.get('IFPS_PLUView', base['IFPS_PLUView']) 97 IFPS_PLUView.defaults(config) 98 99 93 100 def includeme(config): 94 IFPS_PLUView.defaults(config)101 defaults(config) -
tailbone/views/importing.py
rdb9b361 rb64f6c7 651 651 652 652 653 def defaults(config, **kwargs): 654 base = globals() 655 656 ImportingView = kwargs.get('ImportingView', base['ImportingView']) 657 ImportingView.defaults(config) 658 659 653 660 def includeme(config): 654 ImportingView.defaults(config)661 defaults(config) -
tailbone/views/inventory.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 1Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 71 71 72 72 73 def defaults(config, **kwargs): 74 base = globals() 75 76 InventoryAdjustmentReasonView = kwargs.get('InventoryAdjustmentReasonView', base['InventoryAdjustmentReasonView']) 77 InventoryAdjustmentReasonView.defaults(config) 78 79 73 80 def includeme(config): 74 InventoryAdjustmentReasonView.defaults(config)81 defaults(config) -
tailbone/views/labels/profiles.py
rdb9b361 rb64f6c7 178 178 179 179 180 def defaults(config, **kwargs): 181 base = globals() 182 183 LabelProfileView = kwargs.get('LabelProfileView', base['LabelProfileView']) 184 LabelProfileView.defaults(config) 185 186 180 187 def includeme(config): 181 LabelProfileView.defaults(config)188 defaults(config) -
tailbone/views/members.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 0Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 190 190 191 191 192 def defaults(config, **kwargs): 193 base = globals() 194 195 MemberView = kwargs.get('MemberView', base['MemberView']) 196 MemberView.defaults(config) 197 198 192 199 def includeme(config): 193 MemberView.defaults(config)200 defaults(config) -
tailbone/views/messages.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 1Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 576 576 577 577 578 def 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 578 609 def 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 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 1Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 55 55 56 56 57 def defaults(config, **kwargs): 58 base = globals() 59 60 PermissionView = kwargs.get('PermissionView', base['PermissionView']) 61 PermissionView.defaults(config) 62 63 57 64 def includeme(config): 58 PermissionView.defaults(config)65 defaults(config) -
tailbone/views/progress.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 0Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 66 66 67 67 68 def includeme(config): 68 def defaults(config, **kwargs): 69 base = globals() 70 71 progress = kwargs.get('progress', base['progress']) 69 72 config.add_route('progress', '/progress/{key}') 70 73 config.add_view(progress, route_name='progress', renderer='json') 71 74 75 cancel = kwargs.get('cancel', base['cancel']) 72 76 config.add_route('progress.cancel', '/progress/{key}/cancel') 73 77 config.add_view(cancel, route_name='progress.cancel', renderer='json') 78 79 80 def includeme(config): 81 defaults(config) -
tailbone/views/projects.py
rdb9b361 rb64f6c7 224 224 225 225 226 def defaults(config, **kwargs): 227 base = globals() 228 229 GenerateProjectView = kwargs.get('GenerateProjectView', base['GenerateProjectView']) 230 GenerateProjectView.defaults(config) 231 232 226 233 def includeme(config): 227 GenerateProjectView.defaults(config)234 defaults(config) -
tailbone/views/purchases/core.py
rdb9b361 rb64f6c7 409 409 410 410 411 def defaults(config, **kwargs): 412 base = globals() 413 414 PurchaseView = kwargs.get('PurchaseView', base['PurchaseView']) 415 PurchaseView.defaults(config) 416 417 411 418 def includeme(config): 412 PurchaseView.defaults(config)419 defaults(config) -
tailbone/views/purchases/credits.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 1Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 202 202 203 203 204 def defaults(config, **kwargs): 205 base = globals() 206 207 PurchaseCreditView = kwargs.get('PurchaseCreditView', base['PurchaseCreditView']) 208 PurchaseCreditView.defaults(config) 209 210 204 211 def includeme(config): 205 PurchaseCreditView.defaults(config)212 defaults(config) -
tailbone/views/purchasing/costing.py
rdb9b361 rb64f6c7 378 378 379 379 380 def defaults(config, **kwargs): 381 base = globals() 382 383 CostingBatchView = kwargs.get('CostingBatchView', base['CostingBatchView']) 384 CostingBatchView.defaults(config) 385 386 380 387 def includeme(config): 381 CostingBatchView.defaults(config)388 defaults(config) -
tailbone/views/purchasing/ordering.py
rdb9b361 rb64f6c7 528 528 529 529 530 def defaults(config, **kwargs): 531 base = globals() 532 533 OrderingBatchView = kwargs.get('OrderingBatchView', base['OrderingBatchView']) 534 OrderingBatchView.defaults(config) 535 536 530 537 def includeme(config): 531 OrderingBatchView.defaults(config)538 defaults(config) -
tailbone/views/purchasing/receiving.py
rdb9b361 rb64f6c7 2083 2083 2084 2084 2085 def defaults(config, **kwargs): 2086 base = globals() 2087 2088 ReceivingBatchView = kwargs.get('ReceivingBatchView', base['ReceivingBatchView']) 2089 ReceivingBatchView.defaults(config) 2090 2091 2085 2092 def includeme(config): 2086 ReceivingBatchView.defaults(config)2093 defaults(config) -
tailbone/views/reportcodes.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 1Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 108 108 109 109 110 def defaults(config, **kwargs): 111 base = globals() 112 113 ReportCodeView = kwargs.get('ReportCodeView', base['ReportCodeView']) 114 ReportCodeView.defaults(config) 115 116 110 117 def includeme(config): 111 ReportCodeView.defaults(config)118 defaults(config) -
tailbone/views/reports.py
rdb9b361 rb64f6c7 801 801 802 802 803 def includeme(config): 803 def defaults(config, **kwargs): 804 base = globals() 804 805 805 806 # TODO: not in love with this pattern, but works for now 806 807 add_routes(config) 808 OrderingWorksheet = kwargs.get('OrderingWorksheet', base['OrderingWorksheet']) 807 809 config.add_view(OrderingWorksheet, route_name='reports.ordering', 808 810 renderer='/reports/ordering.mako') 811 InventoryWorksheet = kwargs.get('InventoryWorksheet', base['InventoryWorksheet']) 809 812 config.add_view(InventoryWorksheet, route_name='reports.inventory', 810 813 renderer='/reports/inventory.mako') 811 814 815 ReportOutputView = kwargs.get('ReportOutputView', base['ReportOutputView']) 812 816 ReportOutputView.defaults(config) 817 818 ProblemReportView = kwargs.get('ProblemReportView', base['ProblemReportView']) 813 819 ProblemReportView.defaults(config) 820 821 822 def includeme(config): 823 defaults(config) -
tailbone/views/roles.py
rdb9b361 rb64f6c7 530 530 531 531 532 def defaults(config, **kwargs): 533 base = globals() 534 535 RoleView = kwargs.get('RoleView', base['RoleView']) 536 RoleView.defaults(config) 537 538 532 539 def includeme(config): 533 RoleView.defaults(config)540 defaults(config) -
tailbone/views/settings.py
rdb9b361 rb64f6c7 311 311 312 312 313 def 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 313 323 def includeme(config): 314 AppSettingsView.defaults(config) 315 SettingView.defaults(config) 324 defaults(config) -
tailbone/views/shifts/core.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 1Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 208 208 209 209 210 def 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 210 220 def includeme(config): 211 ScheduledShiftView.defaults(config) 212 WorkedShiftView.defaults(config) 221 defaults(config) -
tailbone/views/shifts/schedule.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-20 18Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 213 213 214 214 215 def defaults(config, **kwargs): 216 base = globals() 217 218 ScheduleView = kwargs.get('ScheduleView', base['ScheduleView']) 219 ScheduleView.defaults(config) 220 221 215 222 def includeme(config): 216 ScheduleView.defaults(config)223 defaults(config) -
tailbone/views/shifts/timesheet.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-20 18Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 134 134 135 135 136 def defaults(config, **kwargs): 137 base = globals() 138 139 TimeSheetView = kwargs.get('TimeSheetView', base['TimeSheetView']) 140 TimeSheetView.defaults(config) 141 142 136 143 def includeme(config): 137 TimeSheetView.defaults(config)144 defaults(config) -
tailbone/views/stores.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 1Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 122 122 123 123 124 def defaults(config, **kwargs): 125 base = globals() 126 127 StoreView = kwargs.get('StoreView', base['StoreView']) 128 StoreView.defaults(config) 129 130 124 131 def includeme(config): 125 StoreView.defaults(config)132 defaults(config) -
tailbone/views/subdepartments.py
rdb9b361 rb64f6c7 155 155 156 156 157 def defaults(config, **kwargs): 158 base = globals() 159 160 SubdepartmentView = kwargs.get('SubdepartmentView', base['SubdepartmentView']) 161 SubdepartmentView.defaults(config) 162 163 157 164 def includeme(config): 158 SubdepartmentView.defaults(config)165 defaults(config) -
tailbone/views/tables.py
rdb9b361 rb64f6c7 77 77 78 78 79 def defaults(config, **kwargs): 80 base = globals() 81 82 TableView = kwargs.get('TableView', base['TableView']) 83 TableView.defaults(config) 84 85 79 86 def includeme(config): 80 TableView.defaults(config)87 defaults(config) -
tailbone/views/taxes.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 1Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 65 65 66 66 67 def defaults(config, **kwargs): 68 base = globals() 69 70 TaxView = kwargs.get('TaxView', base['TaxView']) 71 TaxView.defaults(config) 72 73 67 74 def includeme(config): 68 TaxView.defaults(config)75 defaults(config) -
tailbone/views/tempmon/appliances.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-20 18Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 188 188 189 189 190 def defaults(config, **kwargs): 191 base = globals() 192 193 TempmonApplianceView = kwargs.get('TempmonApplianceView', base['TempmonApplianceView']) 194 TempmonApplianceView.defaults(config) 195 196 190 197 def includeme(config): 191 TempmonApplianceView.defaults(config)198 defaults(config) -
tailbone/views/tempmon/clients.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-20 19Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 277 277 278 278 279 def defaults(config, **kwargs): 280 base = globals() 281 282 TempmonClientView = kwargs.get('TempmonClientView', base['TempmonClientView']) 283 TempmonClientView.defaults(config) 284 285 279 286 def includeme(config): 280 TempmonClientView.defaults(config)287 defaults(config) -
tailbone/views/tempmon/dashboard.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 0Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 159 159 160 160 161 def defaults(config, **kwargs): 162 base = globals() 163 164 TempmonDashboardView = kwargs.get('TempmonDashboardView', base['TempmonDashboardView']) 165 TempmonDashboardView.defaults(config) 166 167 161 168 def includeme(config): 162 TempmonDashboardView.defaults(config)169 defaults(config) -
tailbone/views/tempmon/probes.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-20 19Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 345 345 346 346 347 def defaults(config, **kwargs): 348 base = globals() 349 350 TempmonProbeView = kwargs.get('TempmonProbeView', base['TempmonProbeView']) 351 TempmonProbeView.defaults(config) 352 353 347 354 def includeme(config): 348 TempmonProbeView.defaults(config)355 defaults(config) -
tailbone/views/tempmon/readings.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-20 18Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 126 126 127 127 128 def defaults(config, **kwargs): 129 base = globals() 130 131 TempmonReadingView = kwargs.get('TempmonReadingView', base['TempmonReadingView']) 132 TempmonReadingView.defaults(config) 133 134 128 135 def includeme(config): 129 TempmonReadingView.defaults(config)136 defaults(config) -
tailbone/views/trainwreck/defaults.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 1Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 40 40 41 41 42 def defaults(config, **kwargs): 43 base = globals() 44 45 TransactionView = kwargs.get('TransactionView', base['TransactionView']) 46 TransactionView.defaults(config) 47 48 42 49 def includeme(config): 43 TransactionView.defaults(config)50 defaults(config) -
tailbone/views/uoms.py
rdb9b361 rb64f6c7 3 3 # 4 4 # Rattail -- Retail Software Framework 5 # Copyright © 2010-202 1Lance Edgar5 # Copyright © 2010-2022 Lance Edgar 6 6 # 7 7 # This file is part of Rattail. … … 127 127 128 128 129 def defaults(config, **kwargs): 130 base = globals() 131 132 UnitOfMeasureView = kwargs.get('UnitOfMeasureView', base['UnitOfMeasureView']) 133 UnitOfMeasureView.defaults(config) 134 135 129 136 def includeme(config): 130 UnitOfMeasureView.defaults(config)137 defaults(config)
Note: See TracChangeset
for help on using the changeset viewer.