Made a proper Config object
commitf6788b9d1d3ec13585a9cc708fe9c8c4e4cbd928
authorThomas Leonard <talex5@gmail.com>
Sat, 15 Jan 2011 16:14:10 +0000 (15 16:14 +0000)
committerThomas Leonard <talex5@gmail.com>
Sat, 15 Jan 2011 16:14:10 +0000 (15 16:14 +0000)
treed9600b3c199c1652641ed23afbe60912f33d9f74
parent4ecc72bad15261f0895f1404ed3df51f485e2ac7
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