[Grok-dev] About plugged templates... bug or coming soon feature??
regebro at gmail.com
Mon Dec 1 14:18:52 EST 2008
On Mon, Dec 1, 2008 at 19:03, Santiago Videla <santiago.videla at gmail.com> wrote:
> As I said a few days ago, I'm working with Jinja2 as my template engine.
> I have my grok app, created with grokproject, and some separated eggs in
> development. Some of that eggs contains grok.View classes usging Jinja
> 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
> The error log says:
> zope.configuration.config.ConfigurationExecutionError: <class
> 'martian.error.GrokError'>: View <class 'egg.development.views.SomeView'>
> has no associated template or 'render' method.
> To make it work, I must do
> class SomeView(grok.View):
> someview = JinjaTemplate('path/to/someview.jinja')
> Am I doing anything wrong??
Possibly, or there is a bug. Which is impossible to say unless I can
check out your code. Do you have it somewhere?
Lennart Regebro: Zope and Plone consulting.
+33 661 58 14 64
More information about the Grok-dev