On 04 Jun 09:51, Raimon Esteve wrote: > Hello, > > I'm working a Flask APP and use Flask Tryton to connect to Tryton (1) > > I have blueprints and context processor to connect to Tryton > > * Blueprint (2). Modular Application > * Context Processor: Functions in templates > > I have some routes or views call Tryton with @tryton.transaction > Also I have in some context processor call Trytn with @tryton.transaction. > > My problem is about I can't start two or more transaction. Second > transaction, self.user is not None and get assert error (4)
Why would you want to start more than 1 transaction? > I don't find solution to use Blueprint and Context Processor working > together. Any ideas? The tryton.transaction should only be applied on entry point. -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
pgprwXVdQChmo.pgp
Description: PGP signature
