> Now I get message "RuntimeError: working outside of application context"
> because I init tryton outsite app. I try "with current_app.app_context()"
> and not expect good results.. If I change some parts "Flask tryton" to
> init without app, I get successfull result.
>
Eureka! Force ctx push is a solution! Or maybe solution.
*app.py*
ctx = app.app_context()
ctx.push()
*tryton.py*
from flask import current_app
from flask_tryton import Tryton
with current_app.app_context():
tryton = Tryton(current_app)