Dolda2000 GitWeb
/
wrw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow funplex to handle requests to root.
[wrw.git]
/
wrw
/
util.py
diff --git
a/wrw/util.py
b/wrw/util.py
index
a1dcc6c
..
7209ae4
100644
(file)
--- a/
wrw/util.py
+++ b/
wrw/util.py
@@
-41,6
+41,8
@@
class funplex(object):
def __call__(self, req):
if req.pathinfo == "":
+ if "__root__" in self.dir:
+ return self.dir["__root__"](req)
raise resp.redirect(req.uriname + "/")
if req.pathinfo[:1] != "/":
raise resp.notfound()