Example #1
0
 def GET(self):
     
     print "\n\t**********************************************"
     print "             In side HandleRegister"
     print "\t**********************************************"
     i = web.input()
     r_id = i.r_id
     print "I: Registration id = " + str(r_id)
     my_gcm.registerWithId(r_id, str(i.name), str(i.email))
     
     return 'Successfully registered'
Example #2
0
 def GET(self):
     
     print "\n\t**********************************************"
     print "             In side HandleRegister"
     print "\t**********************************************"
     i = web.input()
     r_id = i.r_id
     passWd = str(i.email)
     if passWd != constant_utilities.PASSCODE:
         return "Login error, Password incorrect"
     print "I: Registration id = " + str(r_id)
     print "Name = " + str(i.name)
     print "Password = " + str(i.email)
     my_gcm.registerWithId(r_id, str(i.name), str(i.email))
     constant_utilities.REG_ID = str(r_id)
     return 'Successfully registered' + r_id