[Zope3-checkins] CVS: Zope3/src/zodb/code - class_.py:1.16
Jim Fulton
jim@zope.com
Sat, 3 May 2003 12:29:38 -0400
Update of /cvs-repository/Zope3/src/zodb/code
In directory cvs.zope.org:/tmp/cvs-serv23101/src/zodb/code
Modified Files:
class_.py
Log Message:
No longer need to treat the __implements__ attribute sepcially.
Class/instance attribute differences are now handled by the
interface framework.
=== Zope3/src/zodb/code/class_.py 1.15 => 1.16 ===
--- Zope3/src/zodb/code/class_.py:1.15 Thu May 1 15:34:59 2003
+++ Zope3/src/zodb/code/class_.py Sat May 3 12:29:37 2003
@@ -236,6 +236,7 @@
# GHOST instead of UPTODATE. See __getnewargs__().
def __new__(meta, name, bases, dict, state=UPTODATE):
+
if "__dict__" in dict:
del dict["__dict__"]
cls = super(PersistentClassMetaClass, meta).__new__(
@@ -273,7 +274,9 @@
# and its instances have separate versions.
extend_meth("__getstate__", meta.__getstate__)
extend_meth("__setstate__", meta.__setstate__)
- extend_attr("__implements__", meta.__implements__)
+
+ # Don't need this with interface geddon
+ # extend_attr("__implements__", meta.__implements__)
cls._pc_init = True
return cls