Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
892f3b7
)
Allow funplex to handle requests to root.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 1 Feb 2018 03:50:54 +0000
(
04:50
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 1 Feb 2018 03:50:54 +0000
(
04:50
+0100)
wrw/util.py
patch
|
blob
|
blame
|
history
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()