Re: Implementing custom Mako template lookup
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 -- You received this message because you are subscribed to the Google Groups pylons-devel group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.
Re: Implementing custom Mako template lookup
Thank you, Michael! It worked. On 1 ноя, 20:34, Michael Merickel mmeri...@gmail.com 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 current language shouldn't be an issue. -- Michael -- You received this message because you are subscribed to the Google Groups pylons-devel group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.
pyramid tutorials and source code
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 things get a little bit weird for newcomers if master tutorial is updated with backward-incompatible features? Shouldn't the pyramid 1.2 tutorial point to https://github.com/Pylons/pyramid/tree/1.2-branch/docs/tutorials/wiki2/src instead? Kind regards, Adrien -- You received this message because you are subscribed to the Google Groups pylons-devel group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.