Skip to content

Commit

Permalink
Drop unused code that prints environ
Browse files Browse the repository at this point in the history
  • Loading branch information
zaitcev committed Aug 8, 2013
1 parent ac686fa commit ffd2b0d
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions slasti.wsgi
Expand Up @@ -81,29 +81,6 @@ def do_root(environ, start_response):
return ["Slasti: The Anti-Social Bookmarking\r\n",
"(https://github.com/zaitcev/slasti)\r\n"]

## Based on James Gardner's environ dump.
#def do_environ(environ, start_response):
# method = environ['REQUEST_METHOD']
# if method != 'GET':
# raise AppGetError(method)
#
# sorted_keys = environ.keys()
# sorted_keys.sort()
#
# response_headers = [('Content-type', 'text/html')]
# start_response("200 OK", response_headers)
# output = ["<html><body><h1><kbd>environ</kbd></h1><p>"]
#
# for kval in sorted_keys:
# output.append("<br />")
# output.append(kval)
# output.append("=")
# output.append(str(environ[kval]))
#
# output.append("</p></body></html>")
#
# return output

def do_user(environ, start_response, path):
# We will stop reloading UserBase on every call once we figure out how.
users = UserBase()
Expand Down Expand Up @@ -201,8 +178,6 @@ def application(environ, start_response):
try:
if path == None or path == "" or path == "/":
output = do_root(environ, start_response)
#elif path == "/environ":
# return do_environ(environ, start_response)
else:
output = do_user(environ, start_response, path)
return output
Expand Down

0 comments on commit ffd2b0d

Please sign in to comment.