Log message for revision 115507:
  More fail-safe Products.meta_types check

Changed:
  U   Zope/trunk/src/OFS/ObjectManager.py

-=-
Modified: Zope/trunk/src/OFS/ObjectManager.py
===================================================================
--- Zope/trunk/src/OFS/ObjectManager.py 2010-08-05 18:29:40 UTC (rev 115506)
+++ Zope/trunk/src/OFS/ObjectManager.py 2010-08-05 18:31:59 UTC (rev 115507)
@@ -221,7 +221,7 @@
         external_candidates.extend(list(_pmt))
 
         # Look at all globally visible meta types.
-        for entry in Products.meta_types:
+        for entry in getattr(Products, 'meta_types', ()):
             if ( (interfaces is not None) or (entry.get("visibility", 
None)=="Global") ):
                 external_candidates.append(entry)
 

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
https://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to