From 3f47af3b0211bec5c8aa3cb1a8ec27e5d8e54e04 Mon Sep 17 00:00:00 2001 From: teddy Date: Sun, 17 Nov 2024 15:21:46 +0000 Subject: [PATCH] Fix: Removal of controller filter method references from page templates. --- app.log.1 | 78 ++++--- app.log.2 | 213 ++++++------------ app.log.3 | 125 ++++++++-- .../store/__pycache__/product.cpython-312.pyc | Bin 6566 -> 5200 bytes .../product_category.cpython-312.pyc | Bin 6433 -> 5067 bytes .../product_permutation.cpython-312.pyc | Bin 6853 -> 5470 bytes .../__pycache__/stock_item.cpython-312.pyc | Bin 7040 -> 5194 bytes .../__pycache__/supplier.cpython-312.pyc | Bin 7196 -> 5257 bytes .../store/_manufacturing_purchase_orders.html | 2 +- .../pages/store/_product_categories.html | 2 +- .../pages/store/_product_permutations.html | 2 +- .../pages/store/_product_variations.html | 2 +- templates/pages/store/_products.html | 2 +- templates/pages/store/_stock_items.html | 2 +- .../store/_supplier_purchase_orders.html | 2 +- templates/pages/store/_suppliers.html | 2 +- 16 files changed, 222 insertions(+), 210 deletions(-) diff --git a/app.log.1 b/app.log.1 index 38a6b00c..c34196cb 100644 --- a/app.log.1 +++ b/app.log.1 @@ -1,3 +1,45 @@ +User.from_json +json: {'can_admin_store': True, 'can_admin_user': True, 'email': 'edward.middletonsmith@gmail.com', 'firstname': 'Teddy', 'id_currency_default': None, 'id_region_default': None, 'id_user': 1, 'id_user_auth0': 'auth0|6582b95c895d09a70ba10fef', 'is_email_verified': False, 'is_included_VAT_default': True, 'is_super_user': True, 'surname': 'Middleton-Smith'} +user: + id_user: 1 + id_user_auth0: auth0|6582b95c895d09a70ba10fef + firstname: Teddy + surname: Middleton-Smith + email: edward.middletonsmith@gmail.com + is_email_verified: False + is_super_user: True + id_currency_default: None + id_region_default: None + is_included_VAT_default: True + can_admin_store: True + can_admin_user: True + +User.from_json +json: {'can_admin_store': True, 'can_admin_user': True, 'email': 'edward.middletonsmith@gmail.com', 'firstname': 'Teddy', 'id_currency_default': None, 'id_region_default': None, 'id_user': 1, 'id_user_auth0': 'auth0|6582b95c895d09a70ba10fef', 'is_email_verified': False, 'is_included_VAT_default': True, 'is_super_user': True, 'surname': 'Middleton-Smith'} +user: + id_user: 1 + id_user_auth0: auth0|6582b95c895d09a70ba10fef + firstname: Teddy + surname: Middleton-Smith + email: edward.middletonsmith@gmail.com + is_email_verified: False + is_super_user: True + id_currency_default: None + id_region_default: None + is_included_VAT_default: True + can_admin_store: True + can_admin_user: True + +argument_dict: {'a_id_user': 1, 'a_id_user_auth0': 'auth0|6582b95c895d09a70ba10fef', 'get_all_user': False, 'get_inactive_user': False, 'ids_user': 1, 'ids_user_auth0': '', 'a_debug': 0} +executing p_get_many_user +DataStore_Base.db_procedure_execute +proc_string: CALL p_get_many_user(:a_id_user, :a_id_user_auth0, :get_all_user, :get_inactive_user, :ids_user, :ids_user_auth0, :a_debug) +args: {'a_id_user': 1, 'a_id_user_auth0': 'auth0|6582b95c895d09a70ba10fef', 'get_all_user': False, 'get_inactive_user': False, 'ids_user': 1, 'ids_user_auth0': '', 'a_debug': 0} +result: +data received +raw users: ((1, 'auth0|6582b95c895d09a70ba10fef', 'Teddy', 'Middleton-Smith', 'edward.middletonsmith@gmail.com', b'\x00', None, None, b'\x01', b'\x01', b'\x01', b'\x01', b'\x00'),) +raw errors: () +new result set: () model_view_base init end - model.user: id_user: 1 id_user_auth0: auth0|6582b95c895d09a70ba10fef @@ -17,7 +59,7 @@ executing p_shop_get_many_access_level DataStore_Base.db_procedure_execute proc_string: CALL p_shop_get_many_access_level(:active) args: {'active': 1} -result: +result: data received raw access levels: ((1, 'VIEW', 'View', 3, 1, b'\x01'), (2, 'EDIT', 'Edit', 2, 2, b'\x01'), (3, 'ADMIN', 'Admin', 1, 3, b'\x01')) raw errors: () @@ -59,7 +101,7 @@ executing p_get_many_user DataStore_Base.db_procedure_execute proc_string: CALL p_get_many_user(:a_id_user, :a_id_user_auth0, :get_all_user, :get_inactive_user, :ids_user, :ids_user_auth0, :a_debug) args: {'a_id_user': 1, 'a_id_user_auth0': 'auth0|6582b95c895d09a70ba10fef', 'get_all_user': False, 'get_inactive_user': False, 'ids_user': 1, 'ids_user_auth0': '', 'a_debug': 0} -result: +result: data received raw users: ((1, 'auth0|6582b95c895d09a70ba10fef', 'Teddy', 'Middleton-Smith', 'edward.middletonsmith@gmail.com', b'\x00', None, None, b'\x01', b'\x01', b'\x01', b'\x01', b'\x00'),) raw errors: () @@ -69,7 +111,7 @@ executing p_shop_get_many_product DataStore_Base.db_procedure_execute proc_string: CALL p_shop_get_many_product(:a_id_user, :a_get_all_product_category, :a_get_inactive_product_category, :a_ids_product_category, :a_get_all_product, :a_get_inactive_product, :a_ids_product, :a_get_all_permutation, :a_get_inactive_permutation, :a_ids_permutation, :a_get_all_image, :a_get_inactive_image, :a_ids_image, :a_get_products_quantity_stock_below_min, :a_debug) args: {'a_id_user': 1, 'a_get_all_product_category': True, 'a_get_inactive_product_category': True, 'a_ids_product_category': '', 'a_get_all_product': True, 'a_get_inactive_product': False, 'a_ids_product': '', 'a_get_all_permutation': True, 'a_get_inactive_permutation': False, 'a_ids_permutation': '', 'a_get_all_image': False, 'a_get_inactive_image': False, 'a_ids_image': '', 'a_get_products_quantity_stock_below_min': False, 'a_debug': 0} -result: +result: data received initial category_list: categories: [] raw categories: ((1, 'ASS', 'Assistive Devices', 'Braille product line and other assistive devices', 1, 'View', 1, b'\x01', None, None, None), (3, 'TECH', 'Technology', 'Technological devices', 1, 'View', 2, b'\x01', None, None, None), (2, 'MISC', 'Miscellaneous', 'Not category allocated products', 1, 'View', 99, b'\x01', None, None, None)) @@ -134,33 +176,3 @@ category-loaded category_list: categories: [ raw products: () raw errors: () new result set: () -get many category_list: categories: [ - id: 1 - code: ASS - name: Assistive Devices - description: Braille product line and other assistive devices - access_level: View - display_order: 1 - active: True - products: [] - , - id: 3 - code: TECH - name: Technology - description: Technological devices - access_level: View - display_order: 2 - active: True - products: [] - , - id: 2 - code: MISC - name: Miscellaneous - description: Not category allocated products - access_level: View - display_order: 99 - active: True - products: [] - ] -Model_View_Store.__init__ -starting diff --git a/app.log.2 b/app.log.2 index b4780e43..2273e331 100644 --- a/app.log.2 +++ b/app.log.2 @@ -1,146 +1,67 @@ -DataStore_Base.db_procedure_execute -proc_string: CALL p_shop_get_many_product(:a_id_user, :a_get_all_product_category, :a_get_inactive_product_category, :a_ids_product_category, :a_get_all_product, :a_get_inactive_product, :a_ids_product, :a_get_all_permutation, :a_get_inactive_permutation, :a_ids_permutation, :a_get_all_image, :a_get_inactive_image, :a_ids_image, :a_get_products_quantity_stock_below_min, :a_debug) -args: {'a_id_user': 1, 'a_get_all_product_category': True, 'a_get_inactive_product_category': True, 'a_ids_product_category': '', 'a_get_all_product': True, 'a_get_inactive_product': False, 'a_ids_product': '', 'a_get_all_permutation': True, 'a_get_inactive_permutation': False, 'a_ids_permutation': '', 'a_get_all_image': False, 'a_get_inactive_image': False, 'a_ids_image': '', 'a_get_products_quantity_stock_below_min': False, 'a_debug': 0} -result: -data received -initial category_list: categories: [] -raw categories: ((1, 'ASS', 'Assistive Devices', 'Braille product line and other assistive devices', 1, 'View', 1, b'\x01', None, None, None), (3, 'TECH', 'Technology', 'Technological devices', 1, 'View', 2, b'\x01', None, None, None), (2, 'MISC', 'Miscellaneous', 'Not category allocated products', 1, 'View', 99, b'\x01', None, None, None)) -new_category: - id: 1 - code: ASS - name: Assistive Devices - description: Braille product line and other assistive devices - access_level: View - display_order: 1 - active: True - products: [] - -new_category: - id: 3 - code: TECH - name: Technology - description: Technological devices - access_level: View - display_order: 2 - active: True - products: [] - -new_category: - id: 2 - code: MISC - name: Miscellaneous - description: Not category allocated products - access_level: View - display_order: 99 - active: True - products: [] - -category-loaded category_list: categories: [ - id: 1 - code: ASS - name: Assistive Devices - description: Braille product line and other assistive devices - access_level: View - display_order: 1 - active: True - products: [] - , - id: 3 - code: TECH - name: Technology - description: Technological devices - access_level: View - display_order: 2 - active: True - products: [] - , - id: 2 - code: MISC - name: Miscellaneous - description: Not category allocated products - access_level: View - display_order: 99 - active: True - products: [] - ] -raw products: () -raw errors: () -new result set: () -get many category_list: categories: [ - id: 1 - code: ASS - name: Assistive Devices - description: Braille product line and other assistive devices - access_level: View - display_order: 1 - active: True - products: [] - , - id: 3 - code: TECH - name: Technology - description: Technological devices - access_level: View - display_order: 2 - active: True - products: [] - , - id: 2 - code: MISC - name: Miscellaneous - description: Not category allocated products - access_level: View - display_order: 99 - active: True - products: [] - ] -categories -form_filters=Filters_Product_Category(is_not_empty=False, active=True) -Model_View_Store_Product_Category.__init__ -starting... -Model_View_Store.__init__ -starting -session: -DataStore_Base.get_user_session -User.from_json -json: {'can_admin_store': True, 'can_admin_user': True, 'email': 'edward.middletonsmith@gmail.com', 'firstname': 'Teddy', 'id_currency_default': None, 'id_region_default': None, 'id_user': 1, 'id_user_auth0': 'auth0|6582b95c895d09a70ba10fef', 'is_email_verified': False, 'is_included_VAT_default': True, 'is_super_user': True, 'surname': 'Middleton-Smith'} -user: - id_user: 1 - id_user_auth0: auth0|6582b95c895d09a70ba10fef - firstname: Teddy - surname: Middleton-Smith - email: edward.middletonsmith@gmail.com - is_email_verified: False - is_super_user: True - id_currency_default: None - id_region_default: None - is_included_VAT_default: True - can_admin_store: True - can_admin_user: True - -User.from_json -json: {'can_admin_store': True, 'can_admin_user': True, 'email': 'edward.middletonsmith@gmail.com', 'firstname': 'Teddy', 'id_currency_default': None, 'id_region_default': None, 'id_user': 1, 'id_user_auth0': 'auth0|6582b95c895d09a70ba10fef', 'is_email_verified': False, 'is_included_VAT_default': True, 'is_super_user': True, 'surname': 'Middleton-Smith'} -user: - id_user: 1 - id_user_auth0: auth0|6582b95c895d09a70ba10fef - firstname: Teddy - surname: Middleton-Smith - email: edward.middletonsmith@gmail.com - is_email_verified: False - is_super_user: True - id_currency_default: None - id_region_default: None - is_included_VAT_default: True - can_admin_store: True - can_admin_user: True - -argument_dict: {'a_id_user': 1, 'a_id_user_auth0': 'auth0|6582b95c895d09a70ba10fef', 'get_all_user': False, 'get_inactive_user': False, 'ids_user': 1, 'ids_user_auth0': '', 'a_debug': 0} -executing p_get_many_user -DataStore_Base.db_procedure_execute -proc_string: CALL p_get_many_user(:a_id_user, :a_id_user_auth0, :get_all_user, :get_inactive_user, :ids_user, :ids_user_auth0, :a_debug) -args: {'a_id_user': 1, 'a_id_user_auth0': 'auth0|6582b95c895d09a70ba10fef', 'get_all_user': False, 'get_inactive_user': False, 'ids_user': 1, 'ids_user_auth0': '', 'a_debug': 0} -result: -data received -raw users: ((1, 'auth0|6582b95c895d09a70ba10fef', 'Teddy', 'Middleton-Smith', 'edward.middletonsmith@gmail.com', b'\x00', None, None, b'\x01', b'\x01', b'\x01', b'\x01', b'\x00'),) -raw errors: () -new result set: () +Request: 127.0.0.1 GET http /store/categories?is_not_empty=false&active=true Host: 127.0.0.1:5000 +User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0 +Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 +Accept-Language: en-GB,en;q=0.5 +Accept-Encoding: gzip, deflate, br, zstd +Referer: http://127.0.0.1:5000/store/categories +Dnt: 1 +Connection: keep-alive +Cookie: session=.eJytVmnPozgS_iujSDOfOmnOBF6pNZuTIwHCEa4vyGAIN4QjCcz2f1-T9DErzV7SSjjBLlP1lOupcv0x8-qwKUAZlt3so2v68NMM9F1cNUkbwksbNrOPP2YBKD0Ai6T02q5qwu8bfy73r43v1bAAST77mIXwARq4KBII87CryrZIuvhv10m6CKpi9mkWJU3blaBACmdGCOGA1hLoBX3ThGUweDCMQJ8jXGWf5y9RE16TqvwLwRsA_uPdm5zAkN7X_9-XNEP4LB0wLA0xFqwwH-BYFEaTwdZ7IfbuYZNESQhnHxHI2_AlScog72EIPXNt_LT69hOJ2x4d3j853_bNN4ek737P9cnx2Vd0Xm0TeV2VhSWSLwmwIvyIYfBgSWE0pEkGkCHBRgxOUGxA-RjtMzjJIoj9tzCAIAjb9oeG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STjGCUjCsppRklTXEmzWSygWxhYLdhUH5TUiHQsiVRimFm0i6P5XGTOMb-4RZm8eIGkb9wGfYm9w97Kth3umLFimJeMf-St24mPiVcBBpZU9b-uQm5F64e8TJ98-kpXkxZ0PF8dC22lVIzlkn5YBw256nUVZsls8rao9Zxvqs6tkJxOs21mXjD9OJYRcp8A9Soe1YI0U1wpMd46AuOKcyooPLV3BFwtguYJFuldiJz17VA2rWt8rQQ9pCJPYNrYzKVo8IUampMnwpFOySbAZl31Wt5IeRlkB13uIXVipw0j-NpR-wamLKjeYeBMzxU_lzEZ96uRmx5ZjLqcs9gqhvemrt2c20d1cY8peXSj8n7DcA7S7vcKJ75gfRuWH7Q8bN2yVqHYx1OkPRGr8P71mvN645U-8Lbk3ThDmL3EKVBPoxaSmYiH9TSUeTpG8rSrSH53CmmE765rFnveFUGSeNcI6gqXlfLR1jcPD0mc9kW91h0sceIZQ9SBDYPVL_aoKqnmxH9lgn8pW6qKMnDX979wqfZq2B53fDaswlBgy69992XlFH1uv96dDnPrlw6dDdZsraxnjxvyorQ1NHkrTUIRRHl9-x_aUH-xdWPSuq7xjIrgmUIVFC_F12GXL4X2hYZiLuubj8-f4bhfV4-QEZgy2UYLWMmeZaLvl28uo_J1Gdk61tj8J9BlUmQ_bvN05aqDCZ5Lqg6f3TasMoJGqza_emsIHGdBF0_NWo_ELaLawPuoAPNC8779TNNQjIiKApbQZqgVxFDRcQqANiKWVE-XFK_t18oBvut-VJff4NfXrp-Jde_Egf0BLD86R-av1W26C2Ei7q8ThFPpoBJdZirTH3U2FhmbaoQ8mhzIzXEy6d9Wj-ngLW9_9_0an0NQYe6sSkYMwIjqDmOz_GVgbEfFHrwxYog3NnXr1__Ach1prI.ZzoIQw.xndonm9ds59sRFhipIbusmAFFXM +Upgrade-Insecure-Requests: 1 +Sec-Fetch-Dest: document +Sec-Fetch-Mode: navigate +Sec-Fetch-Site: same-origin +Sec-Fetch-User: ?1 +Sec-Gpc: 1 +Priority: u=0, i + + +Request data: b'' +Traceback: Traceback (most recent call last): + File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 880, in full_dispatch_request + rv = self.dispatch_request() + ^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 865, in dispatch_request + return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\controllers\store\product_category.py", line 60, in categories + return render_template('pages/store/_product_categories.html', model = model) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\templating.py", line 150, in render_template + return _render(app, template, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\templating.py", line 131, in _render + rv = template.render(context) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\jinja2\environment.py", line 1304, in render + self.environment.handle_exception() + File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\jinja2\environment.py", line 939, in handle_exception + raise rewrite_traceback_stack(source=source) + File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\templates\pages\store\_product_categories.html", line 1, in top-level template code + {% extends 'layouts/layout.html' %} + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\templates\layouts\layout.html", line 357, in top-level template code + {% block page_body %}{% endblock %} + ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\templates\pages\store\_product_categories.html", line 10, in block 'page_body' +
+ ^^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 1084, in url_for + return self.handle_url_build_error(error, endpoint, values) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 1073, in url_for + rv = url_adapter.build( # type: ignore[union-attr] + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\werkzeug\routing\map.py", line 924, in build + raise BuildError(endpoint, values, method, self) +werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'routes_store_product_category.filter_category'. Did you mean 'routes_store_product_category.save_category' instead? + +config_env: development +categories +form_filters=Filters_Product_Category(is_not_empty=False, active=True) +Model_View_Store_Product_Category.__init__ +starting... +Model_View_Store.__init__ +starting +session: +DataStore_Base.get_user_session diff --git a/app.log.3 b/app.log.3 index 385ca1ba..ea73a5a4 100644 --- a/app.log.3 +++ b/app.log.3 @@ -1,21 +1,3 @@ -session: -DataStore_Base.get_user_session -User.from_json -json: {'can_admin_store': True, 'can_admin_user': True, 'email': 'edward.middletonsmith@gmail.com', 'firstname': 'Teddy', 'id_currency_default': None, 'id_region_default': None, 'id_user': 1, 'id_user_auth0': 'auth0|6582b95c895d09a70ba10fef', 'is_email_verified': False, 'is_included_VAT_default': True, 'is_super_user': True, 'surname': 'Middleton-Smith'} -user: - id_user: 1 - id_user_auth0: auth0|6582b95c895d09a70ba10fef - firstname: Teddy - surname: Middleton-Smith - email: edward.middletonsmith@gmail.com - is_email_verified: False - is_super_user: True - id_currency_default: None - id_region_default: None - is_included_VAT_default: True - can_admin_store: True - can_admin_user: True - User.from_json json: {'can_admin_store': True, 'can_admin_user': True, 'email': 'edward.middletonsmith@gmail.com', 'firstname': 'Teddy', 'id_currency_default': None, 'id_region_default': None, 'id_user': 1, 'id_user_auth0': 'auth0|6582b95c895d09a70ba10fef', 'is_email_verified': False, 'is_included_VAT_default': True, 'is_super_user': True, 'surname': 'Middleton-Smith'} user: @@ -37,7 +19,7 @@ executing p_get_many_user DataStore_Base.db_procedure_execute proc_string: CALL p_get_many_user(:a_id_user, :a_id_user_auth0, :get_all_user, :get_inactive_user, :ids_user, :ids_user_auth0, :a_debug) args: {'a_id_user': 1, 'a_id_user_auth0': 'auth0|6582b95c895d09a70ba10fef', 'get_all_user': False, 'get_inactive_user': False, 'ids_user': 1, 'ids_user_auth0': '', 'a_debug': 0} -result: +result: data received raw users: ((1, 'auth0|6582b95c895d09a70ba10fef', 'Teddy', 'Middleton-Smith', 'edward.middletonsmith@gmail.com', b'\x00', None, None, b'\x01', b'\x01', b'\x01', b'\x01', b'\x00'),) raw errors: () @@ -56,12 +38,12 @@ model_view_base init end - model.user: can_admin_store: True can_admin_user: True -argument_dict: {'active': 0} +argument_dict: {'active': 1} executing p_shop_get_many_access_level DataStore_Base.db_procedure_execute proc_string: CALL p_shop_get_many_access_level(:active) -args: {'active': 0} -result: +args: {'active': 1} +result: data received raw access levels: ((1, 'VIEW', 'View', 3, 1, b'\x01'), (2, 'EDIT', 'Edit', 2, 2, b'\x01'), (3, 'ADMIN', 'Admin', 1, 3, b'\x01')) raw errors: () @@ -103,10 +85,107 @@ executing p_get_many_user DataStore_Base.db_procedure_execute proc_string: CALL p_get_many_user(:a_id_user, :a_id_user_auth0, :get_all_user, :get_inactive_user, :ids_user, :ids_user_auth0, :a_debug) args: {'a_id_user': 1, 'a_id_user_auth0': 'auth0|6582b95c895d09a70ba10fef', 'get_all_user': False, 'get_inactive_user': False, 'ids_user': 1, 'ids_user_auth0': '', 'a_debug': 0} -result: +result: data received raw users: ((1, 'auth0|6582b95c895d09a70ba10fef', 'Teddy', 'Middleton-Smith', 'edward.middletonsmith@gmail.com', b'\x00', None, None, b'\x01', b'\x01', b'\x01', b'\x01', b'\x00'),) raw errors: () new result set: () argument_dict: {'a_id_user': 1, 'a_get_all_product_category': True, 'a_get_inactive_product_category': True, 'a_ids_product_category': '', 'a_get_all_product': True, 'a_get_inactive_product': False, 'a_ids_product': '', 'a_get_all_permutation': True, 'a_get_inactive_permutation': False, 'a_ids_permutation': '', 'a_get_all_image': False, 'a_get_inactive_image': False, 'a_ids_image': '', 'a_get_products_quantity_stock_below_min': False, 'a_debug': 0} executing p_shop_get_many_product +DataStore_Base.db_procedure_execute +proc_string: CALL p_shop_get_many_product(:a_id_user, :a_get_all_product_category, :a_get_inactive_product_category, :a_ids_product_category, :a_get_all_product, :a_get_inactive_product, :a_ids_product, :a_get_all_permutation, :a_get_inactive_permutation, :a_ids_permutation, :a_get_all_image, :a_get_inactive_image, :a_ids_image, :a_get_products_quantity_stock_below_min, :a_debug) +args: {'a_id_user': 1, 'a_get_all_product_category': True, 'a_get_inactive_product_category': True, 'a_ids_product_category': '', 'a_get_all_product': True, 'a_get_inactive_product': False, 'a_ids_product': '', 'a_get_all_permutation': True, 'a_get_inactive_permutation': False, 'a_ids_permutation': '', 'a_get_all_image': False, 'a_get_inactive_image': False, 'a_ids_image': '', 'a_get_products_quantity_stock_below_min': False, 'a_debug': 0} +result: +data received +initial category_list: categories: [] +raw categories: ((1, 'ASS', 'Assistive Devices', 'Braille product line and other assistive devices', 1, 'View', 1, b'\x01', None, None, None), (3, 'TECH', 'Technology', 'Technological devices', 1, 'View', 2, b'\x01', None, None, None), (2, 'MISC', 'Miscellaneous', 'Not category allocated products', 1, 'View', 99, b'\x01', None, None, None)) +new_category: + id: 1 + code: ASS + name: Assistive Devices + description: Braille product line and other assistive devices + access_level: View + display_order: 1 + active: True + products: [] + +new_category: + id: 3 + code: TECH + name: Technology + description: Technological devices + access_level: View + display_order: 2 + active: True + products: [] + +new_category: + id: 2 + code: MISC + name: Miscellaneous + description: Not category allocated products + access_level: View + display_order: 99 + active: True + products: [] + +category-loaded category_list: categories: [ + id: 1 + code: ASS + name: Assistive Devices + description: Braille product line and other assistive devices + access_level: View + display_order: 1 + active: True + products: [] + , + id: 3 + code: TECH + name: Technology + description: Technological devices + access_level: View + display_order: 2 + active: True + products: [] + , + id: 2 + code: MISC + name: Miscellaneous + description: Not category allocated products + access_level: View + display_order: 99 + active: True + products: [] + ] +raw products: () +raw errors: () +new result set: () +get many category_list: categories: [ + id: 1 + code: ASS + name: Assistive Devices + description: Braille product line and other assistive devices + access_level: View + display_order: 1 + active: True + products: [] + , + id: 3 + code: TECH + name: Technology + description: Technological devices + access_level: View + display_order: 2 + active: True + products: [] + , + id: 2 + code: MISC + name: Miscellaneous + description: Not category allocated products + access_level: View + display_order: 99 + active: True + products: [] + ] +Server Error: Could not build url for endpoint 'routes_store_product_category.filter_category'. Did you mean 'routes_store_product_category.save_category' instead? diff --git a/controllers/store/__pycache__/product.cpython-312.pyc b/controllers/store/__pycache__/product.cpython-312.pyc index 982af07b0caf66f7275e2e6711c12b4903096274..da18e2483be15b2bc9a1a63d80bf907bab233f79 100644 GIT binary patch delta 211 zcmZ2xd_jZnG%qg~0}#CAuuA6;n8+u=ST<4p`D6jc2`rWDnj)LuFn(ZVl%IT;{lR87 zK4w-?O~zXSY57ID@oAYkC8C;#O(np`04G}(g3h@ImWOG;u%;^ec!iL9Tk{xd(JpHPeM`^ zB)XE}GssazT0r6#hfQvNN@-52T~QQ}%Lv59J14J^h+%%fC^}h0Qjbw?aa zmHcbHJ`a$!I8YvV=DNYJgHLaiFH>58d3c>XMQ{K=)|yI;0XS=zp;RjXviUNYS*75p zcqZ3fFn1SbSa=fS+@+jb#B~$kCAJvf)YR}ZaMd{pCt!%fKQ#`w{&y}=_$&(d*>hwyy%1m0mK6zE%LJUI*2+^86uzJ}H$^$cmNm$9_Vq=m{QIdNw07NJ ztrg=^oykIloY}H}VyKJ^WW|1+u+y4VHvrT!N&m-jYeSxwnF;zfxI+ck#u}u0fea?; zb9C457=tlzn(hTL=w=U`5@UADAwrJ_&qOOX*NI(A|> zs34Avh;p%muf|vT`T&z=)Cy>mDz8_;O(4n;aFT^K6O!gvJCR0FL>?PdPy-QTs?AEi ziz)DlD@bv!1n0UJOL7%cdoq-fmZwaL3 z7v;vMW#*Km78S?m=cH5#g%+n4DdgpsDCFd)r>CYUWad>(p3kk!C^h*ox7y?zLK0%P zgvt_gGE)*uQseXU;)_d@ax+VcI4864m`vsq_M7a)W5mvWiv=j3IJsOnjMWk761&Zp ugoT+Hbv8c}y~jBDmADe4<78e5DXvhU93v1H@0e^TF?;eK2}PC=AQu40Dm&W% delta 984 zcmZ{jO-vI(6vt=wqqeNOTUxM45gI;PD?+7!S|lhDDhGlQknj~6VB6BBP@OIo2q+p4 z-VDx#gp-LE0x?l89y}1m6NzcTSktH{W4xHu;E6=z46xJ-bNIdgd-LABH?!GI$5Xeo zDT+COtdB#EAa7le3gGh>jv!q4dlL5IT)|wD8-%O!3PW=MP|Od(%Dx2sRnt0W-r5uR zQ^zba_`beZT7mm}b8r@h1^h=SEQonk@t^>xlBU8&yr4Hj3D+1-5neYG=@eRX0zWpC z4yv-2Hw#yp!$X-_CS0KHWNl1Pt(vE>TJ{5YbYCGmM-iQ)KI<22CuJ?^YRh_>3YU@V zIV%b^zZ@X%9D8)n|L=;wG$d!*x>Q7?XOSa=;W2G@a z?s}10duDO<&w+)6?1G~XqYUS9CCP?%0feIR7vtt6-70Hvk>X1b`juvqN5m{qwe1O)KKN7sHLbQz!|Z_it4F*p5g+IHzZeS?c38m7zzmfcH(oTmxPDUc E56;TjkN^Mx diff --git a/controllers/store/__pycache__/product_permutation.cpython-312.pyc b/controllers/store/__pycache__/product_permutation.cpython-312.pyc index d1c7ed14905ceb5bc3f30b5f1b8d9c51ce061cc9..946c74fcbe346cc1ceed52121048c7b386a18441 100644 GIT binary patch delta 193 zcmX?VdQXe*G%qg~0}$Niuu88Mn#d=?*tAi-nUSTELsN9~H^waX%?tRrS@ks;ZwaL3 z7v;vMW#*Km78S?m=cH5#g%+n4DdgpsDCFd)r>CYUWaiys$;&J#u9|GYqdfVbu#wm; zp|ZrB%#_5E)cE|o_~O!}+{}_9p2-tG!^B$d?#=mMk7k43DR7!5be qi_0=iPL)(;beY^ODa9QHlw$!$^H%QKARG8c@WyKN+6afH^W;-wd delta 1019 zcmaKqO-vI(6vt=w18KM2Ew!bjEl{Ww3Z%+MQR&8{KoJt93T+5_SRpOY23j&*M6n=I z51#zUTuitbF9u^`xOg!!3W?E6DstHma&P7OYnVL2 zJY%qdug9{k3qRuZToxt;Tr}7#GySTu)JYXf3h(k3Miudjp&E+#r_NaxgJel1ZqmCQ zQmHBnUomU&C|hE(OtK2Q3|6nBv->EO=C&up37a)vg1qoURn(&TVn4r}sgULM_&$MEBd>t6aQ ztHI{pZt$Tj*g?X_Ze2*nZm@w6$8KDJL~n9D;X0$MEtG(AtzO%b5Ryfn!V5;3s8D+L(XvF7xJu diff --git a/controllers/store/__pycache__/stock_item.cpython-312.pyc b/controllers/store/__pycache__/stock_item.cpython-312.pyc index 18e90aaa649bb3fd18156b418540282c75500c98..5c20d4b5dc1bc85b8cf6d973aa92bce998f4032d 100644 GIT binary patch delta 174 zcmZoLKc&HUnwOW00SMl6Sf#%bnaC%>ShZ2TnvtcFO;cp^JI4ELo8R&OXVKAQyd{*D znNyNlR2*MilAoL%pIMTcTO}M?oLZ!imtUfglb@cRnxc@Ir&l$30*}{ZaZ!uOF1(tP z<3#l)m-8C2bKGJ{Ni0d6yj(P!)e&f)!DewWMKc delta 1493 zcmb7EOHUhD6ux)H;~2*FjIoh<_=QUiZjhbehDWfeEEof+0tlR_q)|r{PpFN-()A=X zttlv~R4TQLXcny$b(dD6p=v7rKuSd_wHr@uX{d$NF1l(rj>w`Vo8D^}XrgqHJJNT) zbMAM}xo2KKb*}YVf3{fa0bcCazWLqO+twzy{awfVutn<3Oq2N2OEPAzDr%iw`3PEV z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{F z-1u7iJ-lk{@dSFr^~E8{^veFyip9H1V6TqkG?J0)$b5W)YgxrA<<)Uo7>fhuQSdwKO#E!q8*F0_j5% U5MwZl!|cmYxT0^6jU$JD0dPHoK>z>% diff --git a/templates/pages/store/_manufacturing_purchase_orders.html b/templates/pages/store/_manufacturing_purchase_orders.html index 53e664a2..8ce1ff9c 100644 --- a/templates/pages/store/_manufacturing_purchase_orders.html +++ b/templates/pages/store/_manufacturing_purchase_orders.html @@ -6,7 +6,7 @@ {% endblock %} {% block page_body %} - + {{ model.form_filters.hidden_tag() }}
diff --git a/templates/pages/store/_product_categories.html b/templates/pages/store/_product_categories.html index 81aa4c17..21e4f587 100644 --- a/templates/pages/store/_product_categories.html +++ b/templates/pages/store/_product_categories.html @@ -7,7 +7,7 @@ --> - + {{ model.form_filters.hidden_tag() }}
diff --git a/templates/pages/store/_product_permutations.html b/templates/pages/store/_product_permutations.html index 6222222d..493154bc 100644 --- a/templates/pages/store/_product_permutations.html +++ b/templates/pages/store/_product_permutations.html @@ -11,7 +11,7 @@ - + {{ model.form_filters.hidden_tag() }}
diff --git a/templates/pages/store/_product_variations.html b/templates/pages/store/_product_variations.html index 8f725446..fffde180 100644 --- a/templates/pages/store/_product_variations.html +++ b/templates/pages/store/_product_variations.html @@ -3,7 +3,7 @@ {% block page_body %} - + {{ model.form_filters.hidden_tag() }}
diff --git a/templates/pages/store/_products.html b/templates/pages/store/_products.html index 3f68bbb4..a3f78e34 100644 --- a/templates/pages/store/_products.html +++ b/templates/pages/store/_products.html @@ -7,7 +7,7 @@ --> - + {{ model.form_filters.hidden_tag() }}
diff --git a/templates/pages/store/_stock_items.html b/templates/pages/store/_stock_items.html index d1051322..48587081 100644 --- a/templates/pages/store/_stock_items.html +++ b/templates/pages/store/_stock_items.html @@ -9,7 +9,7 @@ - + {{ model.form_filters.hidden_tag() }}
diff --git a/templates/pages/store/_supplier_purchase_orders.html b/templates/pages/store/_supplier_purchase_orders.html index 962279f4..491117e3 100644 --- a/templates/pages/store/_supplier_purchase_orders.html +++ b/templates/pages/store/_supplier_purchase_orders.html @@ -3,7 +3,7 @@ {% block page_body %} - + {{ model.form_filters.hidden_tag() }}
diff --git a/templates/pages/store/_suppliers.html b/templates/pages/store/_suppliers.html index 16fd0ffd..c38a7db3 100644 --- a/templates/pages/store/_suppliers.html +++ b/templates/pages/store/_suppliers.html @@ -3,7 +3,7 @@ {% block page_body %} - + {{ model.form_filters.hidden_tag() }}