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

Reply via email to