Hi all,
I'm trying to check the password of my user. But it doesn't want to work.

class PAGAMENTI(db.Expando):
data = db.DateTimeProperty(auto_now_add=True)

class BIG(db.Expando):
data = db.DateTimeProperty(auto_now_add=True)

class BigHandler(webapp.RequestHandler):

def get(self):
 ......

def post(self):
password = self.request.get('password')
 controllo = db.Query(PAGAMENTI).filter('password=',
password).fetch(limit=1)
controllo2 = db.Query(BIG).filter('password=', password).fetch(limit=1)
 if len(controllo) == 1 and len(controllo2) == 0:
big = BIG()
 big.nome = self.request.get('nome')
big.msg = self.request.get('msg')
 big.password = password
big.put()
self.redirect('/big')

Could you please help me. The if doesn't work, It always goes in the else.

Thanks

Max


-- 

My email: [email protected]
My Google Wave: [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to