]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
web/info.py: fix 'Check This Object' link, for files it was checking the parent direc...
authorBrian Warner <warner@lothar.com>
Wed, 22 Oct 2008 17:10:56 +0000 (10:10 -0700)
committerBrian Warner <warner@lothar.com>
Wed, 22 Oct 2008 17:10:56 +0000 (10:10 -0700)
src/allmydata/web/info.py

index df4c52507c2585f95fc1aa3545918e7f3f31bda1..ff03dadf3f10a4866d071250345357152762fd8c 100644 (file)
@@ -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"),