CLI: make 'tahoe webopen' use the 'tahoe:' alias properly, instead of the old --dir-cap option

This commit is contained in:
Brian Warner 2008-06-02 17:55:54 -07:00
parent 3e8d58767f
commit beb502ac18

@ -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)