[Zope-CVS] CVS: Products/Ape/lib/apelib/zope2/setup -
patches.py:1.1.10.1 TmpStore.py:NONE
Shane Hathaway
shane at zope.com
Wed Feb 25 22:08:57 EST 2004
Update of /cvs-repository/Products/Ape/lib/apelib/zope2/setup
In directory cvs.zope.org:/tmp/cvs-serv4850/lib/apelib/zope2/setup
Modified Files:
Tag: ape-fs-oid-branch
patches.py
Removed Files:
Tag: ape-fs-oid-branch
TmpStore.py
Log Message:
Fixed bugs. All automated tests pass with the new filesystem OID code.
With this working, the _setOb patch became unnecessary. The TmpStore
monkey patch is also obsolete. Only one patch remains, and it's not
much of a problem. Yay!
=== Products/Ape/lib/apelib/zope2/setup/patches.py 1.1 => 1.1.10.1 ===
--- Products/Ape/lib/apelib/zope2/setup/patches.py:1.1 Wed Apr 9 23:09:59 2003
+++ Products/Ape/lib/apelib/zope2/setup/patches.py Wed Feb 25 22:08:57 2004
@@ -35,30 +35,5 @@
CopySource._getCopy = _getCopy
-def applySetObPatch():
- # Fall back to copying when move/rename is not possible.
- def _setOb(self, id, object):
- if object._p_oid is not None:
- if (getattr(self, '_use_fixed_oids_', 0)
- or (object._p_jar is not None
- and object._p_jar is not self._p_jar)):
- old = object
- # Forget changes to the original object
- old._p_changed = 0
- object = copyOf(object)
- setattr(self, id, object)
-
- from OFS.ObjectManager import ObjectManager
- ObjectManager._setOb = _setOb
-
-
-def applyTmpStorePatch():
- from TmpStore import TmpStore as patched_TmpStore
- import ZODB.TmpStore
- ZODB.TmpStore.TmpStore = patched_TmpStore
-
def applyPatches():
applyCopySupportPatch()
- applySetObPatch()
- applyTmpStorePatch()
-
=== Removed File Products/Ape/lib/apelib/zope2/setup/TmpStore.py ===
More information about the Zope-CVS
mailing list