I wish zope.transaction or something that replaced it would return a
Session subclass that replaces .commit and .rollback with calls to
transaction.commit and transaction.abort rather than raising an
exception with one and silently doing the wrong thing with the other :-/
Chris
On 26/06/2013 11:54, Pau Tallada wrote:
> Ok, that was my fault.
>
> I was calling rollback() on a sqla.orm.session, instead of calling
> transaction.abort()
> Although the documentation only forbids calling commit, it does not say
> anything about rolling back an individual session :(
>
> Thanks!
>
> Pau.
>
> 2013/6/25 Michael Bayer <
mik...@zzzcomputing.com
> <mailto:
mik...@zzzcomputing.com>>
>
> looks like a zope.transaction issue to me, or at least one where
> they'd have to show me how they need to use the Session. They seem
> to be calling upon session.transaction.prepare() directly at a time
> when that session.transaction is no longer associated with the
> parent session. You'd need to take it up with the zope.transaction
> folks first.
>
>
>
>
> On Jun 25, 2013, at 5:49 AM, Pau Tallada <
tal...@pic.es
>> <mailto:
mik...@zzzcomputing.com>>
>>
>> you'd have to illustrate a working example of the code that
>> causes that.
>>
>>
>> On Feb 20, 2013, at 6:18 AM, Christian D�molis
>> <
christia...@gmail.com
>>> <mailto:
sqlalchemy+...@googlegroups.com>.
>>> To post to this group, send email to
>>>
sqlal...@googlegroups.com <mailto:
sqlal...@googlegroups.com>.
>> <mailto:
sqlalchemy%2Bunsu...@googlegroups.com>.
>> To post to this group, send email to
>>
sqlal...@googlegroups.com <mailto:
sqlal...@googlegroups.com>.
>> Pau Tallada Cresp�
>> Dep. d'Astrof�sica i Cosmologia
>> Port d'Informaci� Cient�fica (PIC)
>> Tel:
+34 93 586 8233 <tel:%2B34%2093%20586%208233>
>> ----------------------------------
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "sqlalchemy" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to
sqlalchemy+...@googlegroups.com
>> <mailto:
sqlalchemy+...@googlegroups.com>.
>> <mailto:
sqlal...@googlegroups.com>.
> <mailto:
sqlalchemy%2Bunsu...@googlegroups.com>.
> <mailto:
sqlal...@googlegroups.com>.
> Pau Tallada Cresp�
> Dep. d'Astrof�sica i Cosmologia
> Port d'Informaci� Cient�fica (PIC)
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit
http://www.symanteccloud.com
> ______________________________________________________________________
--
Simplistix - Content Management, Batch Processing & Python Consulting
-
http://www.simplistix.co.uk