From: Brian Warner Date: Wed, 17 Jan 2007 02:55:53 +0000 (-0700) Subject: webish: more verifierid-to-uri transition X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~365 X-Git-Url: https://git.rkrishnan.org/vdrive/%22news.html/simplejson/configuration.rst?a=commitdiff_plain;h=3fb37ae246b08fedb9476f1c87967649d87bc02b;p=tahoe-lafs%2Ftahoe-lafs.git webish: more verifierid-to-uri transition --- diff --git a/src/allmydata/web/directory.xhtml b/src/allmydata/web/directory.xhtml index 38a09c9c..a290d1fe 100644 --- a/src/allmydata/web/directory.xhtml +++ b/src/allmydata/web/directory.xhtml @@ -17,13 +17,13 @@ Filename Type - fileid + URI - + diff --git a/src/allmydata/webish.py b/src/allmydata/webish.py index 70c1c737..d0569c9c 100644 --- a/src/allmydata/webish.py +++ b/src/allmydata/webish.py @@ -121,7 +121,7 @@ class Directory(rend.Page): dl_uri_url = url.root.child("download_uri").child(uri) # add a filename= query argument to give it a Content-Type dl_uri_url = dl_uri_url.add("filename", name) - ctx.fillSlots("fileid", T.a(href=dl_uri_url)[html.escape(uri)]) + ctx.fillSlots("uri", T.a(href=dl_uri_url)[html.escape(uri)]) # this creates a button which will cause our child__delete method # to be invoked, which deletes the file and then redirects the @@ -139,7 +139,7 @@ class Directory(rend.Page): ctx.fillSlots("filename", T.a(href=subdir_url)[html.escape(name)]) ctx.fillSlots("type", "DIR") - ctx.fillSlots("fileid", "-") + ctx.fillSlots("uri", "-") ctx.fillSlots("delete", "-") return ctx.tag