ctx.fillSlots("check", check)
# build the base of the uri_link link url
- uri_link = "/uri/" + urllib.quote(target.get_uri().replace("/", "!"))
+ uri_link = "/uri/" + urllib.quote(target.get_uri())
assert (IFileNode.providedBy(target)
or IDirectoryNode.providedBy(target)
if segments[0] == "uri":
if len(segments) == 1 or segments[1] == '':
if "uri" in req.args:
- uri = req.args["uri"][0].replace("/", "!")
+ uri = req.args["uri"][0]
there = url.URL.fromContext(ctx)
there = there.clear("uri")
there = there.child("uri").child(uri)
return URIPOSTHandler(), ()
if len(segments) < 2:
return rend.NotFound
- uri = segments[1].replace("!", "/")
+ uri = segments[1]
d = defer.maybeDeferred(client.create_node_from_uri, uri)
d.addCallback(lambda node: VDrive(node, "from-uri"))
d.addCallback(lambda vd: vd.locateChild(ctx, segments[2:]))
# TODO: emit a start.html that explains that we don't know
# how to create a suitable URL
if private_uri:
- private_uri = private_uri.replace("/","!")
link_to_private_uri = "View <a href=\"%s/uri/%s\">your personal private non-shared filestore</a>." % (base_url, private_uri)
fields = {"link_to_private_uri": link_to_private_uri,
"base_url": base_url,