[llvm-commits] [zorg] r125850 - in /zorg/trunk/llvmlab/llvmlab/ui: app.py static/ static/favicon.ico
Daniel Dunbar
daniel at zuster.org
Fri Feb 18 08:40:11 PST 2011
Author: ddunbar
Date: Fri Feb 18 10:40:11 2011
New Revision: 125850
URL: http://llvm.org/viewvc/llvm-project?rev=125850&view=rev
Log:
llvmlab: Add a favicon.
Also, use debugger by default when started from command line.
Added:
zorg/trunk/llvmlab/llvmlab/ui/static/
zorg/trunk/llvmlab/llvmlab/ui/static/favicon.ico
Modified:
zorg/trunk/llvmlab/llvmlab/ui/app.py
Modified: zorg/trunk/llvmlab/llvmlab/ui/app.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/llvmlab/llvmlab/ui/app.py?rev=125850&r1=125849&r2=125850&view=diff
==============================================================================
--- zorg/trunk/llvmlab/llvmlab/ui/app.py (original)
+++ zorg/trunk/llvmlab/llvmlab/ui/app.py Fri Feb 18 10:40:11 2011
@@ -1,9 +1,17 @@
-from flask import Flask
-app = Flask(__name__)
+import flask
+from flask import redirect, url_for
+
+# Construct the Flask application.
+app = flask.Flask(__name__)
@app.route('/')
def index():
return "Ceci n'est pas un laboratoire."
+ at app.route('/favicon.ico')
+def favicon_ico():
+ return redirect(url_for('static', filename='favicon.ico'))
+
if __name__ == '__main__':
+ app.debug = True
app.run()
Added: zorg/trunk/llvmlab/llvmlab/ui/static/favicon.ico
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/llvmlab/llvmlab/ui/static/favicon.ico?rev=125850&view=auto
==============================================================================
Binary files zorg/trunk/llvmlab/llvmlab/ui/static/favicon.ico (added) and zorg/trunk/llvmlab/llvmlab/ui/static/favicon.ico Fri Feb 18 10:40:11 2011 differ
More information about the llvm-commits
mailing list