[Grok-dev] traversal error when calling template for grok.View

David Bain david.bain at alteroo.com
Sun Nov 4 20:01:37 EST 2007


I have a simple class in app.py

class Master(grok.View):
    """The master page template macro."""
    # register this view for all objects
    grok.context(Interface)


there is a master template in app_templates/master.pt

The following code gives a traversal error:

hey = Master
hey(None,None)._render_template()
*** TraversalError: (None, 'master.css')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20071104/16451837/attachment.htm


More information about the Grok-dev mailing list