On Tue, 06/10/2014 06:07:19 AM Christoph Zwerschke wrote:
> Am 10.06.2014 00:26, schrieb Uwe Schroeder:
> > After hours of unsuccessful googling and on the chance to out myself as
> > stupid, is there any documentation about what variables/methods/objects
> > are
> > available by default in a template?
> > 
> > Old TG (pre 2) had a set of standard variables, which were documented. I
> > have to migrate a TG1.x app (pre 1.5) to something newer, simply because
> > python 2.4 is majorly outdated and most api-libraries (i.e. youtube)
> > don't support it anymore.
> 
> They still exist in TG 2.3, but I don't find them documented either,
> probably because that was originally covered by the Pylons docs.
> 
> You need to look at the source for now - here you see how they are set
> up in the method _get_tg_vars:
> 
> https://github.com/TurboGears/tg2/blob/development/tg/render.py
> 
> -- Christoph

Thanks Christoph - and good morning (6am is probably a good time with the heat 
you're having over there - you should be at a baggersee in the afternoon :-)). 
I thought I was losing it.

Should I file a ticket? I think I'm in a good position to "complain" about 
things like these since I'm just starting out with the 2.x branch and - no 
offense meant - I find the documentation lacking (isn't that always the case 
:-) 
Writing documentation is so tedious) I might even find some time to write a few 
things up.


Uwe

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to