def get(self): # list RaPis with last checkin time and edit ability r = RaPiConfig.get_by_id("test") if not r: r = RaPiConfig(id="test", Interval=600, UploadLocation="asdf") r.put() self.response.write(r.to_yaml()) self.response.headers.add("Content-Type", "text/plain")
def get(self, rapi_name): # TODO: save access time r = RaPiConfig.get_by_id(rapi_name) self.response.write(r.to_yaml()) self.response.headers.add("Content-Type", "text/plain")