[Zope3-checkins] CVS: ZODB4/Persistence - Class.py:1.2
Jeremy Hylton
jeremy@zope.com
Thu, 19 Sep 2002 14:23:47 -0400
Update of /cvs-repository/ZODB4/Persistence
In directory cvs.zope.org:/tmp/cvs-serv22765
Modified Files:
Class.py
Log Message:
Add __getnewargs__() method to PersistentMetaClass.
=== ZODB4/Persistence/Class.py 1.1 => 1.2 ===
--- ZODB4/Persistence/Class.py:1.1 Thu Jul 18 18:41:57 2002
+++ ZODB4/Persistence/Class.py Thu Sep 19 14:23:46 2002
@@ -221,6 +221,12 @@
# reactivate
cls._p_state = UPTODATE
+ # Methods below here are not wrapped to be class-only attributes.
+ # They are available as methods of classes using this metaclass.
+
+ def __getnewargs__(cls):
+ return cls.__name__, cls.__bases__, {}
+
class PersistentBaseClass(Persistent):
__metaclass__ = PersistentMetaClass