[Zope-CVS] CVS: Products/PluggableAuthService -
PluggableAuthService.py:1.29.2.1.2.2
Sidnei da Silva
sidnei at enfoldsystems.com
Tue Aug 16 16:32:19 EDT 2005
Update of /cvs-repository/Products/PluggableAuthService
In directory cvs.zope.org:/tmp/cvs-serv20931
Modified Files:
Tag: sidnei-challenge-protocol-chooser
PluggableAuthService.py
Log Message:
- Don't break if IChallengeProtocolChoose is not a registered plugin type
=== Products/PluggableAuthService/PluggableAuthService.py 1.29.2.1.2.1 => 1.29.2.1.2.2 ===
--- Products/PluggableAuthService/PluggableAuthService.py:1.29.2.1.2.1 Sat Aug 13 00:34:32 2005
+++ Products/PluggableAuthService/PluggableAuthService.py Tue Aug 16 16:31:48 2005
@@ -995,7 +995,14 @@
# Find valid protocols for this request type
valid_protocols = []
- choosers = plugins.listPlugins( IChallengeProtocolChooser )
+ choosers = []
+ try:
+ choosers = plugins.listPlugins( IChallengeProtocolChooser )
+ except KeyError:
+ # Work around the fact that old instances might not have
+ # IChallengeProtocolChooser registered with the
+ # PluginRegistry.
+ pass
for chooser_id, chooser in choosers:
choosen = chooser.chooseProtocols(request)
More information about the Zope-CVS
mailing list