From: Brian Warner Date: Wed, 22 Oct 2008 17:10:56 +0000 (-0700) Subject: web/info.py: fix 'Check This Object' link, for files it was checking the parent direc... X-Git-Url: https://git.rkrishnan.org/Site/Content/Exhibitors/nxhtml.html?a=commitdiff_plain;h=4025f29b8ad8bfef88c86eb194eb2bbf7d222474;p=tahoe-lafs%2Ftahoe-lafs.git web/info.py: fix 'Check This Object' link, for files it was checking the parent directory by mistake --- diff --git a/src/allmydata/web/info.py b/src/allmydata/web/info.py index df4c5250..ff03dadf 100644 --- 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"),