irc.libera.chat #tryton log beginning Tue Jan 17 12:10:01 AM CET 2023 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 00:42 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 00:42 | |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 07:11 | |
-!- rpit(~rpit@p200300c88f3ecb0015d0f7b88c543ca5.dip0.t-ipconnect.de) has joined #tryton | 07:14 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 07:32 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 07:35 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:06 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 08:06 | |
-!- htgoebel(~hartmut@p200300d5df1c24007e2f8718a33e9a23.dip0.t-ipconnect.de) has joined #tryton | 08:27 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 08:35 | |
-!- tbruyere1(~Thunderbi@mail.saluc.com) has joined #tryton | 12:20 | |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 12:23 | |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 12:34 | |
-!- tbruyere1(~Thunderbi@mail.saluc.com) has joined #tryton | 12:37 | |
-!- tbruyere(~Thunderbi@82.187-182-91.adsl-dyn.isp.belgacom.be) has joined #tryton | 12:40 | |
-!- tbruyere1(~Thunderbi@mail.saluc.com) has joined #tryton | 12:49 | |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 13:05 | |
-!- rmu(~robert@cm179-68.liwest.at) has joined #tryton | 14:21 | |
mrichez | Hi, 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 |
---|---|---|
mrichez | ok, i've found ... defining class LotMixin() and re-adding mixin in class i extend : class Lot(LotMixin, metaclass=PoolMeta) | 15:27 |
cedk | mrichez: mixin are not stored in the pool so they can not be extended | 15:30 |
cedk | mrichez: but you can use Pool.register_mixin to add another mixin to all classes inheriting from the first mixin | 15:30 |
mrichez | cedk: ok, it's because if found this in code: https://hg.tryton.org/trytond/file/tip/trytond/res/ir.py#l93 | 15:31 |
cedk | mrichez: this is just to not repeat the metaclass on each inheriting models | 15:32 |
mrichez | cedk: thanks for explanations | 15:32 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 17:44 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 17:44 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 21:36 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 21:36 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 22:43 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22: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/!