2022-05-17 15:04:39,776 INFO Serving on http://127.0.0.1:8080 ([waitress.log_info:485])
2022-05-17 15:04:41,277 DEBUG new transaction ([txn.123145563811840.__init__:110])
2022-05-17 15:04:41,320 INFO # Retrieving avatar # ([endi.utils.avatar.get_avatar:25])
2022-05-17 15:04:41,320 INFO + Login : admin1 ([endi.utils.avatar.get_avatar:27])
2022-05-17 15:04:41,320 INFO + Returning the user ([endi.utils.avatar.get_avatar:30])
2022-05-17 15:04:41,351 DEBUG -> End of the avatar collection ([endi.utils.avatar.get_avatar:48])
2022-05-17 15:04:41,352 DEBUG + Building principals ([endi.get_groups:281])
2022-05-17 15:04:41,352 DEBUG -> Principals Built : caching ([endi.get_groups:291])
2022-05-17 15:04:41,353 INFO #################### NEW REQUEST COMING ################# ([endi.subscribers.new_request.log_request:21])
2022-05-17 15:04:41,353 INFO + The request object ([endi.subscribers.new_request.log_request:22])
2022-05-17 15:04:41,353 INFO GET /companies/179769/dashboard HTTP/1.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,fr-FR;q=0.8,ja;q=0.5,en-AU;q=0.3
Connection: keep-alive
Cookie: items_per_page=50; endi__menu_mini=false; beaker.session.id=3e21c87d7e3b053bb68f2f410594a30d98d13f4122021ec3c2264021ae170c57d0b109a3
Host: 127.0.0.1:8080
Referer: http://127.0.0.1:8080/businesses/129856/overview
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:101.0) Gecko/20100101 Firefox/101.0
# Paramètres GET de la requête #
# Paramètres POST de la requête #
([endi.subscribers.new_request.log_request:34])
2022-05-17 15:04:41,353 INFO + The session object ([endi.subscribers.new_request.log_request:35])
2022-05-17 15:04:41,354 INFO {'_domain': None, '_path': '/', '_creation_time': 1652792556.018076, '_accessed_time': 1652792681.3201542, 'auth.userid': 'admin1', '_csrft_': '370ed1422b5377d749b95b3ec432304f868ceb0d'} ([endi.subscribers.new_request.log_request:36])
2022-05-17 15:04:41,354 INFO ################### END REQUEST METADATA LOG ############# ([endi.subscribers.new_request.log_request:37])
2022-05-17 15:04:41,355 DEBUG Retrieving the context of type : companies ([endi.utils.security.__getitem__:663])
2022-05-17 15:04:41,355 DEBUG With ID : 179769 ([endi.utils.security.__getitem__:664])
2022-05-17 15:04:41,365 DEBUG ([endi.utils.security._get_item:687])
2022-05-17 15:04:41,561 DEBUG -> Navigation panel ([endi.panels.navigation.navigation_panel:14])
2022-05-17 15:04:41,611 DEBUG cooking '/endi/templates/panels/navigation.pt' (702 bytes)... ([chameleon.template.cook_check:321])
2022-05-17 15:04:41,612 DEBUG cache miss: navigation_cc836a5c2e12df1af7315ddc9d5fb30c.py ([chameleon.loader.get:147])
2022-05-17 15:04:41,657 DEBUG cache miss: navigation_cc836a5c2e12df1af7315ddc9d5fb30c.py ([chameleon.loader.get:147])
2022-05-17 15:04:41,657 DEBUG writing source to disk (21642 bytes). ([chameleon.loader.build:159])
2022-05-17 15:04:41,658 DEBUG compiling navigation_cc836a5c2e12df1af7315ddc9d5fb30c.py into byte-code... ([chameleon.loader.build:176])
2022-05-17 15:04:41,776 DEBUG abort ([txn.123145563811840.abort:525])
2022-05-17 15:04:41,776 ERROR Exception while serving /companies/179769/dashboard ([waitress.service:404])
Traceback (most recent call last):
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/tweens.py", line 13, in _error_handler
response = request.invoke_exception_view(exc_info)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/view.py", line 786, in invoke_exception_view
raise HTTPNotFound
pyramid.httpexceptions.HTTPNotFound: The resource could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/venv_enDI_210315/lib/python3.8/site-packages/waitress/channel.py", line 397, in service
task.service()
File "/venv_enDI_210315/lib/python3.8/site-packages/waitress/task.py", line 168, in service
self.execute()
File "/venv_enDI_210315/lib/python3.8/site-packages/waitress/task.py", line 434, in execute
app_iter = self.channel.server.application(environ, start_response)
File "/venv_enDI_210315/lib/python3.8/site-packages/fanstatic/publisher.py", line 224, in __call__
return self.app(environ, start_response)
File "/venv_enDI_210315/lib/python3.8/site-packages/fanstatic/injector.py", line 64, in __call__
response = request.get_response(self.app)
File "/venv_enDI_210315/lib/python3.8/site-packages/webob/request.py", line 1313, in send
status, headers, app_iter = self.call_application(
File "/venv_enDI_210315/lib/python3.8/site-packages/webob/request.py", line 1278, in call_application
app_iter = application(self.environ, start_response)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/router.py", line 270, in __call__
response = self.execution_policy(environ, self)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/router.py", line 276, in default_execution_policy
return router.invoke_request(request)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/router.py", line 245, in invoke_request
response = handle_request(request)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid_debugtoolbar/toolbar.py", line 238, in toolbar_tween
return handler(request)
File "/endi/utils/sqlalchemy_fix.py", line 25, in tween
return handler(request)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid_tm/__init__.py", line 178, in tm_tween
reraise(*exc_info)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid_tm/compat.py", line 36, in reraise
raise value
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid_tm/__init__.py", line 143, in tm_tween
response = handler(request)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/tweens.py", line 43, in excview_tween
response = _error_handler(request, exc)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/tweens.py", line 17, in _error_handler
reraise(*exc_info)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/util.py", line 733, in reraise
raise value
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/tweens.py", line 41, in excview_tween
response = handler(request)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/router.py", line 143, in handle_request
response = _call_view(
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/view.py", line 674, in _call_view
response = view_callable(context, request)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/viewderivers.py", line 319, in secured_view
return view(context, request)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/viewderivers.py", line 450, in rendered_view
response = view_renderer.render_view(
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/renderers.py", line 443, in render_view
return self.render_to_response(response, system, request=request)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/renderers.py", line 466, in render_to_response
result = self.render(value, system_values, request=request)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid/renderers.py", line 462, in render
result = renderer(value, system_values)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid_mako/__init__.py", line 156, in __call__
reraise(MakoRenderingException(errtext), None, exc_info[2])
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid_mako/compat.py", line 74, in reraise
raise value.with_traceback(tb)
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid_mako/__init__.py", line 148, in __call__
result = template.render_unicode(**system)
File "/venv_enDI_210315/lib/python3.8/site-packages/mako/template.py", line 478, in render_unicode
return runtime._render(
File "/venv_enDI_210315/lib/python3.8/site-packages/mako/runtime.py", line 878, in _render
_render_context(
File "/venv_enDI_210315/lib/python3.8/site-packages/mako/runtime.py", line 920, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/venv_enDI_210315/lib/python3.8/site-packages/mako/runtime.py", line 947, in _exec_template
callable_(context, *args, **kwargs)
File "/mako_compiled_templates/endi$templates/layouts/default.mako.py", line 133, in render_body
context['self'].content(**pageargs)
File "/mako_compiled_templates/company_index.mako.py", line 180, in render_content
__M_writer(escape_silent(api.format_amount(invoice_rest.ttc, precision=5)))
pyramid_mako.MakoRenderingException:
Traceback (most recent call last):
File "/venv_enDI_210315/lib/python3.8/site-packages/pyramid_mako/__init__.py", line 148, in __call__
result = template.render_unicode(**system)
File "/venv_enDI_210315/lib/python3.8/site-packages/mako/template.py", line 478, in render_unicode
return runtime._render(
File "/venv_enDI_210315/lib/python3.8/site-packages/mako/runtime.py", line 878, in _render
_render_context(
File "/venv_enDI_210315/lib/python3.8/site-packages/mako/runtime.py", line 920, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/venv_enDI_210315/lib/python3.8/site-packages/mako/runtime.py", line 947, in _exec_template
callable_(context, *args, **kwargs)
File "/endi/templates/layouts/default.mako", line 149, in render_body
<%block name='beforecontent' />
File "/endi/templates/company_index.mako", line 89, in render_content
${api.format_amount(invoice_rest.ttc, precision=5)} €
AttributeError: 'Undefined' object has no attribute 'ttc'