Re: [Zope-Coders] Re: SVN: Zope/trunk/lib/python/Testing/ZopeTestCase/ transaction.commit(1) is deprecated in favor of transaction.savepoint().

2005-11-04 Thread Stefan H. Holek
Thank you for the clarification, Tim. On 3. Nov 2005, at 16:22, Tim Peters wrote: The full deprecation msg spells it out in more detail: subtransactions are deprecated; instead of transaction.commit (1), use transaction.savepoint(optimistic=True) in contexts where a subtransaction

Re: [Zope-Coders] Re: SVN: Zope/trunk/lib/python/Testing/ZopeTestCase/ transaction.commit(1) is deprecated in favor of transaction.savepoint().

2005-11-03 Thread Tim Peters
>>> Log message for revision 39807: >>> transaction.commit(1) is deprecated in favor of transaction.savepoint(). [Tres Seaver] >> This likely needs to be 'savepoint(optimistic=True)' (see collector >> #1860 for rationale). [Stefan H. Holek] > Perhaps. However, these tests specifically check int

Re: [Zope-Coders] Re: SVN: Zope/trunk/lib/python/Testing/ZopeTestCase/ transaction.commit(1) is deprecated in favor of transaction.savepoint().

2005-11-03 Thread Stefan H. Holek
Perhaps. However, these tests specifically check interactions between persistent objects, their attributes, and transaction commit/abort. If things break there, I want to know about it. Stefan On 3. Nov 2005, at 01:10, Tres Seaver wrote: Stefan H. Holek wrote: Log message for revision 39

[Zope-Coders] Re: SVN: Zope/trunk/lib/python/Testing/ZopeTestCase/ transaction.commit(1) is deprecated in favor of transaction.savepoint().

2005-11-02 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stefan H. Holek wrote: > Log message for revision 39807: > transaction.commit(1) is deprecated in favor of transaction.savepoint(). This likely needs to be 'savepoint(optimistic=True)' (see collector #1860 for rationale). Tres. - -- ==

[Zope-Coders] Re: SVN: Zope/trunk/lib/python/Testing/ZopeTestCase/ transaction.commit(1) is deprecated in favor of transaction.savepoint().

2005-11-02 Thread Florent Guillaume
Stefan H. Holek wrote: Log message for revision 39807: transaction.commit(1) is deprecated in favor of transaction.savepoint(). Actually, in favor of transaction.savepoint(optimistic=True). Florent Changed: U Zope/trunk/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt U Zope/trunk/