mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-29 17:28:53 +00:00
0d5dc51617
* stop using IURI as an adapter * pass cap strings around instead of URI instances * move filenode/dirnode creation duties from Client to new NodeMaker class * move other Client duties to KeyGenerator, SecretHolder, History classes * stop passing Client reference to dirnode/filenode constructors - pass less-powerful references instead, like StorageBroker or Uploader * always create DirectoryNodes by wrapping a filenode (mutable for now) * remove some specialized mock classes from unit tests Detailed list of changes (done one at a time, then merged together) always pass a string to create_node_from_uri(), not an IURI instance always pass a string to IFilesystemNode constructors, not an IURI instance stop using IURI() as an adapter, switch on cap prefix in create_node_from_uri() client.py: move SecretHolder code out to a separate class test_web.py: hush pyflakes client.py: move NodeMaker functionality out into a separate object LiteralFileNode: stop storing a Client reference immutable Checker: remove Client reference, it only needs a SecretHolder immutable Upload: remove Client reference, leave SecretHolder and StorageBroker immutable Repairer: replace Client reference with StorageBroker and SecretHolder immutable FileNode: remove Client reference mutable.Publish: stop passing Client mutable.ServermapUpdater: get StorageBroker in constructor, not by peeking into Client reference MutableChecker: reference StorageBroker and History directly, not through Client mutable.FileNode: removed unused indirection to checker classes mutable.FileNode: remove Client reference client.py: move RSA key generation into a separate class, so it can be passed to the nodemaker move create_mutable_file() into NodeMaker test_dirnode.py: stop using FakeClient mockups, use NoNetworkGrid instead. This simplifies the code, but takes longer to run (17s instead of 6s). This should come down later when other cleanups make it possible to use simpler (non-RSA) fake mutable files for dirnode tests. test_mutable.py: clean up basedir names client.py: move create_empty_dirnode() into NodeMaker dirnode.py: get rid of DirectoryNode.create remove DirectoryNode.init_from_uri, refactor NodeMaker for customization, simplify test_web's mock Client to match stop passing Client to DirectoryNode, make DirectoryNode.create_with_mutablefile the normal DirectoryNode constructor, start removing client from NodeMaker remove Client from NodeMaker move helper status into History, pass History to web.Status instead of Client test_mutable.py: fix minor typo |
||
---|---|---|
.. | ||
__init__.py | ||
bench_dirnode.py | ||
check_grid.py | ||
check_load.py | ||
check_memory.py | ||
check_speed.py | ||
common_util.py | ||
common_web.py | ||
common.py | ||
figleaf.excludes | ||
no_network.py | ||
test_backupdb.py | ||
test_base62.py | ||
test_checker.py | ||
test_cli.py | ||
test_client.py | ||
test_codec.py | ||
test_consolidate.py | ||
test_crawler.py | ||
test_deepcheck.py | ||
test_dirnode.py | ||
test_download.py | ||
test_encode.py | ||
test_filenode.py | ||
test_hashtree.py | ||
test_helper.py | ||
test_immutable.py | ||
test_introducer.py | ||
test_iputil.py | ||
test_keygen.py | ||
test_mutable.py | ||
test_netstring.py | ||
test_nevow.py | ||
test_no_network.py | ||
test_node.py | ||
test_observer.py | ||
test_provisioning.py | ||
test_repairer.py | ||
test_runner.py | ||
test_stats.py | ||
test_storage.py | ||
test_system.py | ||
test_upload.py | ||
test_uri.py | ||
test_util.py | ||
test_web.py | ||
trial_figleaf.py |