From: Zooko O'Whielacronx Date: Tue, 18 Dec 2007 01:35:59 +0000 (-0700) Subject: do not put a link from the welcoXme page to the start.html if there is not a private... X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/%22doc.html/%3C?a=commitdiff_plain;h=36e8e4e5616f967b09e67abe259626e9fa6eb097;p=tahoe-lafs%2Ftahoe-lafs.git do not put a link from the welcoXme page to the start.html if there is not a private directory --- diff --git a/src/allmydata/webish.py b/src/allmydata/webish.py index 0832f61c..ba1d71ea 100644 --- a/src/allmydata/webish.py +++ b/src/allmydata/webish.py @@ -1336,7 +1336,8 @@ class Root(rend.Page): def render_private_vdrive(self, ctx, data): basedir = IClient(ctx).basedir start_html = os.path.abspath(os.path.join(basedir, "private", "start.html")) - if os.path.exists(start_html): + basedir = IClient(ctx).basedir + if os.path.exists(start_html) and os.path.exists(os.path.join(basedir, "private", "my_private_dir.cap")): return T.p["To view your personal private non-shared filestore, ", "use this browser to open the following file from ", "your local filesystem:",