Re: [tryton-dev] Vibora similar to Flask

2018-06-29 Thread Cédric Krier
On 2018-06-29 11:59, Sergi Almacellas Abellana wrote:
> El 29/06/18 a les 11:10, Cédric Krier ha escrit:
> > Indeed at B2CK after some experiences with Flask-Tryton, we think that
> > this is no more a best way to interface website with trytond. We think
> > about using dedicated RPC calls in the future.
> 
> When you talk about RPC calls you mean also a specific endpoint using
> the new custom routing feature?

I think it is to be decided case by case.

> How do you think it's better to consume those APIs? Using javascript
> directly or by using an intermediary webserver?

Idem.
Indeed we have done both cases.

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

-- 
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/20180629102242.GN3931%40kei.


Re: [tryton-dev] Vibora similar to Flask

2018-06-29 Thread Sergi Almacellas Abellana
El 29/06/18 a les 11:10, Cédric Krier ha escrit:
> Indeed at B2CK after some experiences with Flask-Tryton, we think that
> this is no more a best way to interface website with trytond. We think
> about using dedicated RPC calls in the future.

When you talk about RPC calls you mean also a specific endpoint using
the new custom routing feature?

How do you think it's better to consume those APIs? Using javascript
directly or by using an intermediary webserver?



-- 
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

-- 
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/568fa7e4-3492-35cb-40ff-355d31ed8639%40koolpi.com.


Re: [tryton-dev] Vibora similar to Flask

2018-06-29 Thread Cédric Krier
On 2018-06-28 08:32, Oscar Alvarez wrote:
> Interesting new tool, it maybe in future can be used with Tryton ;)
> 
> https://vibora.io/?ref=stackshare

I do not think it worse the investment to change all the code base of
Tryton to be async. Indeed async ORM may be strange to use without
talking about the Transaction context switch.

But for a website like an webshop, it could be interesting and it will
be not difficult if the communication with trytond is made via RPC.
Indeed at B2CK after some experiences with Flask-Tryton, we think that
this is no more a best way to interface website with trytond. We think
about using dedicated RPC calls in the future.

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

-- 
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/20180629091015.GL3931%40kei.