def get(self): "Handlers get requests" modules = dtmm_utils.get_module_names(self) self.response.headers['Content-Type'] = 'text/plain' self.response.headers['Cache-Control'] = 'no-Cache' self.response.write('\n'.join(modules))
def get(self): "Handles get requests" query = self.request.get('q') filenames = dtmm_utils.get_module_names(self) filenames = filter(lambda filename: query in filename, filenames) self.response.headers['Content-Type'] = 'text/plain' self.response.headers['Cache-Control'] = 'no-Cache' self.response.write('\n'.join(filenames))