[Zope-CVS] CVS: Products/Ape/lib/apelib/zope2 - ofsserial.py:1.13

Shane Hathaway shane at zope.com
Fri Mar 26 10:52:50 EST 2004


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

Modified Files:
	ofsserial.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/zope2/ofsserial.py 1.12 => 1.13 ===
--- Products/Ape/lib/apelib/zope2/ofsserial.py:1.12	Thu Mar 25 22:31:56 2004
+++ Products/Ape/lib/apelib/zope2/ofsserial.py	Fri Mar 26 10:52:49 2004
@@ -111,7 +111,7 @@
                 base = aq_base(obj._getOb(id))
             oid = event.obj_db.identify(base)
             if oid is None:
-                oid = event.conf.oid_gen.new_oid(event, id, True)
+                oid = event.obj_db.new_oid()
             event.referenced(id, base, True, oid)
             # No need to pass classification.
             state.append((id, oid, None))




More information about the Zope-CVS mailing list