projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e8d587
)
CLI: make 'tahoe webopen' use the 'tahoe:' alias properly, instead of the old --dir...
author
Brian Warner
<warner@allmydata.com>
Tue, 3 Jun 2008 00:55:54 +0000
(17:55 -0700)
committer
Brian Warner
<warner@allmydata.com>
Tue, 3 Jun 2008 00:55:54 +0000
(17:55 -0700)
src/allmydata/scripts/cli.py
patch
|
blob
|
history
diff --git
a/src/allmydata/scripts/cli.py
b/src/allmydata/scripts/cli.py
index 8e0b5fc6b281f763c006fd6581e6f6f1338bada5..ccbb78bef93b397f749523c4c437a1893b89f4a9 100644
(file)
--- a/
src/allmydata/scripts/cli.py
+++ b/
src/allmydata/scripts/cli.py
@@
-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)