[Zope-CVS] CVS: Products/Ape/lib/apelib/zodb3 - connection.py:1.15
Shane Hathaway
shane at zope.com
Fri Jul 23 04:38:05 EDT 2004
Update of /cvs-repository/Products/Ape/lib/apelib/zodb3
In directory cvs.zope.org:/tmp/cvs-serv26116/lib/apelib/zodb3
Modified Files:
connection.py
Log Message:
Ape now supports mapping subclasses. Also revised the config format.
>From CHANGES.txt:
- Ape now supports mapping subclasses. Until now, mappers were
registered for classes but not for all subclasses. Now, a mapper
applies to subclasses as well, unless the configuration file
specifies 'exact-class'.
- Revised the configuration file format for simplification and to
allow mapping subclasses.
Also added PDBSerializer, a wrapper around CompositeSerializer that
launches pdb. It is really handy when you know which
mapper is serializing incorrectly but you don't know why.
=== Products/Ape/lib/apelib/zodb3/connection.py 1.14 => 1.15 ===
--- Products/Ape/lib/apelib/zodb3/connection.py:1.14 Thu Mar 25 23:02:19 2004
+++ Products/Ape/lib/apelib/zodb3/connection.py Fri Jul 23 04:37:34 2004
@@ -135,7 +135,7 @@
raise "Could not load oid %s, pickled data in traceback info may\
contain clues" % (oid)
osio = self._get_osio()
- obj = osio.new_instance(classification)
+ obj = osio.new_instance(oid, classification)
assert obj is not None
obj._p_oid=oid
@@ -160,7 +160,7 @@
if classification:
osio = self._get_osio()
- obj = osio.new_instance(classification)
+ obj = osio.new_instance(oid, classification)
if obj is not None:
obj._p_oid=oid
obj._p_jar=self
More information about the Zope-CVS
mailing list