On Wed, Jan 14, 2009 at 9:26 AM, Mark Ramm <[email protected]> wrote:
>
> I noticed that a recent change in tg.controllers does 2 things:
>
> 1) it allows you to set your toscawidgets to adapt to mako or genshi
> on a per request basis
> 2) it makes a hard dependency on TW in tg.
>
> It was a goal to have the actuall turbogears2 package have as small a
> dependency set as possible, but I think this feature is pretty
> valuable. So I'm predisposed to keep it, but I think it should be a
> conscious decision by the community so what do you all think?
>
> The actual changeset can be seen here:
>
> http://trac.turbogears.org/changeset/6099
>
-1 as well. The use case in question is when you have an application
that has several rendering engines. It isn't as dark as originally
portraited. The fix was put in place due to an application being coded
in mako, but using tgext.registration (which uses genshi).
perhaps we can do a conditional + a value in app_config.py how about this
app.cfg.py additions
base_config.use_toscawidgets = True
base_config.tw.framework.default_view = base_config.default_renderer
therefore the offending code could be replaced with, something along
the lines of
if tg.config.use_toscawidgets:
import tw
tw.framework.default_view = tg.config.tw.framework.default_view
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---