[Zope3-checkins] CVS: Zope3/src/zodb/code - class_.py:1.21.4.3

Jim Fulton jim at zope.com
Fri Jan 30 11:16:52 EST 2004


Update of /cvs-repository/Zope3/src/zodb/code
In directory cvs.zope.org:/tmp/cvs-serv9987/src/zodb/code

Modified Files:
      Tag: zope3-zodb3-devel-branch
	class_.py 
Log Message:
Changed to skip _p_ attrs when copying data from a temporary class
refelecting new code.


=== Zope3/src/zodb/code/class_.py 1.21.4.2 => 1.21.4.3 ===
--- Zope3/src/zodb/code/class_.py:1.21.4.2	Fri Jan 23 13:25:13 2004
+++ Zope3/src/zodb/code/class_.py	Fri Jan 30 11:16:50 2004
@@ -418,12 +418,12 @@
         
         def getkeys(cls):
             L = [n for n in cls.__dict__.keys()
-                 if not (n.startswith("__") and n.endswith("__"))]
+                 if (not (n.startswith("__") and n.endswith("__"))
+                     and not n.startswith("_p_"))
+                 ]
             d = {}
             for elt in L:
                 d[elt] = True
-            del d["_p_oid"]
-            del d["_p_jar"]
             return d
         oldnames = getkeys(cls)
         newnames = getkeys(acls)




More information about the Zope3-Checkins mailing list