Tryton - Issues

 

Issue8126

Title Add console
Priority feature Status resolved
Superseder Nosy List albertca, ced, reviewbot, roundup-bot
Type feature request Components trytond
Assigned To ced Keywords review
Reviews 47821002
View: 47821002

Created on 2019-02-18.13:56:15 by ced, last changed by roundup-bot.

Messages
New changeset 761bba858f3e by Cédric Krier in branch 'default':
Add console
https://hg.tryton.org/tryton-env/rev/761bba858f3e
New changeset 9c1ccedd3921 by Cédric Krier in branch 'default':
Add console
https://hg.tryton.org/trytond/rev/9c1ccedd3921
review47821002 updated at https://codereview.tryton.org/47821002/#ps40001
review47821002 updated at https://codereview.tryton.org/47821002/#ps20001
msg47181 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-02-24.14:28:50
I do not think it deserves to support a new dependency. But indeed the focus should be put on improving the namespace. The Pool.get could be replaced in the future by something else that allow better completion.
msg47151 (view) Author: [hidden] (albertca) (Tryton committer) Date: 2019-02-22.00:19:56
I think this is a nice addition. We've been using something similar using
proteus and it's great [1]. Maybe proteus could provide something similar.
Maybe even just calling "proteus postgresql:///database" from the command
line.

I understand you don't want to add a large dependency here, but we used
ipython and the code is really simple and allows to register magic
functions which can make some thins even easier. Not an absolute must, but
nice to have.

[1]
https://bitbucket.org/nantic/nan_tryton_utils/src/4d9c78390dbb01e813cffd6da24b9060d1644610/server.py#lines-204

Missatge de Cédric Krier <bugs@tryton.org> del dia dl., 18 de febr. 2019 a
les 13:56:

>
> New submission from Cédric Krier <cedric.krier@b2ck.com>:
>
> Sometimes it would be useful to have a console with a Tryton transaction
> opened on a database. For example, in case of a bug to correct the issue or
> when developing to check some data or function.
> I think by default the transaction should be roll-backed to avoid mistakes
> and enforce explicit commit.
>
> ----------
> assignedto: ced
> component: trytond
> messages: 47085
> nosy: ced
> priority: feature
> status: in-progress
> title: Add console
> type: feature request
>
> ______________________________________
> Tryton issue tracker <bugs@tryton.org>
> <https://bugs.tryton.org/issue8126>
> ______________________________________
>
review47821002 updated at https://codereview.tryton.org/47821002/#ps1
msg47085 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-02-18.13:56:15
Sometimes it would be useful to have a console with a Tryton transaction opened on a database. For example, in case of a bug to correct the issue or when developing to check some data or function.
I think by default the transaction should be roll-backed to avoid mistakes and enforce explicit commit.
History
Date User Action Args
2019-03-15 12:53:43roundup-botsetmessages: + msg47619
2019-03-15 12:53:40roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg47618
2019-03-05 23:48:33reviewbotsetmessages: + msg47435
2019-03-05 22:44:45reviewbotsetmessages: + msg47434
2019-02-24 14:28:50cedsetmessages: + msg47181
2019-02-22 00:19:57albertcasetnosy: + albertca
messages: + msg47151
2019-02-18 14:11:13reviewbotsetnosy: + reviewbot
messages: + msg47086
2019-02-18 13:56:52cedsetstatus: in-progress -> testing
reviews: 47821002
keyword: + review
2019-02-18 13:56:15cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)