chat.freenode.net #tryton log beginning Fri Aug 11 00:00:01 CEST 2017 | ||
2017-08-11 00:36 -!- kstenger(~karla@r190-134-132-220.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2017-08-11 01:54 -!- csotelo(~csotelo@2001:1388:49c6:f9a5:a328:3589:be40:bafd) has joined #tryton | ||
2017-08-11 01:57 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2017-08-11 04:03 -!- zmijunkie1(~Adium@p200300CC23C60A00FCABA723E755CB3B.dip0.t-ipconnect.de) has joined #tryton | ||
2017-08-11 04:28 -!- kstenger1(~karla@r190-134-132-220.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2017-08-11 04:29 -!- alexbodn(~alex@213.57.190.189) has joined #tryton | ||
2017-08-11 07:07 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2017-08-11 08:57 -!- zmijunkie(~Adium@b2b-78-94-52-226.unitymedia.biz) has joined #tryton | ||
2017-08-11 09:31 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2017-08-11 09:41 -!- dmollerm(~dmollerm@170.red-80-28-119.staticip.rima-tde.net) has joined #tryton | ||
2017-08-11 09:44 <dmollerm> Hi all! I'm trying to set a trigger but it doesn't work. I debugged a little and found the eval method in ir/trigger.py. It just decodes the trigger condition from json string to python, but doesn't evaluate it. So if condition is not empty, eval will always return True | ||
2017-08-11 09:44 <dmollerm> Is there any example in a module using this feature? | ||
2017-08-11 09:47 -!- afibanez(501c77aa@gateway/web/cgi-irc/kiwiirc.com/ip.80.28.119.170) has joined #tryton | ||
2017-08-11 09:52 -!- udono(~udono@185.22.140.124) has joined #tryton | ||
2017-08-11 09:53 <pokoli> dmollerm: the tests are using the triggers: http://hg.tryton.org/trytond/file/376b2ee9e6fe/trytond/tests/test_trigger.py | ||
2017-08-11 09:56 -!- vbastos(~vbastos@120.22.40.130) has joined #tryton | ||
2017-08-11 09:58 <dmollerm> pokoli: thanks! I wouldn't have made up that by myself | ||
2017-08-11 10:06 <pokoli> dmollerm: indeed, where the condition is not evaluated? | ||
2017-08-11 10:07 <dmollerm> pokoli: I wrote a domain, not a pyson statement. The domain casted to true given it was a non empty list. | ||
2017-08-11 10:08 <pokoli> dmollerm: ok. Since where removed safe_eval (in 3.6 IIRC) everything that must be evaluated must be a pyson statement | ||
2017-08-11 10:10 <dmollerm> pokoli: indeed I took an example from a 3.4 installation | ||
2017-08-11 10:10 <pokoli> dmollerm: you should upgrade, 3.4 is not suported for 2 months: http://hg.tryton.org/trytond/rev/8d95540374de | ||
2017-08-11 10:12 <dmollerm> pokoli: we are working on it, it's no fun being stuck at 3.4 | ||
2017-08-11 10:18 <vbastos> basic setuptools question: when I run python setup.py install, my module in my virtualenv site-packages is not updated | ||
2017-08-11 10:18 <vbastos> any ideas where to look? | ||
2017-08-11 10:19 <vbastos> or how to troubleshoot? | ||
2017-08-11 10:21 <dmollerm> vbastos: no need to say the virtualenv must have been activated. Try uninstalling it first, or increasing the version number. If you are developing I recommend you to install it in editable mode. `pip install -e .` | ||
2017-08-11 10:22 <vbastos> thanks @dmollerm | ||
2017-08-11 10:22 <vbastos> yes the virtualenv is activated | ||
2017-08-11 10:23 <vbastos> I am using distutils to install. If I delete the directory of the module it re-installs fine | ||
2017-08-11 10:23 <vbastos> I'm going to try python setup.py develop | ||
2017-08-11 10:29 <pokoli> dmollerm: just saying in case you where not aware of ;) | ||
2017-08-11 10:30 -!- thaneor(~ldlc6@179.26.118.46) has joined #tryton | ||
2017-08-11 10:30 <pokoli> vbastos: the unique diference between install and develop is that install copies the files and develop creates a symlink instead | ||
2017-08-11 10:32 <vbastos> @pokoli - yup, I'm trying develop, but I don't have my setup.py file "well formed" | ||
2017-08-11 10:33 <vbastos> https://twitter.com/tryton_org/status/892655098685468672 | ||
2017-08-11 10:34 <vbastos> MODULE = "self_storage" | ||
2017-08-11 10:34 <vbastos> PREFIX = "trytond" | ||
2017-08-11 10:34 <vbastos> in setup.py I have | ||
2017-08-11 10:34 <vbastos> oops | ||
2017-08-11 10:34 <vbastos> the 2 lines with variables was a paste | ||
2017-08-11 10:37 <pokoli> vbastos: you should not use trytond as prefix as it's reserved for standard modules | ||
2017-08-11 10:38 <vbastos> @pokoli yes, this module will not be published | ||
2017-08-11 10:38 -!- nicoe(~nicoe@77.109.118.213) has joined #tryton | ||
2017-08-11 10:38 <pokoli> vbastos: we also use custom prefix for non published modules :) | ||
2017-08-11 10:39 <vbastos> @pokoli I think my issue is my value for package_dir | ||
2017-08-11 10:40 <vbastos> {'trytond.modules.%s' % MODULE: '.'} | ||
2017-08-11 10:40 <pokoli> vbastos: this looks correct to me | ||
2017-08-11 10:42 -!- savumies(~savumies@82-203-190-122.bb.dnainternet.fi) has joined #tryton | ||
2017-08-11 10:44 <vbastos> entry_points=""" | ||
2017-08-11 10:44 <vbastos> [trytond.modules] | ||
2017-08-11 10:44 <vbastos> %s = trytond.modules.%s | ||
2017-08-11 10:44 <vbastos> """ % (MODULE, MODULE) | ||
2017-08-11 10:44 <vbastos> maybe entrypoint: | ||
2017-08-11 10:45 <vbastos> IOError: File not found : ... lib/python2.7/site-packages/trytond/modules/self_storage/tryton.cfg | ||
2017-08-11 10:49 <pokoli> vbastos: if you are using develop, make sure the source code matches the module name | ||
2017-08-11 10:49 <pokoli> vbastos: https://twitter.com/tryton_org/status/874905637699944448 | ||
2017-08-11 10:50 <vbastos> @pokoli - yup same post | ||
2017-08-11 10:51 <vbastos> but I didn't understand what that meant before | ||
2017-08-11 10:51 <vbastos> from update_egg_modules() in the trytond module I can understand now that the entry_points value should also be appropriate | ||
2017-08-11 11:03 <vbastos> nope ... that entry_points value is correct | ||
2017-08-11 11:04 <pokoli> vbastos: and the module name? | ||
2017-08-11 11:05 <vbastos> in setup()? | ||
2017-08-11 11:05 <vbastos> name='%s_%s' % (PREFIX, MODULE), | ||
2017-08-11 11:07 <vbastos> this is strange | ||
2017-08-11 11:08 <vbastos> I just ran python setup.py install. I don't get a directory in the trytond modules directory | ||
2017-08-11 11:08 <vbastos> yet my module works | ||
2017-08-11 11:09 <pokoli> vbastos: this is normal | ||
2017-08-11 11:09 <vbastos> @pokoli how? | ||
2017-08-11 11:09 <pokoli> vbastos: you should see the module name (with prefix) on the virtualenv site-packages | ||
2017-08-11 11:09 <pokoli> vbastos: it's installed as python egg, so tryton reads from there | ||
2017-08-11 11:09 <vbastos> yes it is there, but update_egg_modules() only reads from trytond modules folder no? | ||
2017-08-11 11:11 <vbastos> so why does it work for python setup.py install but not for python setup.py develop? | ||
2017-08-11 11:19 <pokoli> vbastos: no it reads from the installed python modules too | ||
2017-08-11 11:19 <pokoli> vbastos: is the directory where do you have the code name self_storage? | ||
2017-08-11 11:20 <vbastos> @pokoli trytond read from installed python modules too because that is what pkg_resources.iter_entry_points('trytond.modules') returns? | ||
2017-08-11 11:21 <vbastos> @pokoli the directory where I have the code is trytond_self_storage | ||
2017-08-11 11:29 <vbastos> @pokoli thanks for helping. Diner time here so I'll have to try again later | ||
2017-08-11 11:30 <pokoli> vbastos: if you rename the directory to self_storage, then python setup.py develop should work | ||
2017-08-11 11:30 <dmollerm> Regarding the pyson evaluation... any hint or example on how to access the values of target relations of the record on which the pyson will be evaluated? E.g, the create_uid of the create_uid of the record? | ||
2017-08-11 11:30 <pokoli> vbastos: but make sure to unsintall the installed module | ||
2017-08-11 11:30 <pokoli> vbastos: bon appetit :)( | ||
2017-08-11 11:30 <vbastos> merci | ||
2017-08-11 11:31 <pokoli> dmollerm: what do you want to access? | ||
2017-08-11 11:32 <dmollerm> pokoli: In this case, the login of the create_uid | ||
2017-08-11 11:32 <pokoli> dmollerm: IIRC you should create a functional field that retuns the login | ||
2017-08-11 11:42 <dmollerm> pokoli: Ah, yes, that will do it. Thanks! | ||
2017-08-11 11:43 <dmollerm> pokoli: Yet, any chance that pyson could do that by itself in the future? | ||
2017-08-11 13:30 -!- mariomop(~quassel@181.90.152.146) has joined #tryton | ||
2017-08-11 13:51 -!- nicoe(~nicoe@77.109.118.213) has joined #tryton | ||
2017-08-11 13:51 -!- thaneor(~ldlc6@179.26.118.46) has joined #tryton | ||
2017-08-11 14:07 -!- alexbodn(~alex@213.57.190.189) has joined #tryton | ||
2017-08-11 14:08 -!- smarro(~sebastian@181.16.7.104) has joined #tryton | ||
2017-08-11 15:39 -!- kstenger(~karla@r190-134-133-127.dialup.adsl.anteldata.net.uy) has joined #tryton | ||
2017-08-11 18:20 -!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton | ||
2017-08-11 18:40 -!- zmijunkie(~Adium@p5B15351C.dip0.t-ipconnect.de) has joined #tryton | ||
2017-08-11 19:45 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton | ||
2017-08-11 19:57 -!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton | ||
2017-08-11 20:25 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | ||
2017-08-11 20:32 -!- silwol(silwolmatr@gateway/shell/matrix.org/x-wprcpcbtezukhvfr) has joined #tryton | ||
2017-08-11 20:46 -!- mariomop(~quassel@181.90.152.146) has joined #tryton | ||
2017-08-11 20:56 -!- fmorato[m](fmoratomat@gateway/shell/matrix.org/x-esphuayojvdemrfq) has joined #tryton | ||
2017-08-11 20:56 -!- sim6(sim6matrix@gateway/shell/matrix.org/x-xsqdyvriiiswtayg) has joined #tryton | ||
2017-08-11 20:59 -!- JosDzG(~Thunderbi@189.250.108.243) has joined #tryton | ||
2017-08-11 21:18 -!- udono(~udono@185.22.140.124) has joined #tryton | ||
2017-08-11 21:40 -!- nicoe(~nicoe@77.109.118.213) has joined #tryton | ||
2017-08-11 22:01 -!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton | ||
2017-08-11 22:07 -!- silwol(silwolmatr@gateway/shell/matrix.org/x-onuuxvnpgbhgaall) has joined #tryton | ||
2017-08-11 22:32 -!- fmorato[m](fmoratomat@gateway/shell/matrix.org/x-azbxjxxqzhehtapw) has joined #tryton | ||
2017-08-11 22:32 -!- sim6(sim6matrix@gateway/shell/matrix.org/x-xnuoeqafrbyypbes) has joined #tryton | ||
2017-08-11 22:33 -!- thaneor1(~ldlc6@179.26.134.181) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!