"David Bain" <
[hidden email]> writes:
> hey(None,None)._render_template()
This line of code, by the way, seems to answer your question from
earlier today - the way you get a template to render something for you
is to instantiate its View, just like (I think) you're doing here.
> The following code gives a traversal error:
>
> hey = Master
> hey(None,None)._render_template()
> *** TraversalError: (None, 'master.css')
Does your template try to determine the URL to "master.css" anywhere?
Whenever, in a template, you say "get the URL of <this>", you have to
make sure that "<this>" can be "traversed" to find where it lives and,
perhaps in this case, what lives inside of it.
Take a look at:
http://grok.zope.org/minitutorials/transient-objects.htmland see whether it addresses your situation.
--
Brandon Craig Rhodes
[hidden email] http://rhodesmill.org/brandon_______________________________________________
Grok-dev mailing list
[hidden email]
http://mail.zope.org/mailman/listinfo/grok-dev