Re: Hard-coded sting in IFEQUAL

2007-08-15 Thread Brisingman
Upgrade to 0.96 went smoothly. On Jul 10, 10:42 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 7/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > running .91 due to upgrade soon. > > For future reference, that would have been a very useful piece of data > to provide with

Re: Hard-coded sting in IFEQUAL

2007-07-10 Thread Russell Keith-Magee
On 7/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > running .91 due to upgrade soon. For future reference, that would have been a very useful piece of data to provide with your original report. Django 0.91 is 18 months old - and a lot of very significant changes and bugfixes have been

Re: Hard-coded sting in IFEQUAL

2007-07-10 Thread [EMAIL PROTECTED]
running .91 due to upgrade soon. On Jul 10, 11:27 am, Vincent Foley <[EMAIL PROTECTED]> wrote: > It works fine with me: > > >>> from django.template import Template, Context > >>> t = Template('''{% ifequal s "Some Thing" %}Equal{% else %}Not equal{% > >>> endifequal %}''') > >>>

Re: Hard-coded sting in IFEQUAL

2007-07-10 Thread Vincent Foley
It works fine with me: >>> from django.template import Template, Context >>> t = Template('''{% ifequal s "Some Thing" %}Equal{% else %}Not equal{% >>> endifequal %}''') >>> t.render(Context({'s': 'foo'})) 'Not equal' >>> t.render(Context({'s': 'Some Thing'})) 'Equal' What version of Django

Hard-coded sting in IFEQUAL

2007-07-10 Thread [EMAIL PROTECTED]
I don't see why this {% ifequal theclass "Some Thing" %} throws a TemplateSyntaxError " 'ifequal' takes two arguments " while this {% ifequal theclass "SomeThing" %} does not? Any clarity would be welcomed. Best --~--~-~--~~~---~--~~ You received this