def post(self): data = self.request.body temp = data s = Service() try: s.category = temp['category'] s.desc = temp['desc'] s.extras = temp['extras'] s.location = db.GeoPtProperty(temp['location']) s.mode = temp['mode'] s.title = temp['title'] except: self.response.out.write('not registered due to technical difficulties') if s: s.put() self.restponse.out.write(s.title)