Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c06db49
)
scgi-wsgi: Fixed a couple of typos.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 3 Sep 2010 05:42:44 +0000
(07:42 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 3 Sep 2010 05:42:44 +0000
(07:42 +0200)
python/ashd/wsgidir.py
patch
|
blob
|
blame
|
history
diff --git
a/python/ashd/wsgidir.py
b/python/ashd/wsgidir.py
index
037544d
..
212c4b7
100644
(file)
--- a/
python/ashd/wsgidir.py
+++ b/
python/ashd/wsgidir.py
@@
-42,20
+42,20
@@
def chain(path, env, startreq):
return (mod.wmain())(env, startreq)
elif hasattr(mod, "application"):
return mod.application(env, startreq)
return (mod.wmain())(env, startreq)
elif hasattr(mod, "application"):
return mod.application(env, startreq)
- return wsgi.simpleerror(env, startreq, 500, "Internal Error", "Invalid WSGI handler.")
+ return wsgi
util
.simpleerror(env, startreq, 500, "Internal Error", "Invalid WSGI handler.")
exts["wsgi"] = chain
def application(env, startreq):
if not "SCRIPT_FILENAME" in env:
exts["wsgi"] = chain
def application(env, startreq):
if not "SCRIPT_FILENAME" in env:
- return wsgiutil.simplerror(env, startreq, 500, "Internal Error", "The server is erroneously configured.")
+ return wsgiutil.simple
e
rror(env, startreq, 500, "Internal Error", "The server is erroneously configured.")
path = env["SCRIPT_FILENAME"]
base = os.path.basename(path)
p = base.rfind('.')
if p < 0 or not os.access(path, os.R_OK):
path = env["SCRIPT_FILENAME"]
base = os.path.basename(path)
p = base.rfind('.')
if p < 0 or not os.access(path, os.R_OK):
- return wsgiutil.simplerror(env, startreq, 500, "Internal Error", "The server is erroneously configured.")
+ return wsgiutil.simple
e
rror(env, startreq, 500, "Internal Error", "The server is erroneously configured.")
ext = base[p + 1:]
if not ext in exts:
ext = base[p + 1:]
if not ext in exts:
- return wsgiutil.simplerror(env, startreq, 500, "Internal Error", "The server is erroneously configured.")
+ return wsgiutil.simple
e
rror(env, startreq, 500, "Internal Error", "The server is erroneously configured.")
return(exts[ext](path, env, startreq))
def wmain(argv):
return(exts[ext](path, env, startreq))
def wmain(argv):