aboutsummaryrefslogtreecommitdiffstats
path: root/partmom.py
diff options
context:
space:
mode:
authorbryan newbold <bnewbold@robocracy.org>2013-05-12 11:02:04 -0400
committerbryan newbold <bnewbold@robocracy.org>2013-05-12 11:02:04 -0400
commit31907e58394484c2447402f630c0a5c93c5b37e7 (patch)
treed48dd77113b865347f073f1c2a5948f631ecf8be /partmom.py
parentc31cfe661cc46a645ac7f8ad74abe03edb93f04a (diff)
downloadpartmom-31907e58394484c2447402f630c0a5c93c5b37e7.tar.gz
partmom-31907e58394484c2447402f630c0a5c93c5b37e7.zip
minimum viable demonstration
Diffstat (limited to 'partmom.py')
-rwxr-xr-xpartmom.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/partmom.py b/partmom.py
new file mode 100755
index 0000000..b78281d
--- /dev/null
+++ b/partmom.py
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+
+from flask import Flask, request, session, g, redirect, url_for, \
+ abort, render_template
+from werkzeug import secure_filename
+import os
+
+from settings import *
+import xilinx
+
+app = Flask(__name__)
+app.config.from_object(__name__)
+
+@app.route('/', methods=['GET'])
+def index():
+ return render_template('index.html')
+
+@app.route('/xilinx/spartan6', methods=['GET'])
+def xilinx_spartan6():
+ return render_template('grid.html', grid=xilinx.spartan6_grid)
+
+@app.route('/xilinx/zynq7000', methods=['GET'])
+def xilinx_zynq7000():
+ return render_template('grid.html', grid=xilinx.zynq7000_grid)
+
+if __name__ == '__main__':
+ app.run(debug=DEBUG, port=PORT, host=HOST)