From a00bde050bc3362054298279e7eb2f830f7d3b8c Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@lothar.com>
Date: Fri, 15 Jun 2007 02:34:24 -0700
Subject: [PATCH] webish: when mounting a shared directory, don't automatically
 move to it

---
 src/allmydata/webish.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/allmydata/webish.py b/src/allmydata/webish.py
index 618c34b0..ffa0fa2e 100644
--- a/src/allmydata/webish.py
+++ b/src/allmydata/webish.py
@@ -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:
-- 
2.45.2