[Zope-Checkins] SVN: Zope/trunk/src/OFS/ObjectManager.py More fail-safe Products.meta_types check

Hanno Schlichting hannosch at hannosch.eu
Thu Aug 5 14:31:59 EDT 2010


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)
 



More information about the Zope-Checkins mailing list