Browse Source

Interface module's folder is created

Roland Haroutiounian 9 years ago
parent
commit
872fc47724
3 changed files with 7 additions and 0 deletions
  1. 0
    0
      lodel/interface/__init__.py
  2. 0
    0
      lodel/interface/web/__init__.py
  3. 7
    0
      lodel/interface/web/run.py

+ 0
- 0
lodel/interface/__init__.py View File


+ 0
- 0
lodel/interface/web/__init__.py View File


+ 7
- 0
lodel/interface/web/run.py View File

@@ -0,0 +1,7 @@
1
+from werkzeug.wrappers import Response
2
+
3
+def application(environ, start_response):
4
+    request = Request(environ)
5
+    text = 'Hello %s!' % request.args.get('name', 'World')
6
+    response = Response(text, mimetype='text/plain')
7
+    return response(environ, start_response)

Loading…
Cancel
Save