diff options
Diffstat (limited to 'webapp.py')
-rwxr-xr-x | webapp.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -100,7 +100,7 @@ class Application: elif endpoint == "index": if not request.environ["PATH_INFO"]: raise InternalRedirect("/") - return html_response(index_template.render(dict(urlroot=""))) + return html_response(index_template.stream(dict(urlroot=""))) elif endpoint == "source": return self.show_source(args["package"]) raise NotFound() @@ -159,7 +159,7 @@ class Application: (params["pid"],)) params["issues"] = dict(cur.fetchall()) cur.close() - return html_response(package_template.render(params)) + return html_response(package_template.stream(params)) def compute_comparison(self, pid1, pid2): """Compute a sequence of comparison objects ordered by the size of the @@ -237,7 +237,7 @@ class Application: raise NotFound() params = dict(function=function, hashvalue=hashvalue, entries=entries, urlroot="../..") - return html_response(hash_template.render(params)) + return html_response(hash_template.stream(params)) def show_source(self, package): with contextlib.closing(self.db.cursor()) as cur: @@ -256,7 +256,7 @@ class Application: if not (oldentry and oldentry["savable"] >= size): binpkgs[binary] = entry params = dict(source=package, packages=binpkgs, urlroot="..") - return html_response(source_template.render(params)) + return html_response(source_template.stream(params)) def main(): parser = argparse.ArgumentParser() |