Re: Concrete django.template Suggestions

2008-09-21 Thread Johannes Dollinger
Am 19.09.2008 um 18:08 schrieb Armin Ronacher: [snip] > > What's harder to fix is how the i18n integration translates filter > arguments or gettext constants (those _("foo") thingies). Currently > that happens very often at node/object creation rather than node/ > object evaluation. A good exam

Re: Concrete django.template Suggestions

2008-09-20 Thread zvoase
Oh, and by the way, with regards to thread safety, changes should be made in the context, not the node. I'm currently working on a refactor of the template system at the moment, something will be done within a couple of days. If it's really necessary (I mean, I'm just doing it for fun, but it migh

Re: Concrete django.template Suggestions

2008-09-20 Thread zvoase
Probably the best thing to do, if anything, is to make something new and get it working alongside the old system, much like "oldforms" and "newforms" in 0.96. That way you keep backwards compatibility but people can also leverage new features in their code. Regards, Zack On Sep 20, 3:48 am, Malc

Re: Concrete django.template Suggestions

2008-09-19 Thread Malcolm Tredinnick
On Fri, 2008-09-19 at 09:08 -0700, Armin Ronacher wrote: [...] > Where are threading bugs? We're all going to find this easier if the right words are used. Template class instances are mutable objects that hold their current state. This is a design choice, not a bug. When something is done inten

Concrete django.template Suggestions

2008-09-19 Thread Armin Ronacher
Hi everybody, After my quite controversal blog post about Jinja and Django I summed up some suggestions for the Django template engine that don't require a complete reimplementation / breaking backwards compatibility :) First of all the thread in-safeties I discovered [and the explanation why no