iehoshia
(JosĂas)
September 3, 2020, 12:16am
1
Hi,
I have migrated from flask_tryton==0.8.0 to flask_tryton==0.9.3
I has a flask app that imports Transaction but in 0.9 it not longer exists.
Why don’t you use:
from flask_tryton import Tryton, Transaction
How it could be used in the last version of flask?
Transaction change to tryton_transaction but not sure how to use it.
Thanks in advance!
iehoshia
(JosĂas)
September 3, 2020, 3:35am
2
I imported Transaction directly from Tryton, it works fine
from trytond.transaction import Transaction
Is there another way to do the same?
ced
(Cédric Krier)
September 3, 2020, 6:47am
3
Transaction in flask_tryton was never a public thing.
You should always import it from trytond.transaction
but you should delay its import after having setup flask_tryton to support 5.6: https://hg.b2ck.com/flask-tryton/rev/25b5aa79590b .
1 Like
system
(system)
Closed
October 3, 2020, 6:47am
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.