IRC logs of #tryton for Tuesday, 2022-09-20

irc.libera.chat #tryton log beginning Tue Sep 20 12:00:01 AM CEST 2022
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton04:49
-!- springwurm(~springwur@5.104.149.54) has joined #tryton05:23
-!- LordVan(~LordVan@gentoo/developer/lordvan) has joined #tryton05:50
LordVanHi. quick question is it a good idea to overwrite the state of an existing field in a custom module - if so what is the best (tryton-ish) way to do it? -- in particular I want the Sale.description field's readonly state to be that I can edit it later on05:53
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton06:01
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton06:44
-!- rpit(~rpit@p200300c88f07c3004b32d530ec5a8be7.dip0.t-ipconnect.de) has joined #tryton06:45
-!- yangoon(~yangoon@p5dd08deb.dip0.t-ipconnect.de) has joined #tryton06:48
-!- yangoon(~yangoon@p5dd08deb.dip0.t-ipconnect.de) has joined #tryton06:48
-!- yangoon(~yangoon@p5dd08deb.dip0.t-ipconnect.de) has joined #tryton06:50
-!- yangoon(~yangoon@p5dd08deb.dip0.t-ipconnect.de) has joined #tryton06:52
-!- yangoon(~yangoon@p5dd08deb.dip0.t-ipconnect.de) has joined #tryton06:55
-!- yangoon(~yangoon@p5dd08deb.dip0.t-ipconnect.de) has joined #tryton06:57
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:01
-!- ChanServ changed mode/#tryton -> +o cedk 07:01
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton07:20
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton08:13
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton08:17
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton08:19
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton08:19
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton08:54
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton08:56
-!- tbruyere1(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton08:57
-!- nicoe(~nicoe@2a02:2788:54:1ff:18c2:1aff:fef9:2b7f) has joined #tryton10:42
LordVanQuick question is it a good idea to overwrite the state of an existing field in a custom module - if so what is the best (tryton-ish) way to do it? -- in particular I want the Sale.description field's readonly state to be that I can edit it later on11:13
nicoeLordVan: we do that in __setup__ method11:15
nicoeLordVan: https://hg.tryton.org/modules/party/file/tip/party.py#l9711:18
LordVancool thanks. was just looking for an example but that is super simple anyway to do it there :)11:18
LordVanawesome11:18
nicoeBeware that this example does not test if readonly exists already for 'state' but you should usually do it11:21
LordVannicoe, makes sense. although I know that in this case that it exists (And I doubt Sale.description will at any point not have that attribute tbh)11:25
-!- irclog(~irclog@moretus.b2ck.com) has joined #tryton11:47
-!- pokoli(~pokoli@mail.koolpi.com) has joined #tryton11:53
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton11:54
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton11:54
-!- LordVan(~LordVan@gentoo/developer/lordvan) has joined #tryton11:54
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton11:54
-!- sharkcz(~sharkcz@2001:470:5c11:160:6588:d8a2:d121:cd78) has joined #tryton11:54
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton12:00
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton12:00
-!- LordVan(~LordVan@gentoo/developer/lordvan) has joined #tryton12:00
-!- LordVan(~LordVan@gentoo/developer/lordvan) has joined #tryton12:01
cedkLordVan: docker image use uwsgi12:06
-!- springwurm(~springwur@5.104.149.54) has joined #tryton12:10
-!- wifasoi[m](~wifasoi@2001:470:69fc:105::1:6970) has joined #tryton12:14
LordVancedk, ok well i have no webserver on that VM yet anyway so I am pretty flexible .. I was just not too convinced of gunicorn before and use mod_wsgi for my django webapps so far .. no experience with uwsgi but i'll have a look (there probbly is a sample config somewhere anyway I assume?)12:16
LordVancedk, do I need (or should I install) python's asyncio and gevent support with uwsgi or is that not used anyway?12:23
-!- kpreisler[m](~kpreisler@2001:470:69fc:105::1:b57f) has joined #tryton12:49
-!- udono[m](~udono@2001:470:69fc:105::1:cd10) has joined #tryton12:52
-!- nicoe(~nicoe@2a02:2788:54:1ff:18c2:1aff:fef9:2b7f) has joined #tryton13:06
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton13:30
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton19:14

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