]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
CLI: make 'tahoe webopen' use the 'tahoe:' alias properly, instead of the old --dir...
authorBrian Warner <warner@allmydata.com>
Tue, 3 Jun 2008 00:55:54 +0000 (17:55 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 3 Jun 2008 00:55:54 +0000 (17:55 -0700)
src/allmydata/scripts/cli.py

index 8e0b5fc6b281f763c006fd6581e6f6f1338bada5..ccbb78bef93b397f749523c4c437a1893b89f4a9 100644 (file)
@@ -321,7 +321,8 @@ def webopen(config, stdout, stderr):
     nodeurl = config['node-url']
     if nodeurl[-1] != "/":
         nodeurl += "/"
-    url = nodeurl + "uri/%s/" % urllib.quote(config['dir-cap'])
+    root_cap = config.aliases["tahoe"]
+    url = nodeurl + "uri/%s/" % urllib.quote(root_cap)
     if config['vdrive_pathname']:
         url += urllib.quote(config['vdrive_pathname'])
     webbrowser.open(url)