[Zope-Checkins] CVS: Zope2 - Application.py:1.154.2.1 ObjectManager.py:1.137.4.1

andreas@serenade.digicool.com andreas@serenade.digicool.com
Tue, 26 Jun 2001 09:11:47 -0400


Update of /cvs-repository/Zope2/lib/python/OFS
In directory serenade:/tmp/cvs-serv13256/lib/python/OFS

Modified Files:
      Tag: Zope-2_4-branch
	Application.py ObjectManager.py 
Log Message:
Collector #2335: older products like GadflyDA that did not
use registerClass() were registered but their visibility
flag has not been set  to Global. So these  products did not
appear in the ZMF.



--- Updated File Application.py in package Zope2 --
--- Application.py	2001/06/19 23:21:18	1.154
+++ Application.py	2001/06/26 13:11:47	1.154.2.1
@@ -678,6 +678,7 @@
                     if pname is not None:
                         meta_type['permission']=pname
                     meta_type['product']=productObject.id
+                    meta_type['visibility']='Global'
                     meta_types.append(meta_type)
 
                 for name,method in pgetattr(

--- Updated File ObjectManager.py in package Zope2 --
--- ObjectManager.py	2001/05/30 15:57:31	1.137
+++ ObjectManager.py	2001/06/26 13:11:47	1.137.4.1
@@ -234,6 +234,8 @@
         gmt = []
 
         for entry in Products.meta_types:
+            print entry
+            print entry.get('visibility')
             if interfaces is None:
                 if entry.get("visibility", None) == "Global":
                     gmt.append(entry)