-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added automatic wsgi support checking and fallback
- Loading branch information
1n5aN1aC
committed
Dec 14, 2015
1 parent
7505bf5
commit 0731fcd
Showing
4 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!python | ||
from http_reset_rain import * | ||
|
||
# | ||
# This is requested by the index page every time it needs to update the data. | ||
# It will Return all the current weather data in a json-file, formated for web-display. | ||
# That means this is called very often, and should be reletively effecient | ||
def application(environ, start_response): | ||
status = '200 OK' | ||
output = reset_rain() | ||
|
||
response_headers = [('Content-type', 'application/json;charset=utf-8'), | ||
('Content-Length', str(len(output)))] | ||
start_response(status, response_headers) | ||
|
||
return [output] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters