IRC logs of #tryton for Tuesday, 2023-01-17

irc.libera.chat #tryton log beginning Tue Jan 17 12:10:01 AM CET 2023
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:42
-!- ChanServ changed mode/#tryton -> +o cedk 00:42
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton07:11
-!- rpit(~rpit@p200300c88f3ecb0015d0f7b88c543ca5.dip0.t-ipconnect.de) has joined #tryton07:14
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton07:32
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton07:35
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:06
-!- ChanServ changed mode/#tryton -> +o cedk 08:06
-!- htgoebel(~hartmut@p200300d5df1c24007e2f8718a33e9a23.dip0.t-ipconnect.de) has joined #tryton08:27
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton08:35
-!- tbruyere1(~Thunderbi@mail.saluc.com) has joined #tryton12:20
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton12:23
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton12:34
-!- tbruyere1(~Thunderbi@mail.saluc.com) has joined #tryton12:37
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton12:40
-!- tbruyere1(~Thunderbi@mail.saluc.com) has joined #tryton12:49
-!- springwurm(~springwur@5.104.149.54) has joined #tryton13:05
-!- rmu(~robert@cm179-68.liwest.at) has joined #tryton14:21
mrichezHi, is it possible to extend LotMixin (https://hg.tryton.org/modules/stock_lot/file/default/stock.py#l54) ... just doing class LotMixin(metaclass=PoolMeta) or should i also doing class Lot(LotMixin, metaclass=PoolMeta) in my custom code?14:56
mrichezok, i've found ... defining class LotMixin() and re-adding mixin in class i extend : class Lot(LotMixin, metaclass=PoolMeta)15:27
cedkmrichez: mixin are not stored in the pool so they can not be extended15:30
cedkmrichez: but you can use Pool.register_mixin to add another mixin to all classes inheriting from the first mixin15:30
mrichezcedk: ok, it's because if found this in code: https://hg.tryton.org/trytond/file/tip/trytond/res/ir.py#l9315:31
cedkmrichez: this is just to not repeat the metaclass on each inheriting models15:32
mrichezcedk: thanks for explanations15:32
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton17:44
-!- ChanServ changed mode/#tryton -> +o cedk 17:44
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:36
-!- ChanServ changed mode/#tryton -> +o cedk 21:36
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton22:43
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:54
-!- ChanServ changed mode/#tryton -> +o cedk 22:54

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