[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py fixed IndexError: tuple index out of range

Dominik Huber dominik.huber at projekt01.ch
Tue Jun 22 13:07:10 EDT 2004


Log message for revision 25938:
fixed IndexError: tuple index out of range


-=-
Modified: Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py	2004-06-22 16:29:47 UTC (rev 25937)
+++ Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py	2004-06-22 17:05:01 UTC (rev 25938)
@@ -354,7 +354,7 @@
         adapters = []
         for reg in service.registrations():
             # Only grab the adapters for which this interface is required
-            if reg.required[0] is not None and iface not in reg.required:
+            if reg.required and reg.required[0] is not None and iface not in reg.required:
                 continue
             factory = _getRealFactory(reg.value)
             path = getPythonPath(factory)




More information about the Zope3-Checkins mailing list