On Thu, Nov 13, 2008 at 11:44 AM, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
>
> So my question is - is there any reason why tg.url is not based on url_for,
> and if not, shall I come forth with an implementation?

Could be interesting. url_for is coupled deep into pylons though and
some proper abstraction should be avoided to be able to not couple TG2
to pylons because of that (we already have quite some coupling in
other places...)

>
> We also miss a way to stuff things into the template context. The
> oldturbogears.view.variable_provider mechanism doesn't work anymore, and
> currently only monkeypatching would help. Shall I implement a similar method
> as in TG1 into TG2?

Could you not just stuff the desired functions/methods in your
applications app_globals.py and then access them from the template ?

Florent.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to