Dolda2000 GitWeb
/
wrw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
438b620
)
Include a selfpath in requests derived from a funplex.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 9 May 2014 06:14:21 +0000
(08:14 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 9 May 2014 06:14:21 +0000
(08:14 +0200)
wrw/util.py
patch
|
blob
|
blame
|
history
diff --git
a/wrw/util.py
b/wrw/util.py
index
557b25d
..
460344f
100644
(file)
--- a/
wrw/util.py
+++ b/
wrw/util.py
@@
-49,7
+49,9
@@
class funplex(object):
p = p.partition("/")[0]
bi = len(p) + 1
if p in self.dir:
- return self.dir[p](req.shift(bi))
+ sreq = req.shift(bi)
+ sreq.selfpath = req.pathinfo[1:]
+ return self.dir[p](sreq)
raise resp.notfound()
def add(self, fun):