예제 #1
0
파일: url_handler.py 프로젝트: emnh/rentmap
 def get(self):
     #self.response.headers['Content-Type'] = 'application/json'
     self.response.headers['Content-Type'] = 'text/javascript'
     outfd = self.response.out
     outfd.write('function getListings() {\n')
     outfd.write('return ')
     outfd.write(JsonListings.get())
     outfd.write(';\n')
     outfd.write('}\n')
예제 #2
0
파일: url_handler.py 프로젝트: emnh/rentmap
 def get(self):
     JsonListings.invalidate()
     self.response.headers['Content-Type'] = 'text/plain'
     self.response.out.write('Invalidated JSON cache')