projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0129e99
)
web/info.py: fix 'Check This Object' link, for files it was checking the parent direc...
author
Brian Warner
<warner@lothar.com>
Wed, 22 Oct 2008 17:10:56 +0000
(10:10 -0700)
committer
Brian Warner
<warner@lothar.com>
Wed, 22 Oct 2008 17:10:56 +0000
(10:10 -0700)
src/allmydata/web/info.py
patch
|
blob
|
history
diff --git
a/src/allmydata/web/info.py
b/src/allmydata/web/info.py
index df4c52507c2585f95fc1aa3545918e7f3f31bda1..ff03dadf3f10a4866d071250345357152762fd8c 100644
(file)
--- a/
src/allmydata/web/info.py
+++ b/
src/allmydata/web/info.py
@@
-131,7
+131,12
@@
class MoreInfo(rend.Page):
return ""
def render_check_form(self, ctx, data):
- check = T.form(action=".", method="post",
+ node = self.original
+ quoted_uri = urllib.quote(node.get_uri())
+ target = self.get_root(ctx) + "/uri/" + quoted_uri
+ if IDirectoryNode.providedBy(node):
+ target += "/"
+ check = T.form(action=target, method="post",
enctype="multipart/form-data")[
T.fieldset[
T.input(type="hidden", name="t", value="check"),