irc.libera.chat #tryton log beginning Fri Apr 28 12:10:01 AM CEST 2023 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:21 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 22:21 | |
-!- springwurm(~springwur@2a01:76c0:302:ab00:e0c5:5160:cd99:dc77) has joined #tryton | 05:12 | |
-!- kwmiebach(sid16855@id-16855.tinside.irccloud.com) has joined #tryton | 05:48 | |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 06:08 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 06:27 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:32 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 06:32 | |
-!- rpit(~rpit@p200300c88f3f5b00202e27664fee210b.dip0.t-ipconnect.de) has joined #tryton | 06:38 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 07:12 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton | 07:53 | |
-!- tbruyere1(~Thunderbi@mail.saluc.com) has joined #tryton | 07:54 | |
-!- sharkcz(~sharkcz@85-71-161-19.rce.o2.cz) has joined #tryton | 08:12 | |
-!- tbruyere1(~Thunderbi@212.166.19.82) has joined #tryton | 08:42 | |
-!- tbruyere(~Thunderbi@212.166.19.82) has joined #tryton | 08:46 | |
-!- nicoe(~nicoe@2a02:2788:54:1ff:7e2a:31ff:fe5e:b25d) has joined #tryton | 09:38 | |
-!- nicoe(~nicoe@2a02:2788:54:1ff:7e2a:31ff:fe5e:b25d) has joined #tryton | 10:00 | |
udono[m] | pokoli: did you allready fix the issue which prevents to use tryton as a lib? | 11:28 |
---|---|---|
pokoli | udono[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 range | 11:31 |
udono[m] | because it has no argv when used as a lib... I have a fix for it. | 11:31 |
pokoli | udono[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/12242 | 11:45 |
udono[m] | pokoli: Am I wrong? | 11:46 |
pokoli | udono[m]: seems like a regresion in trunk version | 11:48 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 11:53 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 11:53 | |
-!- springwurm(~springwur@2a01:76c0:302:ab00:ff33:f86:ce8b:c2da) has joined #tryton | 12:09 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 12:43 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 12:43 | |
mrichez | hi, 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 |
mrichez | udono: 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 #tryton | 13: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 |
mrichez | udono[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 |
mrichez | udono[m] : nice tip use different dbusers :-) | 13:52 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 14:35 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 14:35 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 17:39 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 17:39 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 21: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/!