[Zope-CVS] CVS: Products/BTreeFolder2 - BTreeFolder2.py:1.26

Gary Poster gary at zope.com
Wed Mar 17 17:48:15 EST 2004


Update of /cvs-repository/Products/BTreeFolder2
In directory cvs.zope.org:/tmp/cvs-serv11682

Modified Files:
	BTreeFolder2.py 
Log Message:
Looking at the object's class for the meta_type can lead to problems if the meta_type is assigned per-instance.




=== Products/BTreeFolder2/BTreeFolder2.py 1.25 => 1.26 ===
--- Products/BTreeFolder2/BTreeFolder2.py:1.25	Tue Mar 16 23:05:43 2004
+++ Products/BTreeFolder2/BTreeFolder2.py	Wed Mar 17 17:48:14 2004
@@ -227,7 +227,7 @@
         self._count.change(1)
         # Update the meta type index.
         mti = self._mt_index
-        meta_type = getattr(object.__class__, 'meta_type', None)
+        meta_type = getattr(object, 'meta_type', None)
         if meta_type is not None:
             ids = mti.get(meta_type, None)
             if ids is None:




More information about the Zope-CVS mailing list