[Zope-CVS] CVS: Products/Ape/lib/apelib/zodb3 - serializers.py:1.10

Shane Hathaway shane at zope.com
Fri Mar 26 10:53:20 EST 2004


Update of /cvs-repository/Products/Ape/lib/apelib/zodb3
In directory cvs.zope.org:/tmp/cvs-serv22823/lib/apelib/zodb3

Modified Files:
	serializers.py 
Log Message:
Simplified OID generation.

The complexity existed to support path-based OIDs, but Ape no longer
needs path-based OIDs.


=== Products/Ape/lib/apelib/zodb3/serializers.py 1.9 => 1.10 ===
--- Products/Ape/lib/apelib/zodb3/serializers.py:1.9	Sat Mar 20 01:34:25 2004
+++ Products/Ape/lib/apelib/zodb3/serializers.py	Fri Mar 26 10:52:49 2004
@@ -104,7 +104,7 @@
             if is_persistent(value):
                 oid = event.obj_db.identify(value)
                 if oid is None:
-                    oid = event.conf.oid_gen.new_oid(event, key, True)
+                    oid = event.obj_db.new_oid()
                 event.referenced(key, value, False, oid)
                 # No need to pass classification.
                 refs.append((key, oid, None))




More information about the Zope-CVS mailing list