]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
directories: rename internal data member download_cache to download_cache_dirman...
authorZooko O'Whielacronx <zooko@zooko.com>
Tue, 7 Jul 2009 14:34:04 +0000 (07:34 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Tue, 7 Jul 2009 14:34:04 +0000 (07:34 -0700)
src/allmydata/client.py

index 8c1dc21fb12c3e650bc34494bae366e2f1114bc9..5df1acbc83ba40c0f0371d6624e650779c1335db 100644 (file)
@@ -230,8 +230,8 @@ class Client(node.Node, pollmixin.PollMixin):
         self.add_service(Uploader(helper_furl, self.stats_provider))
         download_cachedir = os.path.join(self.basedir,
                                          "private", "cache", "download")
-        self.download_cache = cachedir.CacheDirectoryManager(download_cachedir)
-        self.download_cache.setServiceParent(self)
+        self.download_cache_dirman = cachedir.CacheDirectoryManager(download_cachedir)
+        self.download_cache_dirman.setServiceParent(self)
         self.add_service(Downloader(self.stats_provider))
         self.init_stub_client()
 
@@ -429,7 +429,7 @@ class Client(node.Node, pollmixin.PollMixin):
                     node = LiteralFileNode(u, self) # LIT
                 else:
                     key = base32.b2a(u.storage_index)
-                    cachefile = self.download_cache.get_file(key)
+                    cachefile = self.download_cache_dirman.get_file(key)
                     node = FileNode(u, self, cachefile) # CHK
             else:
                 assert IMutableFileURI.providedBy(u), u