Re: django.template.TokenParser inconsistent when it comes to filters...

2007-11-17 Thread Malcolm Tredinnick
On Sat, 2007-11-17 at 19:55 -0800, Dmitri Fedortchenko wrote: > Great. > > Here are the tickets: > http://code.djangoproject.com/ticket/5971 > http://code.djangoproject.com/ticket/5972 > > And while we're on the subject of tickets: > I've been digging around in the jungle of template parsing

Re: django.template.TokenParser inconsistent when it comes to filters...

2007-11-17 Thread Dmitri Fedortchenko
Great. Here are the tickets: http://code.djangoproject.com/ticket/5971 http://code.djangoproject.com/ticket/5972 And while we're on the subject of tickets: I've been digging around in the jungle of template parsing while working on this patch and and the trans patch, and a thought occured to

Re: django.template.TokenParser inconsistent when it comes to filters...

2007-11-17 Thread Malcolm Tredinnick
On Sat, 2007-11-17 at 18:27 -0800, Dmitri Fedortchenko wrote: > The django.template.TokenParser has a little problem. > > I am not sure if this is a problem actually, but it is inconsistent > when parsing filters that follow constant strings or variables. > > Meaning that: > {% tag

django.template.TokenParser inconsistent when it comes to filters...

2007-11-17 Thread Dmitri Fedortchenko
The django.template.TokenParser has a little problem. I am not sure if this is a problem actually, but it is inconsistent when parsing filters that follow constant strings or variables. Meaning that: {% tag thevar|filter sometag %} will produce: self.value() = "thevar|filter" self.tag() =