CVS: Products/PluggableAuthService - PluggableAuthService.py:1.29.2.1.2.2
Sidnei da Silva <[email protected]>
| Newsgroups | gmane.comp.web.zope.public-cvs |
|---|---|
| Message-ID | <[email protected]> |
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)
_______________________________________________
Zope-CVS maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs
Zope CVS instructions: http://dev.zope.org/CVS