47 lines
3.5 KiB
Plaintext
47 lines
3.5 KiB
Plaintext
Traceback: Traceback (most recent call last):
|
|
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 1473, in wsgi_app
|
|
response = self.full_dispatch_request()
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask\app.py", line 882, in full_dispatch_request
|
|
rv = self.handle_user_exception(e)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask_cors\extension.py", line 178, in wrapped_function
|
|
return cors_after_request(app.make_response(f(*args, **kwargs)))
|
|
^^^^^^^^^^^^^^^^^^
|
|
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.py", line 114, in products
|
|
return render_template('pages/store/_products.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\_products.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 316, 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\_products.html", line 89, in block 'page_body'
|
|
{% include 'components/store/_row_product.html' %}
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\OneDrive\Documents\Programming\Visual Studio 2022\PARTS_Web\app\templates\components\store\_row_product.html", line 38, in top-level template code
|
|
<td class="{{ model.FLAG_PRODUCT_CATEGORY }}" {{ model.ATTR_VALUE_CURRENT }}="{{ permutation.id_category }}" {{ model.ATTR_VALUE_PREVIOUS }}="{{ permutation.id_category }}">
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\edwar\AppData\Local\Programs\Python\Python312\Lib\site-packages\jinja2\environment.py", line 487, in getattr
|
|
return getattr(obj, attribute)
|
|
^^^^^^^^^^^^^^^^^^^^^^^
|
|
jinja2.exceptions.UndefinedError: 'permutation' is undefined
|
|
|