chat.freenode.net #tryton log beginning Tue Jan 29 00:00:01 CET 2019 | ||
-!- yangoon(~mathiasb@i59F52B65.versanet.de) has joined #tryton | 03:20 | |
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton | 03:25 | |
-!- MatrixBot6(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 03:38 | |
-!- MatrixBot6(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 03:41 | |
-!- Icke(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 04:07 | |
-!- enick_317(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 04:09 | |
-!- enick_243(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 04:12 | |
-!- enick_78(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 04:14 | |
-!- enick_745(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 04:18 | |
-!- enick_431(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 04:21 | |
-!- enick_740(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 04:22 | |
-!- hirschbeutel(5f5ad17e@gateway/web/cgi-irc/kiwiirc.com/ip.95.90.209.126) has joined #tryton | 04:51 | |
-!- hirschbeutel1(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 04:53 | |
-!- hirschbeutel1(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 05:02 | |
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 05:10 | |
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 05:11 | |
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 05:13 | |
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 05:16 | |
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 05:17 | |
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 05:23 | |
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton | 05:56 | |
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 06:44 | |
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 06:46 | |
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 06:49 | |
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton | 07:01 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 07:06 | |
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 07:33 | |
-!- hirschbeutel55(5f5ad17e@gateway/web/cgi-irc/kiwiirc.com/ip.95.90.209.126) has joined #tryton | 07:34 | |
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 07:42 | |
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 07:43 | |
-!- hirschbeutel55(5f5ad17e@gateway/web/cgi-irc/kiwiirc.com/ip.95.90.209.126) has joined #tryton | 07:47 | |
-!- hirschbeutel(~matrixirc@j317917.servers.jiffybox.net) has joined #tryton | 07:50 | |
-!- mrichez(~smuxi@2a02:2788:54:1b6:b299:bbf3:b6df:ab67) has joined #tryton | 08:07 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 08:46 | |
-!- udono(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton | 08:59 | |
-!- udono1(~udono@125-061-210-188.ip-addr.inexio.net) has joined #tryton | 09:37 | |
-!- nicoe(~nicoe@2a02:2788:54:1b6:7e2a:31ff:fe5e:b25d) has joined #tryton | 09:42 | |
-!- thaneor1(~lenovo3@179.26.139.141) has joined #tryton | 09:59 | |
-!- mariomop(~quassel@host164.201-253-199.telecom.net.ar) has joined #tryton | 10:35 | |
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 10:47 | |
-!- csotelo(~csotelo@2800:200:f410:adb:2d8a:7caa:d18d:8442) has joined #tryton | 11:52 | |
andrespoliti | good morning | 12:26 |
---|---|---|
andrespoliti | is there any example of how to use the args field of the cron task? | 12:26 |
-!- udono(~udono@188.210.61.125) has joined #tryton | 12:42 | |
pokoli | andrespoliti: I do not think there is any example on oficial module | 12:59 |
pokoli | andrespoliti: but the values of args will be passed to the cron function as arguments | 12:59 |
andrespoliti | should it be a dictionary? | 12:59 |
pokoli | andrespoliti: no, as far as I see on the code it only accepts positional arguments | 13:00 |
pokoli | see: http://hg.tryton.org/trytond/file/e6e553bfde14/trytond/ir/cron.py#l150 | 13:00 |
andrespoliti | yes, i saw that but i'm not sure how to form the string | 13:05 |
andrespoliti | for example i'm trying to call the post method of invoice | 13:05 |
andrespoliti | and i tried [1] and it says object of type int has no length | 13:06 |
andrespoliti | ([1],) says 'int' object has no state | 13:06 |
andrespoliti | ([Pool().get('account.invoice')(1)],) says malformed string | 13:07 |
pokoli | andrespoliti: you should create a new method to do the search | 13:12 |
pokoli | andrespoliti: as the post object expects account.invoice instances | 13:13 |
pokoli | andrespoliti: what are you trying to achieve? | 13:13 |
andrespoliti | this is just an example, but i want to make a similar model like cron, but for sending notifications with a possible action button, so when the user receives the notification they can press the button and do the action | 13:14 |
pokoli | andrespoliti: you can use notification_email, a link and a custom route to process the action button | 13:15 |
pokoli | andrespoliti: or the bus system in 5.0 to send notifications directly to the clients | 13:15 |
andrespoliti | okey | 13:17 |
andrespoliti | i'll check into those | 13:17 |
andrespoliti | thanks | 13:17 |
-!- rpit(~rpit@p200300C88F2690006C9BB0571D5CCF69.dip0.t-ipconnect.de) has joined #tryton | 15:01 | |
-!- rpit(~rpit@p5B22B44D.dip0.t-ipconnect.de) has joined #tryton | 16:13 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has left #tryton | 17:49 | |
-!- rpit(~rpit@p200300C88F26900035FB67C9E15879E1.dip0.t-ipconnect.de) has joined #tryton | 18:18 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 21:01 | |
-!- thaneor(~lenovo3@179.26.131.123) has joined #tryton | 22:01 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:30 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!