[Zodb-checkins] SVN: ZODB/trunk/src/transaction/_transaction.py
Clarified deprecation warning about txn.commit(1): the proper
equivalent
Florent Guillaume
fg at nuxeo.com
Wed Oct 5 10:55:04 EDT 2005
Log message for revision 38766:
Clarified deprecation warning about txn.commit(1): the proper equivalent
now is txn.savepoint(optimistic=True).
Changed:
U ZODB/trunk/src/transaction/_transaction.py
-=-
Modified: ZODB/trunk/src/transaction/_transaction.py
===================================================================
--- ZODB/trunk/src/transaction/_transaction.py 2005-10-05 12:54:36 UTC (rev 38765)
+++ ZODB/trunk/src/transaction/_transaction.py 2005-10-05 14:55:03 UTC (rev 38766)
@@ -362,7 +362,7 @@
elif deprecation_wng:
from ZODB.utils import deprecated37
deprecated37("subtransactions are deprecated; use "
- "transaction.savepoint() instead of "
+ "transaction.savepoint(optimistic=True) instead of "
"transaction.commit(1)")
if self._savepoint2index:
@@ -370,7 +370,7 @@
if subtransaction:
# TODO deprecate subtransactions
- self._subtransaction_savepoint = self.savepoint(1)
+ self._subtransaction_savepoint = self.savepoint(optimistic=True)
return
if self.status is Status.COMMITFAILED:
More information about the Zodb-checkins
mailing list