comparison browser_side/register.py @ 121:2d40b0f5fb37

server side: asynchronous login
author Goffi <goffi@goffi.org>
date Sat, 10 Dec 2011 10:41:40 +0100
parents 975e6be24e11
children ddfcc4cb6cee
comparison
equal deleted inserted replaced
120:054b7b3424a3 121:2d40b0f5fb37
155 pass 155 pass
156 156
157 def onSubmitComplete(self, event): 157 def onSubmitComplete(self, event):
158 result = event.getResults() 158 result = event.getResults()
159 if result == "AUTH ERROR": 159 if result == "AUTH ERROR":
160 Window.alert('You login and/or password is incorrect. Please try again') 160 Window.alert('Your login and/or password is incorrect. Please try again')
161 elif result == "LOGGED": 161 elif result == "LOGGED":
162 self.callback() 162 self.callback()
163 elif result == "SESSION_ACTIVE": 163 elif result == "SESSION_ACTIVE":
164 Window.alert('Session already active, this should not happen, please contact contact the author to fix it') 164 Window.alert('Session already active, this should not happen, please contact contact the author to fix it')
165 elif result == "ALREADY EXISTS": 165 elif result == "ALREADY EXISTS":