From e196a782fc6deaf6ef770108e380fac11970e2de Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Mon, 5 Nov 2012 15:59:12 +0100 Subject: [PATCH] Mount using the correct WAPI --- pytahoe/__init__.py | 2 +- test.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pytahoe/__init__.py b/pytahoe/__init__.py index 09fb72a..e23f2d7 100644 --- a/pytahoe/__init__.py +++ b/pytahoe/__init__.py @@ -168,7 +168,7 @@ class Directory: if fs_available == False: raise DependencyException("Could not mount the directory because the 'fs' module was not found.") - fs = TahoeLAFS(self.uri) + fs = TahoeLAFS(self.uri, webapi=self.filesystem.url) try: return fuse.mount(fs, mountpoint) diff --git a/test.py b/test.py index a34dd5d..dcc600f 100644 --- a/test.py +++ b/test.py @@ -1,7 +1,7 @@ import pytahoe -fs = pytahoe.Filesystem("http://localhost:3456/") -print fs +#fs = pytahoe.Filesystem("http://localhost:3456/") +#print fs #tdir = fs.Directory("URI:DIR2:jjw572jvowd473fo2n7rw6uiai:hloglrouhwgjpubcpyq5nrb4ezyijdfiboe3hquadgzjrmkdikxa") #print tdir #for name, item in tdir.children.iteritems(): @@ -9,3 +9,6 @@ print fs #print fs.create_directory().mount("test") #print fs.upload("test.py") + +fs = pytahoe.Filesystem("http://tahoe.ccnmtl.columbia.edu/") +fs.Directory("URI:DIR2:cbk47f5lybaj5qh6bm6eedezwe:m525plntx47u44xvf44r6rliec3gp6yeyio7olndibtke75zb6fa").mount("test")