Using Tryton in Python3 dev

51 views
Skip to first unread message

Christophe

unread,
Apr 22, 2017, 5:16:20 AM4/22/17
to tryto...@googlegroups.com
Hello,

I'm doing some testing with flask_tryton and I have some questions about Tryton
module integration in a Python3 development.

My dev is written Python3 and I wonder what are the best practices for
integrating 'flask_tryton' and 'tryton' as a module? Because every time I do it
I have syntax or import errors. I saw in some 'issue' the use of the '2to3'
utility, should I convert 'flask-tryton' with this utility?

Do I still have to wait to write my dev using Tryton in Python3?

Thank you for your remarks or advice.

Regards
--
Christophe

Cédric Krier

unread,
Apr 22, 2017, 6:15:06 AM4/22/17
to tryto...@googlegroups.com
On 2017-04-22 11:16, Christophe wrote:
> Hello,
>
> I'm doing some testing with flask_tryton and I have some questions about Tryton
> module integration in a Python3 development.
>
> My dev is written Python3 and I wonder what are the best practices for
> integrating 'flask_tryton' and 'tryton' as a module? Because every time I do it
> I have syntax or import errors. I saw in some 'issue' the use of the '2to3'
> utility, should I convert 'flask-tryton' with this utility?
>
> Do I still have to wait to write my dev using Tryton in Python3?

flask_tryton has not yet been ported to Python3.
We will be happy to review a patch at https://flask-tryton.b2ck.com/
(we use https://codereview.appspot.com/ for review)

It should mainly about adding 2to3 to setup.py and make setup.py
compatible 2 and 3.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Christophe

unread,
May 18, 2017, 6:14:19 AM5/18/17
to tryto...@googlegroups.com
Le samedi 22 avril 2017, 12:12:13 Cédric Krier a écrit :

> [...]
> flask_tryton has not yet been ported to Python3.
> We will be happy to review a patch at https://flask-tryton.b2ck.com/
> (we use https://codereview.appspot.com/ for review)

Ok, i need to configure mine .hgrc like follow :

[review]
server = https://codereview.appspot.com
oauth2 = True
send_email = True

and after upload the patch with tis command :

hg review -m "flask-tryton: ..."

Right ?

> [...]

Regards
--
Christophe

Cédric Krier

unread,
May 18, 2017, 6:35:05 AM5/18/17
to tryto...@googlegroups.com
Just test.
Reply all
Reply to author
Forward
0 new messages