Made a proper Config object
commit1c36200cbc118caf11ba77812bd2304634e08cee
authorThomas Leonard <talex5@gmail.com>
Sat, 15 Jan 2011 16:14:10 +0000 (15 16:14 +0000)
committerThomas Leonard <talex5@gmail.com>
Mon, 17 Jan 2011 08:34:49 +0000 (17 08:34 +0000)
tree0217d856244d15e0e397b8ec656cf5c1ca67492e
parent4b818be393123f9605c702e76f1fe609023666ea
Made a proper Config object

This now holds the global options and lazily creates the various other
required objects (iface_cache, etc). It is passed around as an argument
rather than being a singleton, although there is a method to get a singleton to
help with migration.

TODO:
- unittests
- backwards compat
20 files changed:
tests/basetest.py
zeroinstall/cmd/__init__.py
zeroinstall/cmd/add_feed.py
zeroinstall/cmd/config.py
zeroinstall/cmd/download.py
zeroinstall/cmd/import.py
zeroinstall/cmd/list.py
zeroinstall/cmd/remove_feed.py
zeroinstall/cmd/run.py
zeroinstall/cmd/select.py
zeroinstall/cmd/update.py
zeroinstall/injector/cli.py
zeroinstall/injector/iface_cache.py
zeroinstall/injector/model.py
zeroinstall/injector/policy.py
zeroinstall/injector/reader.py
zeroinstall/injector/run.py
zeroinstall/injector/selections.py
zeroinstall/injector/solver.py
zeroinstall/injector/writer.py