]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
UploadResults: store IServers internally, but still return serverids
authorBrian Warner <warner@lothar.com>
Tue, 22 May 2012 04:18:25 +0000 (21:18 -0700)
committerBrian Warner <warner@lothar.com>
Tue, 22 May 2012 04:18:25 +0000 (21:18 -0700)
commit843739486a71a0f3cbf534dd774950ae7928e867
tree657eae5a675b260a5c23f678d6c678d4ac9e87cf
parent97a1eb6ebf682e84627e6c74e6dd64e72a7f48e7
UploadResults: store IServers internally, but still return serverids

This stores IDisplayableServer-providing instances (StubServers or
NativeStorageServers) in the .servermap and .sharemap dictionaries. But
get_servermap()/get_sharemap() still return data structures with
serverids, not IServers, by translating their data on the way out. This
lets us put off changing the callers for a little bit longer.
src/allmydata/immutable/upload.py
src/allmydata/test/test_helper.py