Re: requests and transactions

2011-04-01 Thread Brian Sutherland
On Fri, Apr 01, 2011 at 07:33:44AM +0100, Chris Withers wrote: > On 01/04/2011 07:23, Brian Sutherland wrote: >> On Thu, Mar 31, 2011 at 04:49:38PM +0100, Chris Withers wrote: >>> - isDoomed support: I guess this could be added to the example; can >>> someone explain when isDoomed is True and what

Re: requests and transactions

2011-04-01 Thread Carlos de la Guardia
> Anyone know why isDoomed exists rather than whatever dooms the transaction > just raising an exception? > http://zodb-documentation.readthedocs.org/en/latest/transactions.html#dooming-a-transaction Carlos de la Guardia -- You received this message because you are subscribed to the Google Grou

Re: requests and transactions

2011-03-31 Thread Chris Withers
On 01/04/2011 07:23, Brian Sutherland wrote: On Thu, Mar 31, 2011 at 04:49:38PM +0100, Chris Withers wrote: - isDoomed support: I guess this could be added to the example; can someone explain when isDoomed is True and what happens if that transaction is committed instead of being manually aborte

Re: requests and transactions

2011-03-31 Thread Brian Sutherland
On Thu, Mar 31, 2011 at 04:49:38PM +0100, Chris Withers wrote: > - isDoomed support: I guess this could be added to the example; can > someone explain when isDoomed is True and what happens if that > transaction is committed instead of being manually aborted? If isDoomed is True the transactio

Re: requests and transactions

2011-03-31 Thread Chris Withers
On 31/03/2011 17:17, Chris McDonough wrote: Related: Any chance of a RequestFinished event to subscribe to rather than having to (rather convolutedly) subscribe to NewRequest just so your handler can call add_finished_callback? ...in which case, I'd dearly love that RequestFinished event! Roc

Re: requests and transactions

2011-03-31 Thread Chris McDonough
On Thu, 2011-03-31 at 16:49 +0100, Chris Withers wrote: > On 31/03/2011 16:09, Chris Withers wrote: > > What's the preferred way of working with transactions now, be they just > > SQLAlchemy transactions or, more likely, a bunch of things tied together > > by a transaction from the 'transaction' pa

Re: requests and transactions

2011-03-31 Thread Chris Withers
On 31/03/2011 16:09, Chris Withers wrote: What's the preferred way of working with transactions now, be they just SQLAlchemy transactions or, more likely, a bunch of things tied together by a transaction from the 'transaction' package? repoze.tm2 seems to be the "old skool" BFG way of doing thin