If you need to compare derived items (beyond what the template engine
can manage), then you need to prepare them in Python.  In the case you
mentioned, that means 1) add Python code to your handler to convert
dates to string representations and 2) make those strings available to
your template for comparison.


On Jan 12, 4:32 pm, Elvis <nwt...@gmail.com> wrote:
> Wery strange!
>
> I try to use ifequal with filters and it dosent work
>
> i search around web and found this is a normal
>
> but in october ive write very similar code and it working! i lost my
> working code and now try to rewite
>
> in appengine i cant use {% with ... %} because it dosent exists
>
> what you doif you need functionality like that:
>
> {% ifequal date|date:¨n¨ enddate|date:¨n¨ %}
>  do some
> {% else %}
> do some another
> {% endifequal %}
>
> any ideas^how to do it in templates?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to