Hi,<br><br>As I said a few days ago, I'm working with Jinja2 as my template engine.<br><br>I have my grok app, created with grokproject, and some separated eggs in development. Some of that eggs contains grok.View classes usging Jinja templates<br>
<br>mainApp<br> app.py<br> app_templates<br> ... <br>
egg.development/<br> src/<br> egg/<br> development/<br> views.py<br> views_templates/<br> someview.jinja<br> <a href="http://another.pt">another.pt</a><br>
<br>The problem (bug?) that I found was that it seems that when the Views (using Jinja templates) are grokked it doesn't found the Jinja templates for that Views. It works fine with views using ZopePageTemplates<br><br>
The error log says:<br><br>zope.configuration.config.ConfigurationExecutionError: <class 'martian.error.GrokError'>: View <class 'egg.development.views.SomeView'> has no associated template or 'render' method.<br>
<br><br>To make it work, I must do<br><br>class SomeView(grok.View):<br> ....<br> ....<br>someview = JinjaTemplate('path/to/someview.jinja')<br><br><br>Am I doing anything wrong??<br><br>Regards,<br>
<br>
-- <br>Santiago Videla<br><a href="http://www.revolucionesweb.com.ar" target="_blank">www.revolucionesweb.com.ar</a><br><a href="http://www.linkedin.com/in/svidela" target="_blank">http://www.linkedin.com/in/svidela</a><br>
<br>Sigue la mata dando de que hablar siempre abajo y a la izquierda donde el pensamiento que se hace corazón resplandece con la palabra sencilla y humilde que l@s tod@s somos.<br>