Re: pyramid tutorials and source code
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/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.
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.
Re: Implementing custom Mako template lookup
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 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
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.
Implementing custom Mako template lookup
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 think I need to subclass the pyramid.mako_templating.MakoLookupTemplateRenderer class, overwrite the implementation() method and tell Pyramid to use my class. How can I archive this? I also wonder if it'll be possible to have access to the the current language from there. Best wishes, Andrew -- 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, Route] I look for an route url generator but in Javascript (like PyRoutes.JS for Pylons 1)
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/pyroutes.js/ Now, I would like the same thing for Pyramid. Before beginning to coding that, I would like your comments about this idea. Regards, Stephane -- Stéphane Klein blog: http://stephane-klein.info Twitter: http://twitter.com/klein_stephane pro: http://www.is-webdesign.com -- 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.