On 1/15/06, Matthias Urlichs <[EMAIL PROTECTED]> wrote:
> This code works (mostly -- it only breaks because the default master.kid
> does an "import sitetempate", which causes an ImportError:
>
> def find_my_template():
>         return Template(name="box.templates.welcome")
> ...
>         File "/daten/src/git/box/box/templates/master.py", line 15, in ?
>                 ImportError: No module named sitetemplate

Hmm... it seems like that one should work or should be workable. I
think you may just be missing the codepath that loads sitetemplate.
(If you rendered any Kid template the traditional way, it would
probably work.) If the time that TurboKid loads sitetemplate is
changed, this could work.

> Apparently my best bet is to hack (a copy of) turbokid.kidsupport to
> load templates from my storage. That looks reasonable easy, however..:

You could do that. Just subclass and override one method, I think?

> How do I hook that into TurboGears/Kid so that it's used in *addition*
> to turbokid (i.e. I can use py:extends from my external templates to
> load both external and on-disk templates)?

You're on your own there :)

Kevin

Reply via email to