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

chat.freenode.net #tryton log beginning Wed Feb 18 00:00:02 CET 2015
-!- munron(~AndChat68@197.211.216.214) has joined #tryton01:31
-!- apostatize(~visavis@gateway/vpn/privateinternetaccess/apostatize) has joined #tryton01:54
-!- TheCowboy`(~TheCowboy@ip68-98-183-236.dc.dc.cox.net) has joined #tryton03:10
-!- munron(~AndChat68@197.211.216.214) has joined #tryton04:25
-!- munron(~AndChat68@197.211.216.214) has joined #tryton05:01
-!- yangoon(~mathiasb@p549F121E.dip0.t-ipconnect.de) has joined #tryton06:02
-!- frispete(~frispete@p54A909F3.dip0.t-ipconnect.de) has joined #tryton06:40
-!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton06:52
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:01
-!- pobsteta(~Thunderbi@a6966-0145630465.pck.nerim.net) has joined #tryton08:38
-!- jvblasco(~seba@62.43.196.37.static.user.ono.com) has joined #tryton08:42
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:12
-!- munron(~AndChat68@197.211.216.214) has joined #tryton09:19
-!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton09:48
-!- umang(67f5769a@gateway/web/freenode/ip.103.245.118.154) has joined #tryton09:50
umangcedk: When a shipment is created from sale, how are the inventory moves created in shipment?09:51
umangI am using inventory moves, and they don't have sale line as origin09:52
pokoliumang: the sale line origin is set on outgoing moves09:57
pokoliumang: and inventory moves are created in the wait transition09:57
umangpokoli: Thanks10:01
-!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton10:04
-!- frispete(~frispete@p54A909F3.dip0.t-ipconnect.de) has joined #tryton10:10
-!- lfm(~meanmicio@252.red-80-28-208.adsl.static.ccgg.telefonica.net) has joined #tryton10:28
-!- hiaselhans(~Thunderbi@chello212186043057.408.14.vie.surfer.at) has joined #tryton10:31
-!- HU4Love(~armandmpa@252.red-80-28-208.adsl.static.ccgg.telefonica.net) has joined #tryton11:19
-!- umang(67f5769a@gateway/web/freenode/ip.103.245.118.154) has joined #tryton11:57
-!- munron(~AndChat68@197.211.216.214) has joined #tryton12:02
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton12:50
-!- newzen(~newzen@190.36.80.12) has joined #tryton12:57
-!- nicoe(~nicoe@82-212-130-50.teledisnet.be) has joined #tryton13:21
-!- juanfe(~juanfe@190.85.115.49) has joined #tryton13:34
-!- mar(~marius@v100.nfq.lt) has joined #tryton14:09
marhow does trytond know when to reload with --dev and where does it do actual reload?14:10
marI'm having some kind of weird sys.path problem :/14:10
marcan someone point to direct location in source?14:10
cedkmar: in monitor.py14:10
marmonitor(files)?14:11
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton14:12
marhttp://hg.tryton.org/trytond/file/7775042c764b/trytond/monitor.py#l5514:18
marthis line causes an import error because it doesn't take path from current running process :/14:19
-!- munron(~AndChat68@197.211.216.214) has joined #tryton14:23
udonomar: Hard to understand your problem with this limited information.14:25
marI run trytond with modified sys.path14:25
marand --dev flag14:26
mar--dev reloads trytond when some file in source changes14:26
marmonitor.py tries to call python -c "import modified_module", but modified module contains import which only exists in modified path14:27
marand python -c "import modified_module" actually runs with default path14:27
marresult is import error ;)14:28
udonomar: Why do you use a modified sys.path?14:28
udonomar: And what are the modifications?14:29
-!- grasbauer(~Thunderbi@ipservice-092-208-139-252.092.208.pools.vodafone-ip.de) has joined #tryton14:32
grasbauercedk: hi - I locally implemented datetime_field support for fields.Reference - any doubts? Wondering why it is'nt implemented, because it seems easy ...14:34
marudono, I included some additional paths for additional eggs14:38
marwhich I don't want to install system-wide14:38
-!- TheCowboy`(~TheCowboy@wsip-98-191-208-111.dc.dc.cox.net) has joined #tryton14:38
udonomar: 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.14:44
-!- munron(~AndChat68@197.211.216.214) has joined #tryton14:44
maryeah it works because it changes sys.executable14:44
cedkmar: you mean the environment is not passed?15:00
cedkmar: how do you change sys.path?15:00
cedkgrasbauer: I think it becomes easy, please fill an issue15:01
grasbauercedk: Allready done and working on patch15:01
marcedk, by setting it sys.path = [...]15:17
cedkmar: where?15:19
marin trytond script15:19
cedkmar: what script?15:20
marhttp://hg.tryton.org/trytond/file/7775042c764b/bin/trytond15:21
cedkmar: first, it is a wrong practice15:22
mari'm using this one:15:22
marhttps://pypi.python.org/pypi/zc.buildout15:22
cedkmar: if you want to tune your python path, use PYTHONPATH15:23
cedkmar: and so you don't change bin/trytond15:23
cedkmar: I still don't understand why you need to change sys.path15:25
cedkbut for sure changing sys.path in a process doesn't change it for all child process15:26
cedkthe correct way is to set in the environment15:26
marcedk, I don't do it myself. zc.buildout does it. It creates "virtual" environment by setting sys.path in front of trytond script15:27
cedkmar: so it is a bug in zc.buildout, it should modify PYTHONPATH15:27
-!- mpassy(~armandmpa@252.red-80-28-208.adsl.static.ccgg.telefonica.net) has joined #tryton15:31
-!- mar(~marius@v100.nfq.lt) has joined #tryton15:42
-!- mar(~marius@unaffiliated/mar) has joined #tryton15:42
marcedk, where does it say that modifying sys.path is bad practice?15:42
marespecially when tryton does it itself ? :)15:43
cedkmar: it is a bad practice to do it for others15:44
cedkmar: also I think we should remove the one in bin/trytond15:45
marso virtualenv and etc are wrong because they are modifying path for others?15:48
-!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton15:54
cedkmar: as far as I know virtualenv doesn't change sys.path directly15:56
marcat activate_this.py ?15:58
cedkmar: it is not the default usage and it requires a specific call way16:01
cedkanyway, monitor.py works under virtualenv…16:02
cedkand for sure, if you change sys.path it will not be propagated to child process16:03
-!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton16:03
marso I think tryton should propogate it...16:05
cedkmar: no this will be so so so wrong16:06
marwhy?16:06
cedkmar: why should it?16:06
cedkmar: if you want to propagate use PYTHONPATH16:06
cedkmar: we will not change trytond to please a wrong design in zc.buildout16:07
cedkmar: http://blog.gocept.com/2011/12/06/getting-sys-path-out-of-buildout/16:14
-!- hiaselhans(~Thunderbi@chello212186043057.408.14.vie.surfer.at) has joined #tryton16:27
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton16:38
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton16:38
mar is it correct that only trytond, tryton and proteus are released as 3.4.2?16:44
marwhat about modules?16:44
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton16:45
-!- notzippy(~sabayonus@d207-216-251-90.bchsia.telus.net) has joined #tryton17:01
-!- grasbauer(~Thunderbi@ipservice-092-208-139-252.092.208.pools.vodafone-ip.de) has joined #tryton17:07
pokolimar: each package has diferent releases, so no need to make a release for all modules when trytond are released17:30
pokolimar: each package is independent for each other17:30
-!- Streward(~quassel@85.183.31.24) has joined #tryton17:38
-!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton17:55
-!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton17:56
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton18:34
-!- grasbauer(~Thunderbi@ipservice-092-208-139-252.092.208.pools.vodafone-ip.de) has joined #tryton19:16
-!- nineinchnick(~jwas@109.231.17.36) has joined #tryton19:18
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton19:25
-!- nineinchnick(~jwas@109.231.17.36) has joined #tryton19:35
-!- nineinchnick1(~jwas@109.231.17.36) has joined #tryton19:54
-!- mpassy(~armandmpa@252.red-80-28-208.adsl.static.ccgg.telefonica.net) has joined #tryton20:16
-!- pilou(~pilou@181.204.19.93.rev.sfr.net) has joined #tryton20:19
-!- pilou(~pilou@pdpc/supporter/active/pilou) has joined #tryton20:19
-!- bvillasanti(~bvillasan@181.16.28.146) has joined #tryton20:29
-!- uranus(~uranus@ip72-192-133-197.sd.sd.cox.net) has joined #tryton20:33
-!- HU4Love(~armandmpa@252.red-80-28-208.adsl.static.ccgg.telefonica.net) has joined #tryton20:57
-!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton20:59
-!- smarro(~sebastian@190.105.93.196) has joined #tryton21:51
-!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton22:02
-!- newzen(~newzen@190.74.194.70) has joined #tryton23:23

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!