IRC logs of #tryton for Friday, 2023-04-28

irc.libera.chat #tryton log beginning Fri Apr 28 12:10:01 AM CEST 2023
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:21
-!- ChanServ changed mode/#tryton -> +o cedk 22:21
-!- springwurm(~springwur@2a01:76c0:302:ab00:e0c5:5160:cd99:dc77) has joined #tryton05:12
-!- kwmiebach(sid16855@id-16855.tinside.irccloud.com) has joined #tryton05:48
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton06:08
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:27
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:32
-!- ChanServ changed mode/#tryton -> +o cedk 06:32
-!- rpit(~rpit@p200300c88f3f5b00202e27664fee210b.dip0.t-ipconnect.de) has joined #tryton06:38
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton07:12
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton07:53
-!- tbruyere1(~Thunderbi@mail.saluc.com) has joined #tryton07:54
-!- sharkcz(~sharkcz@85-71-161-19.rce.o2.cz) has joined #tryton08:12
-!- tbruyere1(~Thunderbi@212.166.19.82) has joined #tryton08:42
-!- tbruyere(~Thunderbi@212.166.19.82) has joined #tryton08:46
-!- nicoe(~nicoe@2a02:2788:54:1ff:7e2a:31ff:fe5e:b25d) has joined #tryton09:38
-!- nicoe(~nicoe@2a02:2788:54:1ff:7e2a:31ff:fe5e:b25d) has joined #tryton10:00
udono[m]pokoli: did you allready fix the issue which prevents to use tryton as a lib?11:28
pokoliudono[m]: I do not remember whish issue you are talking about. Tryton client a a lib? 11:29
udono[m]When you use tryton_demo.py there is an issue: 11:31
udono[m]    os.environ.setdefault('TRYTOND_APPNAME', os.path.basename(sys.argv[0]))11:31
udono[m]IndexError: list index out of range11:31
udono[m]because it has no argv when used as a lib... I have a fix for it.11:31
pokoliudono[m]: tryton_demo is a proteus script, you just need to setup proteus to connect to the database and everything will work 11:45
udono[m]pokoli: https://foss.heptapod.net/tryton/tryton/-/issues/1224211:45
udono[m]pokoli: Am I wrong?11:46
pokoliudono[m]: seems like a regresion in trunk version 11:48
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton11:53
-!- ChanServ changed mode/#tryton -> +o cedk 11:53
-!- springwurm(~springwur@2a01:76c0:302:ab00:ff33:f86:ce8b:c2da) has joined #tryton12:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton12:43
-!- ChanServ changed mode/#tryton -> +o cedk 12:43
mrichezhi, is mandatory to launch trytond with database option (-d ) ? if yes, why should we select the database in the tryton client ?13:07
udono[m]mrichez: hi, IIRC it is not mandatory to launch trytond with database option. At least in 6.0.13:31
mrichezudono: ok thanks, so tryton client should not allow to select another database if server is launched with database option, no ?13:35
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton13:37
-!- ChanServ changed mode/#tryton -> +o cedk 13:37
udono[m]mrichez: yes, if only one database is given. But database option can be a list of databases: https://foss.heptapod.net/tryton/tryton/-/blob/branch/default/trytond/trytond/commandline.py#L61 also it is another factor against attacks, I guess.13:42
udono[m]mrichez: I guess you would make the rollout of clients easier? Just login and password…13:44
udono[m]This we do with a pre set profile, where we set the database and the color :-)13:44
mrichezudono[m]: thanks for informations. Indeed, it would be simpler to limit the database list on the client if database argument is specified on the server side..13:48
udono[m]mrichez: we limit the database list with different dbusers. This way we have for each branch or project a separate user and a limited number of databases the user can access.13:50
udono[m]The database on server side (just trytond, not trytond-admin) does IIRC only the initialisation step on start up. Otherwise the database is initialized on first client connection, which takes a longer startup time for the user.13:52
mrichezudono[m] : nice tip use different dbusers :-)13:52
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton14:35
-!- ChanServ changed mode/#tryton -> +o cedk 14:35
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton17:39
-!- ChanServ changed mode/#tryton -> +o cedk 17:39
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:44
-!- ChanServ changed mode/#tryton -> +o cedk 21:44

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!