On Sun, 2009-03-22 at 18:06 -0700, nwalt...@sprynet.com wrote:
> I'm trying to compare the current user logged on to user stored in the
> database (using GAE - Google App Engine).
> 
> Here are my four attempts so far and their results:
> 
> 1)     {%ifequal conference.userAdded user.email %}

This is the only correct syntax.

I would guess the problem you might be running into is comparing unlike
types. The user.email variable will be a string. Not sure what type
conference.userAdded will be but if it's not a string, it's not going to
ever compare equal to user.email.

Remember: just becaue you print something out and they look the same,
doesn't mean they are the same. The printed representation has passed
through a call to str(), which doesn't happen before an equality
comparison happens.

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to