Re: h.link_to() in Pyramid

2011-10-31 Thread Michael Merickel
These things are not automatically exposed in Pyramid like they were in Pylons. Pyramid's request object has a "tmpl_context", but to expose it you must use it in the template as "request.tmpl_context" or you can inject it as "c" or some such via a BeforeRender event. A helper object in templates

h.link_to() in Pyramid

2011-10-31 Thread damacy
Q: Where can I find those build-in webhelpers methods in the Pyramid project? Currently converting a very old Pylons project to a Pyramid one. Trying to make as little changes as possible. For 'c', it can be easily done by importing pyramid.request.TemplateContext as below; from pyramid.request i