You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quand je tente d'accéder à des vieilles commandes, pour lesquelles les groupes ont été supprimés, alors il y a une erreur.
Je pense qu'il faudrait changer la manière dont les choses fonctionnent : actuellement les groupes sont globaux, alors qu'il faudrait surement que ceux-cis soient compris dans une distribution.
Voici l'erreur :
./venv/bin/copanier serve --reload
Starting monitor for PID 13116.
Rolling on http://127.0.0.1:2244
Traceback (most recent call last):
File "/home/alexis/dev/copanier/venv/lib/python3.10/site-packages/roll/__init__.py", line 78, in __call__
await handler(request, response, **request.route.vars)
File "/home/alexis/dev/copanier/copanier/views/delivery.py", line 215, in show_delivery
response.html("delivery/show_delivery.html", {"delivery": delivery})
File "/home/alexis/dev/copanier/copanier/views/core.py", line 34, in html
self.body = self.render_template(template_name, *args, **kwargs)
File "/home/alexis/dev/copanier/copanier/views/core.py", line 30, in render_template
return env.get_template(template_name).render(*args, **context)
File "/home/alexis/dev/copanier/venv/lib/python3.10/site-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/home/alexis/dev/copanier/venv/lib/python3.10/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/home/alexis/dev/copanier/venv/lib/python3.10/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "/home/alexis/dev/copanier/copanier/templates/delivery/show_delivery.html", line -1, in top-level template code
File "/home/alexis/dev/copanier/copanier/templates/base.html", line 4, in top-level template code
<!DOCTYPE html>
File "/home/alexis/dev/copanier/copanier/templates/delivery/show_delivery.html", line 9, in block "body"
{% if request['user'].email == delivery.contact and delivery.status > delivery.EMPTY %}
File "/home/alexis/dev/copanier/copanier/templates/includes/delivery_table.html", line -31, in top-level template code
File "/home/alexis/dev/copanier/venv/lib/python3.10/site-packages/jinja2/environment.py", line 471, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'la-jacquerie'
Traceback (most recent call last):
File "/home/alexis/dev/copanier/venv/lib/python3.10/site-packages/roll/__init__.py", line 78, in __call__
await handler(request, response, **request.route.vars)
File "/home/alexis/dev/copanier/copanier/views/delivery.py", line 215, in show_delivery
response.html("delivery/show_delivery.html", {"delivery": delivery})
File "/home/alexis/dev/copanier/copanier/views/core.py", line 34, in html
self.body = self.render_template(template_name, *args, **kwargs)
File "/home/alexis/dev/copanier/copanier/views/core.py", line 30, in render_template
return env.get_template(template_name).render(*args, **context)
File "/home/alexis/dev/copanier/venv/lib/python3.10/site-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/home/alexis/dev/copanier/venv/lib/python3.10/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/home/alexis/dev/copanier/venv/lib/python3.10/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "/home/alexis/dev/copanier/copanier/templates/delivery/show_delivery.html", line -1, in top-level template code
File "/home/alexis/dev/copanier/copanier/templates/base.html", line 4, in top-level template code
<!DOCTYPE html>
File "/home/alexis/dev/copanier/copanier/templates/delivery/show_delivery.html", line 6, in block "body"
<li class="pure-menu-item"><a href="{{ url_for('list_products', id=delivery.id) }}/produits.pdf" class="pure-menu-link"><i class="icon-ribbon"></i> Bons de commande</a></li>
File "/home/alexis/dev/copanier/copanier/templates/includes/delivery_table.html", line -30, in top-level template code
File "/home/alexis/dev/copanier/venv/lib/python3.10/site-packages/jinja2/environment.py", line 471, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'chez-francine'
The text was updated successfully, but these errors were encountered:
Quand je tente d'accéder à des vieilles commandes, pour lesquelles les groupes ont été supprimés, alors il y a une erreur.
Je pense qu'il faudrait changer la manière dont les choses fonctionnent : actuellement les groupes sont globaux, alors qu'il faudrait surement que ceux-cis soient compris dans une distribution.
Voici l'erreur :
The text was updated successfully, but these errors were encountered: