Le samedi 28 mai 2016 11:50:37 UTC+2, Nicolas Évrard a écrit :
>
> * Fabien Castarède  [2016-05-28 11:27 +0200]: 
> >In a Pyramid web app that use SQLAlchemy I need to work also with a 
> Tryton 
> >DB. With Tryton 3.8 I had implemented a Zope Data Manager for Tryton 
> >backend that I joined to the current transaction of my Pyramid app. Now 
> >with Tryton 4.0 it no longer works due to the new design of Tryton 
> >transaction. 
>
> It's funny that you did since we use the design of the Zope Data 
> Manager to add the support of the two phase commit protocol to Tryton. 
>
> Here's an example of a data manager to send emails: 
>         http://hg.tryton.org/trytond/file/tip/trytond/sendmail.py 
>
> Basically what you have to do once you have created your datamanager 
> is to join it to the Tryton transaction (line 22). Afterwards, the 
> Tryton transaction should take care of everything for you. 
>
> In our case we decided that the Tryton transaction would be the one 
> orchestrating the others. 
>

Actually I would join the Tryton transaction to the transaction of my 
Pyramid app, it's because of that that I have implemented a Zope Data 
Manager for the Tryton transaction.

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/1c83042e-b74a-4f35-957c-85a314373f33%40googlegroups.com.

Reply via email to