def delete(self, email): try: s = Subscribe_Updates() r = s.remove_email(email) self.write(str(r)) except Exception, e: logging.exception(e) self.render("oops.html")
def post(self, email, q_lat=0, q_lon=0): try: s = Subscribe_Updates() r = s.add_email(email, q_lat, q_lon) self.write(str(r)) except Exception, e: logging.exception(e) self.render("oops.html")