On 12/21/05, Matthew Bevan <[EMAIL PROTECTED]> wrote:
>
> > If you are using tg svn: ...
>
> Hey, thanks!  That's exactly what I'm looking for.  The second half of
> that is how do I reference my master template from my object templates
> without typing py:extends="'../../../templates/master.kid'"?  ;)

Use the other form of py:extends...

add your full template name (in python.dot.notation) to
turbogears.view.baseTemplates (ugh, that should really be PEP8'ed).
You might want to call loadBaseTemplates, because I don't remember
offhand when that gets called.

Then, you can import that into your template and py:extends that name.
(The same way the master template uses sitetemplate.)

Kevin

--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com

Reply via email to