mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 08:25:35 +00:00
webish: when mounting a shared directory, don't automatically move to it
This commit is contained in:
parent
2066e8ddfc
commit
a00bde050b
@ -280,7 +280,7 @@ class Directory(rend.Page):
|
||||
|
||||
def mount(self, name, furl):
|
||||
d = self._dirnode.attach_shared_directory(name, furl)
|
||||
d.addCallback(lambda done: url.here.child(name))
|
||||
#d.addCallback(lambda done: url.here.child(name))
|
||||
return d
|
||||
|
||||
def child__delete(self, ctx):
|
||||
@ -288,9 +288,7 @@ class Directory(rend.Page):
|
||||
args = inevow.IRequest(ctx).args
|
||||
name = args["name"][0]
|
||||
d = self._dirnode.remove(name)
|
||||
def _deleted(res):
|
||||
return url.here.up()
|
||||
d.addCallback(_deleted)
|
||||
d.addCallback(lambda done: url.here.up())
|
||||
return d
|
||||
|
||||
class WebDownloadTarget:
|
||||
|
Loading…
x
Reference in New Issue
Block a user