]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
webish: when mounting a shared directory, don't automatically move to it
authorBrian Warner <warner@lothar.com>
Fri, 15 Jun 2007 09:34:24 +0000 (02:34 -0700)
committerBrian Warner <warner@lothar.com>
Fri, 15 Jun 2007 09:34:24 +0000 (02:34 -0700)
src/allmydata/webish.py

index 618c34b092526cba49c584f54dcf6836fb156cf5..ffa0fa2e6427d1279abccfb54c1865972d311eb1 100644 (file)
@@ -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: