Esempio n. 1
0
File: geo.py Progetto: tghali/EEU
 def post(self):
     city = self.request.get("city")
     country = self.request.get("country")
     
     result = Location.create_from_string(user=self.user, location_name="%s, %s" % (city, country))
     
     if result:
         message = "Thank you for providing your location"
     else:
         message = "We could not find your location. Please check your spelling and try again"
         
     # return simplejson.dumps({"result": result, "message": message})
     self.redirect("/geo?message=%s" % message)
Esempio n. 2
0
File: user.py Progetto: tghali/EEU
 def update_info(self, email, location):
     Location.create_from_string(user=self, location_name=location)
     
     if email and email != "" and self.email != email:
         self.email = email
         self.put()