Re: pyramid tutorials and source code

2011-11-01 Thread Chris McDonough
Thank you! I've put an issue to be fixed later into https://github.com/Pylons/pyramid/issues/334 - C On Tue, 2011-11-01 at 15:21 -0700, Adrien wrote: > Hi, > > Maybe it's me but the pyramid 1.2 tutorial documentation found here: > > http://docs.pylonsproject.org/projects/pyramid/1.2/tutorial

pyramid tutorials and source code

2011-11-01 Thread Adrien
Hi, Maybe it's me but the pyramid 1.2 tutorial documentation found here: http://docs.pylonsproject.org/projects/pyramid/1.2/tutorials/wiki2/index.html refers to the *master* branch on github: http://github.com/Pylons/pyramid/tree/master/docs/tutorials/wiki2/src/ So isn't there a risk that thin

Re: Implementing custom Mako template lookup

2011-11-01 Thread Andrew Trachenko
Thank you, Michael! It worked. On 1 ноя, 20:34, Michael Merickel wrote: > You can add or override a renderer via the config.add_renderer() directive > here:http://docs.pylonsproject.org/projects/pyramid/1.2/narr/renderers.htm... > > Renderers have access to the request object so accessing the cur

Re: Implementing custom Mako template lookup

2011-11-01 Thread Michael Merickel
You can add or override a renderer via the config.add_renderer() directive here: http://docs.pylonsproject.org/projects/pyramid/1.2/narr/renderers.html#adding-and-changing-renderers Renderers have access to the request object so accessing the current language shouldn't be an issue. -- Michael

Implementing custom Mako template lookup

2011-11-01 Thread Andrew Trachenko
Hello, I want to implement the following feature. When I specify the @action(..., renderer='template.mako') view decorator (in terms of pyramid_handlers), I'd like to check for localized versions of the template file (e.g. "template.en.mako" in my case), and fall back on the specified file. I

[Pyramid, Route] I look for an route url generator but in Javascript (like PyRoutes.JS for Pylons 1)

2011-11-01 Thread Stephane Klein
Hi, some time ago, I've write this message with "[Pylons 1.0, Routes] I look for an url generator but in Javascript" title : http://thread.gmane.org/gmane.comp.web.pylons.general/16065/focus=16066 Since, I've released this library with the name "PyRoutes.JS" : http://packages.python.org/pyro