On Saturday, July 30, 2016 at 9:20:03 PM UTC+2, Cédric Krier wrote:
>
> On 2016-07-30 21:03, Cédric Krier wrote: 
> > On 2016-07-30 08:15, Marko Randjelovic wrote: 
> > > The class Transaction as defined in trytond/transaction.py indeed 
> contained 
> > > attribute cursor and in new version this attribute is missing. I need 
> a 
> > > replacement way to execute the query as can be seen from the provided 
> > > excerpt of my code. 
> > 
> > The cursor is accessible from the connection: 
> > 
> http://doc.tryton.org/4.0/trytond/doc/ref/transaction.html?highlight=cursor#trytond.transaction.Transaction.connection
>  
>
> By the way, I just updated the Transaction doc to be correct and 
> complete: https://bugs.tryton.org/issue5759


I'm not sure the documentation is correct. According to documentation, 
there is cursor attribute of Transaction as a method, but if you write in 
code Transaction().cursor(), you will get error that there is not attribute 
cursor.

Regards,
Marko
 

>
>
> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: [email protected] <javascript:> 
> Tel: +32 472 54 46 59 
> Website: http://www.b2ck.com/ 
>

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/0a9e9042-b81c-49fc-8ec5-1e38da08b448%40googlegroups.com.

Reply via email to