def get_(self, user):
     kysely = terveyskysely_key.get()
     if kysely is None:
         kysely = Survey(key=terveyskysely_key, title="Terveyskysely")
         kysely.Put()
     result = [kysely.hashify()]
     self.jsonReply(result)
 def post_(self, user):
     survey = Survey()
     survey.populateFromRequest(self.request.Params)
     survey.Put()
     self.jsonReply(survey.hashify())