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-RjtMzjJIoj9tzCAIAjb9oeGcBBjnwsSJREzYAvJaSvmfiFN842UXggNk2UheSTAlkchrRLAa1jAS8vTwGau7XR-CWMwCg85dXM3dSuFyyk_ofFgoGNoa5W0pVOfwO5CiS0WF3q47oLoVoUVZ5yu68VWrzfK0x4e3SMtOM5UeTYmpF3g9KEYbyo_jxVM2jhShhMYKIcimxdJNejXjBM3iaBxluStztR8LUXzlf_MFbyQ1A3HUHMIPHtMhitvGnznwoSOd1hXr6oWLDU5vdQ8R23XpUveMD719kCXzsZIzu3YajU6GW_K-rRrN_WSzfLEHlOf32T3chS58zVU3eCMzw-ZnRuqk22L-ZqtlBFubwJb-BxQzfH-3FmRE-qlRW_W3T6L7e3ghdJeKY8ONrBF7rTzrBLiwxwahLX2Au_INKFyw-VUcDepeFqLDPNsVmsT0mm7l9pzMwd7wVo9-OCihOAByGNUxqwcyZIL-GqTHtb35ZUCZ3Jg_cyX6uOCnEtBUxxXgnFNa_mci2F0klVEg_BZJ03YegBREF-ROEuQJIP_XE8QKRjEJeyVBX_BEv0yCricCK1QanSwFZZCVtvmFs2LrnaneWneQ9u9aBlF-al4d_krbmaHk3SIcW0Q2QVS1gNLbvzi0Lk6-qAwM0gcBndLd8DSMp8zMZ-gR9_KMfBSTMe-dZmM5y4P46BQeyTLXO6ZQ47tAwKvIRevXQKPgfXoHYLtJsoGXJ5C3hzeNmIM8ptRSZg7omYZFAfCsbU4SN70dGw3htxhOI2X0d3JhZSqmLSDmWwgZwmHkjlnkAk5Rtyk5FFL3J2DnUmJlXfXh1gKbMAFhbvDK8hrj2C4jKp-GbQEjULOUDr8ORVyKUO2igPm2OIoGiLnWmofcHQ5YYb2JkO4cvfAxnA6zFR4ICydZOzRgBdply3l19j3KCEHawpEYXaOlbdTerqWRiK92anAa5fTWtfW7n4pdwDZVzn42ncq5Luv__zOJt08KPICWGYmpHXhWM_R1f8PKY_8cexJJ8KFwVtoa08jw22ViA1gx09jRCeVH5YmyhDVOuR6Vi8vRTaVoNqx1URJ96Q07ilpdGhl98JLTYSTjGCUjCsppRklTXEmzWSygWxhYLdhUH5TUiHQsiVRimFm0i6P5XGTOMb-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 982af07b..da18e248 100644 Binary files a/controllers/store/__pycache__/product.cpython-312.pyc and b/controllers/store/__pycache__/product.cpython-312.pyc differ diff --git a/controllers/store/__pycache__/product_category.cpython-312.pyc b/controllers/store/__pycache__/product_category.cpython-312.pyc index f1473424..afd4c792 100644 Binary files a/controllers/store/__pycache__/product_category.cpython-312.pyc and b/controllers/store/__pycache__/product_category.cpython-312.pyc differ diff --git a/controllers/store/__pycache__/product_permutation.cpython-312.pyc b/controllers/store/__pycache__/product_permutation.cpython-312.pyc index d1c7ed14..946c74fc 100644 Binary files a/controllers/store/__pycache__/product_permutation.cpython-312.pyc and b/controllers/store/__pycache__/product_permutation.cpython-312.pyc differ diff --git a/controllers/store/__pycache__/stock_item.cpython-312.pyc b/controllers/store/__pycache__/stock_item.cpython-312.pyc index 18e90aaa..5c20d4b5 100644 Binary files a/controllers/store/__pycache__/stock_item.cpython-312.pyc and b/controllers/store/__pycache__/stock_item.cpython-312.pyc differ diff --git a/controllers/store/__pycache__/supplier.cpython-312.pyc b/controllers/store/__pycache__/supplier.cpython-312.pyc index 1174909b..26a0326b 100644 Binary files a/controllers/store/__pycache__/supplier.cpython-312.pyc and b/controllers/store/__pycache__/supplier.cpython-312.pyc differ 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() }}