[llvm-commits] [LNT] r160746 - /lnt/trunk/lnt/server/ui/globals.py
Daniel Dunbar
daniel at zuster.org
Wed Jul 25 11:23:09 PDT 2012
Author: ddunbar
Date: Wed Jul 25 13:23:09 2012
New Revision: 160746
URL: http://llvm.org/viewvc/llvm-project?rev=160746&view=rev
Log:
lnt.server.ui.globals: Provide zip for use in templates.
Modified:
lnt/trunk/lnt/server/ui/globals.py
Modified: lnt/trunk/lnt/server/ui/globals.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/globals.py?rev=160746&r1=160745&r2=160746&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/globals.py (original)
+++ lnt/trunk/lnt/server/ui/globals.py Wed Jul 25 13:23:09 2012
@@ -19,6 +19,11 @@
testsuite_name=flask.g.testsuite_name, **kwargs)
def register(app):
+ # Add some normal Python builtins which can be useful in templates.
+ app.jinja_env.globals.update(
+ zip=zip)
+
+ # Add our custom global functions.
app.jinja_env.globals.update(
db_url_for=db_url_for,
v4_url_for=v4_url_for)
More information about the llvm-commits
mailing list