From: "Antanas Ursulis" <antanas.ursulis@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/log-analysis:master commit in: /
Date: Wed, 3 Jul 2013 07:15:48 +0000 (UTC) [thread overview]
Message-ID: <1372807690.be0237f31708f567150b02b8afcbd7d00fa9262b.uranium@gentoo> (raw)
commit: be0237f31708f567150b02b8afcbd7d00fa9262b
Author: Antanas Uršulis <antanas.ursulis <AT> gmail <DOT> com>
AuthorDate: Tue Jul 2 23:28:10 2013 +0000
Commit: Antanas Ursulis <antanas.ursulis <AT> gmail <DOT> com>
CommitDate: Tue Jul 2 23:28:10 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/log-analysis.git;a=commit;h=be0237f3
Add simple submit POST method to flask app
---
flask_app.py | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/flask_app.py b/flask_app.py
index 1bfd837..a69f4f8 100644
--- a/flask_app.py
+++ b/flask_app.py
@@ -3,12 +3,24 @@ The web application built on Flask is contained within this file.
When run as a script, the Flask development server is started.
"""
-from flask import Flask
+import submission_pb2
+from flask import Flask, request
+
app = Flask(__name__)
@app.route('/')
def index():
pass
+@app.route('/submit', methods=['POST'])
+def submit():
+ """
+ TODO:
+ pass through all steps - input, analysis, storage
+ """
+ submission = submission_pb2.Submission()
+ submission.ParseFromString(request.data)
+ return str(submission)
+
if __name__ == '__main__':
app.run(host='::1', debug=True)
next reply other threads:[~2013-07-03 7:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-03 7:15 Antanas Ursulis [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-07-29 22:40 [gentoo-commits] proj/log-analysis:master commit in: / Antanas Ursulis
2013-07-29 22:40 Antanas Ursulis
2013-07-29 22:40 Antanas Ursulis
2013-07-29 18:59 Antanas Ursulis
2013-07-29 16:08 Antanas Ursulis
2013-07-29 16:08 Antanas Ursulis
2013-07-29 16:08 Antanas Ursulis
2013-07-29 16:08 Antanas Ursulis
2013-07-05 0:00 Antanas Ursulis
2013-07-05 0:00 Antanas Ursulis
2013-07-04 1:39 Antanas Ursulis
2013-07-03 7:15 Antanas Ursulis
2013-07-03 7:15 Antanas Ursulis
2013-07-03 7:15 Antanas Ursulis
2013-07-03 7:15 Antanas Ursulis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1372807690.be0237f31708f567150b02b8afcbd7d00fa9262b.uranium@gentoo \
--to=antanas.ursulis@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox