Re: %ifequal - what am I missing here?

2009-03-23 Thread nwalt...@sprynet.com
Thanks Malcom, you got me on the right track. I was apparently comparing two different objects instead of strings. User was of type db.UserProperty(). The following worked: {%ifequal conference.userAdded.__str__ user.email %} Thanks again, Neal Walters

%ifequal - what am I missing here?

2009-03-22 Thread nwalt...@sprynet.com
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 %} 2) {%ifequal {conference.userAdded} {user.email} %} 3) {%ifequal

auto_now = True - only on some updates

2009-03-22 Thread nwalt...@sprynet.com
I have a table where users can add their own rows, but the admin must approve it. So my model contains this: dateAdminDecision = db.DateTimeProperty(auto_now=True) Obviously, at first, every row, even when the users added their data, was getting set to this date. But I only want the date to be