Hi guys!

First of all, let me explain my goal. I have an application running in
webware and I want to port it to turbogears. These application defines
a basic webpage for each object on a object set. The page object is
defined on  SQLObject and each page object can have a "vhost" and a
"theme" attribute. Based on the X-Forwarded-Host request header I know
what page was called and based on the theme name I define which
template I should render.

I could achieve this without problems, I defined a custom decorator but
I don't know if I used the best approach. Once I need access to the
"site" instance every method, I passing this attribute to the first
attribute get on the decorator (self).

I posted my code on the paste bin:
http://paste.turbogears.org/paste/818

Do you have any suggestions?
Thanks again!

Michel


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to