IRC logs of #tryton for Wednesday, 2015-02-18

chat.freenode.net #tryton log beginning Wed Feb 18 00:00:02 CET 2015
2015-02-18 01:31 -!- munron(~AndChat68@197.211.216.214) has joined #tryton
2015-02-18 01:54 -!- apostatize(~visavis@gateway/vpn/privateinternetaccess/apostatize) has joined #tryton
2015-02-18 03:10 -!- TheCowboy`(~TheCowboy@ip68-98-183-236.dc.dc.cox.net) has joined #tryton
2015-02-18 04:25 -!- munron(~AndChat68@197.211.216.214) has joined #tryton
2015-02-18 05:01 -!- munron(~AndChat68@197.211.216.214) has joined #tryton
2015-02-18 06:02 -!- yangoon(~mathiasb@p549F121E.dip0.t-ipconnect.de) has joined #tryton
2015-02-18 06:40 -!- frispete(~frispete@p54A909F3.dip0.t-ipconnect.de) has joined #tryton
2015-02-18 06:52 -!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton
2015-02-18 08:01 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2015-02-18 08:38 -!- pobsteta(~Thunderbi@a6966-0145630465.pck.nerim.net) has joined #tryton
2015-02-18 08:42 -!- jvblasco(~seba@62.43.196.37.static.user.ono.com) has joined #tryton
2015-02-18 09:12 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-02-18 09:19 -!- munron(~AndChat68@197.211.216.214) has joined #tryton
2015-02-18 09:48 -!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton
2015-02-18 09:50 -!- umang(67f5769a@gateway/web/freenode/ip.103.245.118.154) has joined #tryton
2015-02-18 09:51 <umang> cedk: When a shipment is created from sale, how are the inventory moves created in shipment?
2015-02-18 09:52 <umang> I am using inventory moves, and they don't have sale line as origin
2015-02-18 09:57 <pokoli> umang: the sale line origin is set on outgoing moves
2015-02-18 09:57 <pokoli> umang: and inventory moves are created in the wait transition
2015-02-18 10:01 <umang> pokoli: Thanks
2015-02-18 10:04 -!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton
2015-02-18 10:10 -!- frispete(~frispete@p54A909F3.dip0.t-ipconnect.de) has joined #tryton
2015-02-18 10:28 -!- lfm(~meanmicio@252.red-80-28-208.adsl.static.ccgg.telefonica.net) has joined #tryton
2015-02-18 10:31 -!- hiaselhans(~Thunderbi@chello212186043057.408.14.vie.surfer.at) has joined #tryton
2015-02-18 11:19 -!- HU4Love(~armandmpa@252.red-80-28-208.adsl.static.ccgg.telefonica.net) has joined #tryton
2015-02-18 11:57 -!- umang(67f5769a@gateway/web/freenode/ip.103.245.118.154) has joined #tryton
2015-02-18 12:02 -!- munron(~AndChat68@197.211.216.214) has joined #tryton
2015-02-18 12:50 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-02-18 12:57 -!- newzen(~newzen@190.36.80.12) has joined #tryton
2015-02-18 13:21 -!- nicoe(~nicoe@82-212-130-50.teledisnet.be) has joined #tryton
2015-02-18 13:34 -!- juanfe(~juanfe@190.85.115.49) has joined #tryton
2015-02-18 14:09 -!- mar(~marius@v100.nfq.lt) has joined #tryton
2015-02-18 14:10 <mar> how does trytond know when to reload with --dev and where does it do actual reload?
2015-02-18 14:10 <mar> I'm having some kind of weird sys.path problem :/
2015-02-18 14:10 <mar> can someone point to direct location in source?
2015-02-18 14:10 <cedk> mar: in monitor.py
2015-02-18 14:11 <mar> monitor(files)?
2015-02-18 14:12 -!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton
2015-02-18 14:18 <mar> http://hg.tryton.org/trytond/file/7775042c764b/trytond/monitor.py#l55
2015-02-18 14:19 <mar> this line causes an import error because it doesn't take path from current running process :/
2015-02-18 14:23 -!- munron(~AndChat68@197.211.216.214) has joined #tryton
2015-02-18 14:25 <udono> mar: Hard to understand your problem with this limited information.
2015-02-18 14:25 <mar> I run trytond with modified sys.path
2015-02-18 14:26 <mar> and --dev flag
2015-02-18 14:26 <mar> --dev reloads trytond when some file in source changes
2015-02-18 14:27 <mar> monitor.py tries to call python -c "import modified_module", but modified module contains import which only exists in modified path
2015-02-18 14:27 <mar> and python -c "import modified_module" actually runs with default path
2015-02-18 14:28 <mar> result is import error ;)
2015-02-18 14:28 <udono> mar: Why do you use a modified sys.path?
2015-02-18 14:29 <udono> mar: And what are the modifications?
2015-02-18 14:32 -!- grasbauer(~Thunderbi@ipservice-092-208-139-252.092.208.pools.vodafone-ip.de) has joined #tryton
2015-02-18 14:34 <grasbauer> cedk: hi - I locally implemented datetime_field support for fields.Reference - any doubts? Wondering why it is'nt implemented, because it seems easy ...
2015-02-18 14:38 <mar> udono, I included some additional paths for additional eggs
2015-02-18 14:38 <mar> which I don't want to install system-wide
2015-02-18 14:38 -!- TheCowboy`(~TheCowboy@wsip-98-191-208-111.dc.dc.cox.net) has joined #tryton
2015-02-18 14:44 <udono> mar: I have good experience with virtualenv and pip install -e. Both working as expected for me, when using trytond --dev. Maybe user scheme of pip works, too.
2015-02-18 14:44 -!- munron(~AndChat68@197.211.216.214) has joined #tryton
2015-02-18 14:44 <mar> yeah it works because it changes sys.executable
2015-02-18 15:00 <cedk> mar: you mean the environment is not passed?
2015-02-18 15:00 <cedk> mar: how do you change sys.path?
2015-02-18 15:01 <cedk> grasbauer: I think it becomes easy, please fill an issue
2015-02-18 15:01 <grasbauer> cedk: Allready done and working on patch
2015-02-18 15:17 <mar> cedk, by setting it sys.path = [...]
2015-02-18 15:19 <cedk> mar: where?
2015-02-18 15:19 <mar> in trytond script
2015-02-18 15:20 <cedk> mar: what script?
2015-02-18 15:21 <mar> http://hg.tryton.org/trytond/file/7775042c764b/bin/trytond
2015-02-18 15:22 <cedk> mar: first, it is a wrong practice
2015-02-18 15:22 <mar> i'm using this one:
2015-02-18 15:22 <mar> https://pypi.python.org/pypi/zc.buildout
2015-02-18 15:23 <cedk> mar: if you want to tune your python path, use PYTHONPATH
2015-02-18 15:23 <cedk> mar: and so you don't change bin/trytond
2015-02-18 15:25 <cedk> mar: I still don't understand why you need to change sys.path
2015-02-18 15:26 <cedk> but for sure changing sys.path in a process doesn't change it for all child process
2015-02-18 15:26 <cedk> the correct way is to set in the environment
2015-02-18 15:27 <mar> cedk, I don't do it myself. zc.buildout does it. It creates "virtual" environment by setting sys.path in front of trytond script
2015-02-18 15:27 <cedk> mar: so it is a bug in zc.buildout, it should modify PYTHONPATH
2015-02-18 15:31 -!- mpassy(~armandmpa@252.red-80-28-208.adsl.static.ccgg.telefonica.net) has joined #tryton
2015-02-18 15:42 -!- mar(~marius@v100.nfq.lt) has joined #tryton
2015-02-18 15:42 -!- mar(~marius@unaffiliated/mar) has joined #tryton
2015-02-18 15:42 <mar> cedk, where does it say that modifying sys.path is bad practice?
2015-02-18 15:43 <mar> especially when tryton does it itself ? :)
2015-02-18 15:44 <cedk> mar: it is a bad practice to do it for others
2015-02-18 15:45 <cedk> mar: also I think we should remove the one in bin/trytond
2015-02-18 15:48 <mar> so virtualenv and etc are wrong because they are modifying path for others?
2015-02-18 15:54 -!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton
2015-02-18 15:56 <cedk> mar: as far as I know virtualenv doesn't change sys.path directly
2015-02-18 15:58 <mar> cat activate_this.py ?
2015-02-18 16:01 <cedk> mar: it is not the default usage and it requires a specific call way
2015-02-18 16:02 <cedk> anyway, monitor.py works under virtualenv…
2015-02-18 16:03 <cedk> and for sure, if you change sys.path it will not be propagated to child process
2015-02-18 16:03 -!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton
2015-02-18 16:05 <mar> so I think tryton should propogate it...
2015-02-18 16:06 <cedk> mar: no this will be so so so wrong
2015-02-18 16:06 <mar> why?
2015-02-18 16:06 <cedk> mar: why should it?
2015-02-18 16:06 <cedk> mar: if you want to propagate use PYTHONPATH
2015-02-18 16:07 <cedk> mar: we will not change trytond to please a wrong design in zc.buildout
2015-02-18 16:14 <cedk> mar: http://blog.gocept.com/2011/12/06/getting-sys-path-out-of-buildout/
2015-02-18 16:27 -!- hiaselhans(~Thunderbi@chello212186043057.408.14.vie.surfer.at) has joined #tryton
2015-02-18 16:38 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton
2015-02-18 16:38 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-02-18 16:44 <mar> is it correct that only trytond, tryton and proteus are released as 3.4.2?
2015-02-18 16:44 <mar> what about modules?
2015-02-18 16:45 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-02-18 17:01 -!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton
2015-02-18 17:07 -!- grasbauer(~Thunderbi@ipservice-092-208-139-252.092.208.pools.vodafone-ip.de) has joined #tryton
2015-02-18 17:30 <pokoli> mar: each package has diferent releases, so no need to make a release for all modules when trytond are released
2015-02-18 17:30 <pokoli> mar: each package is independent for each other
2015-02-18 17:38 -!- Streward(~quassel@85.183.31.24) has joined #tryton
2015-02-18 17:55 -!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton
2015-02-18 17:56 -!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton
2015-02-18 18:34 -!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton
2015-02-18 19:16 -!- grasbauer(~Thunderbi@ipservice-092-208-139-252.092.208.pools.vodafone-ip.de) has joined #tryton
2015-02-18 19:18 -!- nineinchnick(~jwas@109.231.17.36) has joined #tryton
2015-02-18 19:25 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton
2015-02-18 19:35 -!- nineinchnick(~jwas@109.231.17.36) has joined #tryton
2015-02-18 19:54 -!- nineinchnick1(~jwas@109.231.17.36) has joined #tryton
2015-02-18 20:16 -!- mpassy(~armandmpa@252.red-80-28-208.adsl.static.ccgg.telefonica.net) has joined #tryton
2015-02-18 20:19 -!- pilou(~pilou@181.204.19.93.rev.sfr.net) has joined #tryton
2015-02-18 20:19 -!- pilou(~pilou@pdpc/supporter/active/pilou) has joined #tryton
2015-02-18 20:29 -!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton
2015-02-18 20:33 -!- uranus(~uranus@ip72-192-133-197.sd.sd.cox.net) has joined #tryton
2015-02-18 20:57 -!- HU4Love(~armandmpa@252.red-80-28-208.adsl.static.ccgg.telefonica.net) has joined #tryton
2015-02-18 20:59 -!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-02-18 21:51 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-02-18 22:02 -!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-02-18 23:23 -!- newzen(~newzen@190.74.194.70) has joined #tryton

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