chat.freenode.net #tryton-fr log beginning Mon 30 Mar 2020 12:03:01 AM CEST | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton-fr | 22:14 | |
-!- thaneor(~ldlc6@r186-53-126-152.dialup.adsl.anteldata.net.uy) has joined #tryton-fr | 00:12 | |
-!- mrichez(~Maxime@2a02:a03f:4689:f200:299c:1bdb:9a6d:e07f) has joined #tryton-fr | 06:11 | |
-!- amprxc(b97aa1f7@gateway/web/cgi-irc/kiwiirc.com/ip.185.122.161.247) has joined #tryton-fr | 06:48 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton-fr | 07:57 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton-fr | 08:51 | |
amprxc | Bonjour, je souhaite récupérer une liste de records associés à un many2many dans une variable Python. Est-ce qu'il y a une façon simple de le faire, ou je dois obligatoirement faire un pool.get ? | 09:30 |
---|---|---|
amprxc | le many2many correspond à des identités, et je souhaite récupérer une liste des addresses email de mes records sous la forme : ["test@test.com", "test2@test.com"] | 09:32 |
nicoe | amprxc: as-tu déjà accès à un bout du M2M ? | 09:33 |
cedk | amprxc: dans un m2m, ce sont des records donc on peut accéder à leurs champs | 09:33 |
amprxc | avec un pool.get ? | 09:34 |
cedk | amprxc: ben non, c'est les valeurs du champs | 09:37 |
amprxc | mais le many2many crée une nouvelle table dans la bdd... | 09:41 |
nicoe | amprxc: l'accès aux champs m2m est transparent, si tu y accèdes tu auras les données auxquelles tu t'attends sans devoir passer explicitement par la table intermédiaire | 09:44 |
amprxc | je vois | 09:45 |
-!- thaneor(~ldlc6@r186-54-85-172.dialup.adsl.anteldata.net.uy) has joined #tryton-fr | 12:15 | |
-!- irclog(~irclog@moretus.b2ck.com) has joined #tryton-fr | 13:17 | |
-!- irclog(~irclog@moretus.b2ck.com) has joined #tryton-fr | 15:10 | |
-!- sisalp(~sisalpuse@51.sisalp.net) has joined #tryton-fr | 15:17 | |
-!- irclog(~irclog@2001:41d0:1:c158::1) has joined #tryton-fr | 15:32 | |
-!- sisalp(~sisalpuse@51.sisalp.net) has joined #tryton-fr | 15:46 | |
-!- Sid(~Thunderbi@2a01:e34:ed05:f400:c7ca:b4c:e5f6:b9d2) has joined #tryton-fr | 15:46 | |
-!- thaneor(~ldlc6@r186-54-85-172.dialup.adsl.anteldata.net.uy) has joined #tryton-fr | 15:46 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:7e2a:31ff:fe5e:b25d) has joined #tryton-fr | 15:46 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton-fr | 15:46 | |
-!- amprxc(b97aa1f7@gateway/web/cgi-irc/kiwiirc.com/ip.185.122.161.247) has joined #tryton-fr | 15:46 | |
-!- mrichez(~Maxime@2a02:a03f:4689:f200:299c:1bdb:9a6d:e07f) has joined #tryton-fr | 15:46 | |
-!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton-fr | 15:46 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton-fr | 15:46 | |
-!- ChanServ(ChanServ@services.) has joined #tryton-fr | 15:46 | |
-!- buxy(~rhertzog@helios.freexian.com) has joined #tryton-fr | 15:46 | |
-!- thaneor(~ldlc6@r186-54-85-172.dialup.adsl.anteldata.net.uy) has joined #tryton-fr | 20:54 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!