IRC logs of #tryton for Monday, 2020-02-17

chat.freenode.net #tryton log beginning Mon 17 Feb 2020 12:00:01 AM CET
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:11
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:55
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton05:45
-!- Timitos(~kpreisler@2001:a61:426:7801:762b:62ff:fe84:ed7e) has joined #tryton06:54
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton07:20
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton08:33
-!- josesalvador(~josesalva@84.124.29.26.static.user.ono.com) has joined #tryton08:36
-!- rpit(~rpit@p200300C88F4B78001207D9AC39121C59.dip0.t-ipconnect.de) has joined #tryton08:40
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton08:50
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:01
semarieis it possible to use TRYTOND_DATABASE_PATH to override "~/db" path with tox ? it seems to not work here10:21
pokolisemarie: you should use TRYTON_DATABASE__PATH10:24
pokolisemarie: See https://docs.tryton.org/projects/server/en/latest/topics/configuration.html#configuration-file-for-tryton10:25
semariepokoli: ah __. thanks.10:27
semariebut 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 properly10:28
semarieSQLITE_NAME is properly managed. tox sets DB_NAME with it10:29
pokolisemarie: I'm not sure if home is expanded, did you tried using the full path? I.e: /tmp/db10:30
semariethe default value is: self.set('database', 'path', os.path.join(os.path.expanduser('~'), 'db'))10:31
semarietrying with in ipython, expanduser('~') works fine with HOME diverted10:31
pokolisemarie: but the value you set on the path is not expanded10:33
semarieexactly. trytond behave as if TRYTON_DATABASE__PATH wasn't set neither HOME10:36
semariebut it isn't trytond fault: if I add a line with raise Exception(os.environ.get('HOME')), I see my original env10:37
semarieI wonder if tox is reseting the env10:38
semarieACTION is using tox 2.6.010: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
cedksemarie: to pass env to tox task you must set TOX_TESTENV_PASSENV10:39
semariecedk: thanks for tip !10:40
semarieit works now. thanks a lot.10:42
-!- mariomop(~quassel@190.247.127.226) has joined #tryton11:12
-!- springwurm(~Springwur@5.104.149.54) has joined #tryton13:05
-!- andrespoliti(~andrespol@200.50.173.5) has joined #tryton13:44
andrespolitihi, 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 step13:46
pokoliandrespoliti: 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 #tryton14:11
-!- josesalvador1(~josesalva@170.253.41.74) has joined #tryton14:16
andrespolitii create a list of invoices, and then set them in the default_ method of the wizard view14:27
andrespolitior is there a better way to create objects in a wizard step and displaying them in the next step?14:41
cedkandrespoliti: we do not do that because it is not the purpose of wizard14:42
cedkandrespoliti: use form and if necessary with workflow14:43
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/matrix.org/x-kuwcknyhmgcslqzs) has joined #tryton18:47
-!- rpit(~rpit@p5B22B909.dip0.t-ipconnect.de) has joined #tryton19:29
-!- SimAlbertiBeltra(sim6matrix@gateway/shell/matrix.org/x-vazkhowfiigxomon) has joined #tryton20:20
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:17

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!