chat.freenode.net #tryton log beginning Mon 17 Feb 2020 12:00:01 AM CET | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:11 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:55 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 05:45 | |
-!- Timitos(~kpreisler@2001:a61:426:7801:762b:62ff:fe84:ed7e) has joined #tryton | 06:54 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 07:20 | |
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 08:33 | |
-!- josesalvador(~josesalva@84.124.29.26.static.user.ono.com) has joined #tryton | 08:36 | |
-!- rpit(~rpit@p200300C88F4B78001207D9AC39121C59.dip0.t-ipconnect.de) has joined #tryton | 08:40 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 08:50 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 09:01 | |
semarie | is it possible to use TRYTOND_DATABASE_PATH to override "~/db" path with tox ? it seems to not work here | 10:21 |
---|---|---|
pokoli | semarie: you should use TRYTON_DATABASE__PATH | 10:24 |
pokoli | semarie: See https://docs.tryton.org/projects/server/en/latest/topics/configuration.html#configuration-file-for-tryton | 10:25 |
semarie | pokoli: ah __. thanks. | 10:27 |
semarie | but I have something else missing. it still doesn't work. even if I set HOME=/tmp, it still uses /home/semarie. my env seems to not be propagated properly | 10:28 |
semarie | SQLITE_NAME is properly managed. tox sets DB_NAME with it | 10:29 |
pokoli | semarie: I'm not sure if home is expanded, did you tried using the full path? I.e: /tmp/db | 10:30 |
semarie | the default value is: self.set('database', 'path', os.path.join(os.path.expanduser('~'), 'db')) | 10:31 |
semarie | trying with in ipython, expanduser('~') works fine with HOME diverted | 10:31 |
pokoli | semarie: but the value you set on the path is not expanded | 10:33 |
semarie | exactly. trytond behave as if TRYTON_DATABASE__PATH wasn't set neither HOME | 10:36 |
semarie | but it isn't trytond fault: if I add a line with raise Exception(os.environ.get('HOME')), I see my original env | 10:37 |
semarie | I wonder if tox is reseting the env | 10:38 |
semarie | ACTION is using tox 2.6.0 | 10:38 |
semarie | "tox will take care of environment isolation for you: it will strip away all operating system environment variables not specified via passenv." | 10:39 |
cedk | semarie: to pass env to tox task you must set TOX_TESTENV_PASSENV | 10:39 |
semarie | cedk: thanks for tip ! | 10:40 |
semarie | it works now. thanks a lot. | 10:42 |
-!- mariomop(~quassel@190.247.127.226) has joined #tryton | 11:12 | |
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton | 13:05 | |
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton | 13:44 | |
andrespoliti | hi, i am instancing invoices in a wizard step, and i want to show them in the next step before creating them. Is there a way i can pass object instances to the next wizard view? i get an error 500 if i just try to send a list of invoice objects in the default of the step | 13:46 |
pokoli | andrespoliti: how do you store the invoices on the default view, how do you send them? | 14:10 |
-!- josesalvador(~josesalva@170.253.41.74) has joined #tryton | 14:11 | |
-!- josesalvador1(~josesalva@170.253.41.74) has joined #tryton | 14:16 | |
andrespoliti | i create a list of invoices, and then set them in the default_ method of the wizard view | 14:27 |
andrespoliti | or is there a better way to create objects in a wizard step and displaying them in the next step? | 14:41 |
cedk | andrespoliti: we do not do that because it is not the purpose of wizard | 14:42 |
cedk | andrespoliti: use form and if necessary with workflow | 14:43 |
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/matrix.org/x-kuwcknyhmgcslqzs) has joined #tryton | 18:47 | |
-!- rpit(~rpit@p5B22B909.dip0.t-ipconnect.de) has joined #tryton | 19:29 | |
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/matrix.org/x-vazkhowfiigxomon) has joined #tryton | 20:20 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:17 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!