def get(self): file = str(os.path.join(config.ROOT_XSL_DIR, self.get_argument('file', 'ambient/blocks/page.xsl'))) limit = self.get_argument('limit_out', None) drawer = Drawer(data_cache.data, data_cache.index) graph = create_graph() drawer.draw_inside(graph, [file]) drawer.draw_outside(graph, [file], limit=limit) result = render_graph(graph) self.set_header('Content-Type', 'image/svg+xml') self.finish(result)
def get(self): file = str(os.path.join(config.ROOT_XSL_DIR, self.get_argument('file', 'ambient/blocks/page.xsl'))) graph = create_graph() graph = draw_inside( graph=graph, data=data_cache.data, search_files=[file], ) graph = draw_outside( graph=graph, index=data_cache.index, search_files=[file], ) result = render_graph(graph) self.set_header('Content-Type', 'image/svg+xml') self.finish(result)