Added Handler.confirm_keys to replace confirm_trust_keys
commit84fb7a2ebf6d1899b9bee36219b8f4ce5761b411
authorThomas Leonard <talex5@gmail.com>
Sun, 19 Jul 2009 08:36:40 +0000 (19 09:36 +0100)
committerThomas Leonard <talex5@gmail.com>
Sun, 19 Jul 2009 13:24:20 +0000 (19 14:24 +0100)
treeef2919ab50a549b1a706c6de0de1a773b507669f
parent07e0d1b24c080f41c50ea5fc25c279dc62fe515d
Added Handler.confirm_keys to replace confirm_trust_keys

This method takes a PendingFeed object rather than separate arguments, allowing
extra information to be provided without changing the API in future. It also takes
a function for fetching extra information about a key.

To support both legacy callers and legacy subclasses, the confirm_keys method
dispatches to confirm_import_feed for new-style classes or to confirm_trust_keys
for old-style ones. If you have a custom handler that overrides confirm_trust_keys,
you should now also override confirm_import_feed. You can continue to override
confirm_trust_keys if you want to support older callers.
zeroinstall/injector/fetch.py
zeroinstall/injector/handler.py