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 #tryton | 04:49 | |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 05:23 | |
-!- LordVan(~LordVan@gentoo/developer/lordvan) has joined #tryton | 05:50 | |
LordVan | Hi. 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 on | 05:53 |
---|---|---|
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton | 06:01 | |
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton | 06:44 | |
-!- rpit(~rpit@p200300c88f07c3004b32d530ec5a8be7.dip0.t-ipconnect.de) has joined #tryton | 06:45 | |
-!- yangoon(~yangoon@p5dd08deb.dip0.t-ipconnect.de) has joined #tryton | 06:48 | |
-!- yangoon(~yangoon@p5dd08deb.dip0.t-ipconnect.de) has joined #tryton | 06:48 | |
-!- yangoon(~yangoon@p5dd08deb.dip0.t-ipconnect.de) has joined #tryton | 06:50 | |
-!- yangoon(~yangoon@p5dd08deb.dip0.t-ipconnect.de) has joined #tryton | 06:52 | |
-!- yangoon(~yangoon@p5dd08deb.dip0.t-ipconnect.de) has joined #tryton | 06:55 | |
-!- yangoon(~yangoon@p5dd08deb.dip0.t-ipconnect.de) has joined #tryton | 06:57 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 07:01 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 07:01 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 07:20 | |
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton | 08:13 | |
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton | 08:17 | |
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton | 08:19 | |
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton | 08:19 | |
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton | 08:54 | |
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton | 08:56 | |
-!- tbruyere1(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton | 08:57 | |
-!- nicoe(~nicoe@2a02:2788:54:1ff:18c2:1aff:fef9:2b7f) has joined #tryton | 10:42 | |
LordVan | 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 on | 11:13 |
nicoe | LordVan: we do that in __setup__ method | 11:15 |
nicoe | LordVan: https://hg.tryton.org/modules/party/file/tip/party.py#l97 | 11:18 |
LordVan | cool thanks. was just looking for an example but that is super simple anyway to do it there :) | 11:18 |
LordVan | awesome | 11:18 |
nicoe | Beware that this example does not test if readonly exists already for 'state' but you should usually do it | 11:21 |
LordVan | nicoe, 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 #tryton | 11:47 | |
-!- pokoli(~pokoli@mail.koolpi.com) has joined #tryton | 11:53 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 11:54 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 11:54 | |
-!- LordVan(~LordVan@gentoo/developer/lordvan) has joined #tryton | 11:54 | |
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton | 11:54 | |
-!- sharkcz(~sharkcz@2001:470:5c11:160:6588:d8a2:d121:cd78) has joined #tryton | 11:54 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 12:00 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 12:00 | |
-!- LordVan(~LordVan@gentoo/developer/lordvan) has joined #tryton | 12:00 | |
-!- LordVan(~LordVan@gentoo/developer/lordvan) has joined #tryton | 12:01 | |
cedk | LordVan: docker image use uwsgi | 12:06 |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 12:10 | |
-!- wifasoi[m](~wifasoi@2001:470:69fc:105::1:6970) has joined #tryton | 12:14 | |
LordVan | cedk, 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 |
LordVan | cedk, 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 #tryton | 12:49 | |
-!- udono[m](~udono@2001:470:69fc:105::1:cd10) has joined #tryton | 12:52 | |
-!- nicoe(~nicoe@2a02:2788:54:1ff:18c2:1aff:fef9:2b7f) has joined #tryton | 13:06 | |
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton | 13:30 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 19:14 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!