Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Améliorer le retour d'erreur STL #92

Open
fchenebault opened this issue Apr 13, 2017 · 0 comments
Open

Améliorer le retour d'erreur STL #92

fchenebault opened this issue Apr 13, 2017 · 0 comments

Comments

@fchenebault
Copy link
Contributor

Lors d'une erreur d'injection dans un CMSTemplate le traceback suivant apparait :

 Traceback (most recent call last):
   File "/usr/local/ikaaro/076/lib/python2.7/site-packages/itools/web/router.py", line 282, in handle_request
   context.site_root.after_traverse(context)
   File "/usr/local/ikaaro/076/lib/python2.7/site-packages/ikaaro/root.py", line 253, in after_traverse
   context.entity = self.get_skin(context).template(body)
   File "/usr/local/ikaaro/076/lib/python2.7/site-packages/ikaaro/skins.py", line 425, in template
   data = stl(handler, namespace, prefix=prefix, mode='html')
   File "/usr/local/ikaaro/076/lib/python2.7/site-packages/itools/stl/stl.py", line 316, in stl
   raise STLError(error + e.message)
 STLError: Error in generation of html
Template file:///usr/local/ikaaro/076/lib/python2.7/site-packages/mypackage/ui/extranet/template.xhtml.nl
evaluation of 'activity' failed, 'activity' could not be resolved

Ici le template file qui ressort est le template final et non celui du CMSTemplate.
Il faudrait afficher le vrai template posant problème.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant