ZoomQuiet avatar ZoomQuiet committed 1b0d649

appended SAE py shell midware

Comments (0)

Files changed (2)

     base_string = api_path + "?" + "&".join(key_values)
     return base_string
 
-application = sae.create_wsgi_app(app)
+
+from sae.ext.shell import ShellMiddleware
+application = sae.create_wsgi_app(ShellMiddleware(app, '1q2w3e4r5t')) 
+#application = sae.create_wsgi_app(app)
+import sae
+from sae.ext.shell import ShellMiddleware
+
+def urisaok(environ, start_response):
+    status = '200 OK'
+    response_headers = [('Content-type', 'text/plain')]
+    start_response(status, response_headers)
+    return ["Hello, world!"]
+
+application = sae.create_wsgi_app(ShellMiddleware(urisaok, '1q2w3e4r'))
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.