you can return tg_template=... in the returned dict from the function
and that will be used instead of the one specified in the decorator.

On 2/2/06, reflog <[EMAIL PROTECTED]> wrote:
>
> Hi.
>
> I'm writing a Blog-site engine (http://turboblog.python-hosting.com),
> which supports multiple blogs, and I want to provide themeing ability
> per-blog.
> The problem is, I have a BlogController with different methods, which
> are exposed with 'html=turboblog.templates.methodname'
> What I wanted to do is to allow
> 'html=turboblog.templates.%s.methodname'%blog_theme
>
> Now here's the tricky part - blog_theme is bound to specific object.
> But the object is read INSIDE the method, so I cannot add it's param
> into the decorator.
> Is there any way to overcome this?
>
> If this is not clear enough, I'll provide an example code.
>
> Thanks in advance,
>
> Eli
>
>


--
cheers
    elvelind grandin

Reply via email to