SVN: Zope/branches/davisagli-exclude-parent-pointers-from-export/src/OFS/ObjectManager.py use non-optimistic savepoints; thx elro & hannosch

David Glick <[email protected]>
Newsgroups gmane.comp.web.zope.cvs
Message-ID <[email protected]>
Log message for revision 120869:
  use non-optimistic savepoints; thx elro & hannosch

Changed:
  U   Zope/branches/davisagli-exclude-parent-pointers-from-export/src/OFS/ObjectManager.py

-=-
Modified: Zope/branches/davisagli-exclude-parent-pointers-from-export/src/OFS/ObjectManager.py
===================================================================
--- Zope/branches/davisagli-exclude-parent-pointers-from-export/src/OFS/ObjectManager.py	2011-03-11 15:16:26 UTC (rev 120868)
+++ Zope/branches/davisagli-exclude-parent-pointers-from-export/src/OFS/ObjectManager.py	2011-03-11 15:39:28 UTC (rev 120869)
@@ -589,11 +589,11 @@
         ob = aq_base(ob)
         parent = getattr(ob, '__parent__', _marker)
         if parent is not _marker:
-            sp = transaction.savepoint(True)
+            sp = transaction.savepoint()
             del ob.__parent__
             # create a savepoint so that the export includes the version
             # without a __parent__ pointer
-            transaction.savepoint(True)
+            transaction.savepoint()
         try:
             if toxml:
                 exportXML(ob._p_jar, ob._p_oid, f)

_______________________________________________
Zope-Checkins maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-checkins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.