IRC logs of #tryton for Friday, 2016-03-18 #tryton log beginning Fri Mar 18 00:00:01 CET 2016
-!- shivansh_(~quassel@ has left #tryton00:20
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:48
-!- smarro(~sebastian@ has joined #tryton01:50
kstengershrox: I once had the same issue about running 0 tests in 0 seconds, the problem was in my virtualenv I was using "pip install ." for each module (or was it "python install" ?... by now I seriously think it doesn't matter much which one). The case is, you need virtualenv to realize about your modifications, so you should re-install again and again after each change you do.03:01
kstengerAs nicoe pointed me, the solution for this was to start using "pip install -e ." instead. It creates a direct link to the code and so you don't need to reinstall it every time.03:01
-!- smarro(~sebastian@ has joined #tryton03:06
shroxkstenger: -e is used when trying to install a local project, right03:41
shroxkstenger: I installed trytond using pip install -e. According to what cedk said, I'll have to install the modules the same way03:43
shroxkstenger: For the 0 tests in 0 seconds error, I hadn't installed it at all. I was running the tests directly from source03:44
kstengershrox: yes, you have to install all with "-e ." (notice the dot after the space)03:45
kstengerabout the rest, I don't understand what you did to run the tests03:45
kstengershrox: maybe I missed something, did you get the tests yto work?03:46
shroxkstenger: Didn't notice the dot. Installed it that way and it did install successfully .03:50
shroxkstenger: I think I will have to install the modules too, wait a minute.03:50
kstengerhmm, ok, the dot may not be mandatory03:50
kstengerin my head it makes explicit the "install whatever there is in this directory" meaning :)03:51
shroxkstenger: Ha, yes got that. I tried to install the account module and got this error
shroxkstenger: I will have to go now. I have my classes. Do let me know if you can figure what's going on. If you can't I'll try again later.03:54
kstengeryes, well, I forgot that... you have to handle the order of dependencies to get through that, do you know how to make a for in bash? (this is for a quite dirty fix to the problem)03:54
shroxkstenger: For loop in bash?03:55
kstengerok shrox, I would just run the command for every directory in the modules directory with a for, until none faile03:55
kstengerit's dirty, but works03:55
kstengerI don't know a clean way to handle the dependencies03:55
shroxkstenger: Okay.03:55
shroxkstenger: cedk will probably come online by the time I get free from my classes now. will ask him.03:56
kstengersure, good luck!03:56
shroxkstenger: Haha, thanks :D03:56
kstengerno pun intended :)03:57
shroxkstenger: You're mentioned as potential mentor for 'FODT support for relatorio'. I will also have to start with my proposal today. Do give me some pointers for that too later.03:57
shroxkstenger: I've got the basic idea of what I'm to do.03:58
kstengershrox: good, then maybe you can write the proposal, and put it as a draft in the gsoc page, we can give you feedback there, it seems more oficial to me, but anyway you can ask whatever you need here too03:59
kstengeryou can share it as a google doc there03:59
kstengerso we can put comments03:59
shroxkstenger: Sure, I'll do that. But I will have to get a better idea of the workflow too, I think ,before I actually begin drafting the propsoal, won't I?04:00
shroxshrox: Anyhow, we'll see later. Thank you so much for your help!04:01
kstengerwhich workflow?04:01
kstengerok, go if you are in a rush, don't miss your class :)04:01
shroxkstenger: By that I mean *how* I will do what I do. Yes, I'll leave now. Bye :)04:02
kstengeroki :)04:03
-!- smarro(~sebastian@ has joined #tryton04:05
-!- perilla( has joined #tryton06:10
-!- perilla( has joined #tryton06:19
-!- frispete_( has joined #tryton07:40
-!- ccaz( has joined #tryton07:42
-!- divya(7ab15b0e@gateway/web/freenode/ip. has joined #tryton07:54
divyaI got 2 date time fields in tryton3.8. When I change the out time (time widget), the in time (time widget) gets 00:00 by itself. although it is not written in the code (ref -
divyaI am using tryton 3.8.5 and trytond3.8.207:59
-!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton08:11
-!- dj_xatra(~dj_xatra@ has joined #tryton08:24
-!- kstenger1( has joined #tryton08:45
-!- mrichez( has joined #tryton08:54
-!- nicoe( has joined #tryton09:09
-!- Timitos( has joined #tryton09:11
-!- Timitos( has left #tryton09:12
-!- Timitos( has joined #tryton09:12
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:29
-!- tbruyere( has joined #tryton09:36
-!- meigallodixital( has joined #tryton09:45
cedkpokoli: the migration query doesn't work:
cedkpokoli: more than one row returned by a subquery used as an expression11:15
cedkpokoli: I think it requires an aggregate like Max11:17
pokolicedk: let me see11:19
pokolicedk: review17971004 fixes it for me11:25
cedkpokoli: also for me11:28
-!- prayashm(~prayashm@ has joined #tryton11:31
-!- mariomop( has joined #tryton11:59
-!- Telesight( has joined #tryton12:46
dj_xatracedk: yesterday you said to avoid the python package installer because it's buggy. Could you elaborate?12:47
dj_xatraI don't have much experience with it yet.12:47
cedkdj_xatra: pip doesn't realy respect the dependencies once packages are installed so upgrade is very complicate12:48
cedkdj_xatra: any way, if you plan to develop on Tryton, you must master it by using repository setup12:49
-!- prayashm(~prayashm@ has joined #tryton12:50
cedkprayashm: to submit a first patch, you can follow:
dj_xatracedk: to develop on top of tryton-server (only custom modules) I would think that setting up from release is sufficient?12:51
cedkprayashm: did you find an issue to work on?12:51
prayashmYep. I want to work on Issue538612:51
cedkdj_xatra: yesterday, I was talking for student of GSoC which need to work on develop tree12:51
dj_xatracedk: ah, ok :)12:52
cedkdj_xatra: but yes if you develop only custom module, as far as you pin the Tryton series installed12:52
prayashmCurrently I am reading through the docs.12:53
cedkprayashm: I though shrox was working on it but it seems he unassigned12:53
prayashmWhat does soa expand to?12:53
cedkprayashm: this one is about editing the template invoice.odt and check if it works12:54
cedkprayashm: sao is the name of the web client12:54
prayashmOhkay :)12:55
cedkprayashm: after issue5386, it will be good if you could also do an issue that involve sao13:01
cedkprayashm: as you plan to apply for a sao idea13:02
prayashmUmm. I thought issue5386 is about sao13:02
cedkprayashm: no it is only about account_invoice module13:03
-!- shrox(shrox@nat/iiit/x-wyvuwqfzfymptpwc) has joined #tryton13:04
shroxcedk: Haha, yes. I unassigned myself. I didn't know that the patches of my ongoing bug would require so many changes!13:05
shroxcedk: Today I plan to install tryton via the repo, check the patches, and of course, start with my proposal :)13:05
cedkprayashm: maybe:
cedkprayashm: or
-!- smarro(~sebastian@ has joined #tryton13:10
prayashmcedk, thanks a lot for helping13:10
cedkshrox: so you plan to work on issue5386? if so you should keep the assignation13:12
shroxcedk: I do, but it is lower on my priority list right now. I wouldn't mind if someone new picked it up.13:13
shroxcedk: I'd just pick something else.13:13
prayashmcedk: There's another thing. I am trying to register in the bug tracker. But I am not getting the confirmation mail.13:14
cedkshrox: OK13:14
shroxcedk: Mainly I want to use hgreview once and see how it works. And make sure that I follow all the conventions this time around.13:14
cedkprayashm: did you check in your spam folder?13:14
prayashmcedk: It was there, really sorry! I had made a search in gmail, it didn't show up.13:15
cedkshrox: for sure13:15
shroxcedk: I was trying to install the account module using sudo pip install -e earlier today and got this error -
cedkshrox: we don't publish development release13:22
cedkshrox: if you work from repository, you don't need to install Tryton, you can just run it in place13:23
shroxcedk: I have of course cloned the repo. I thought I needed to install it by source using pip to test it.13:25
shroxcedk: So all I need to do is setup the database?13:26
cedkshrox: install the dependencies and after that you can go with the database setup13:32
shroxcedk: Okay. Right now if I run the /bin/trytond file. I get a blinking cursor on the terminal just like typical in servers.13:37
cedkshrox: so you can connect with the client?13:41
shroxcedk: I don't know. How do I check? Do I install it via pip?13:42
cedkshrox: run the client and try to connect13:44
shroxcedk: I haven't made the database yet. But before that, how do I connect? Create a new profile?13:47
shroxWhat should the host be?13:47
cedkshrox: you must create a database13:47
shroxcedk: All right.13:48
cedkshrox: you must follow:
shroxcedk: I will do it in some time. Have to attend to other commitments :)13:49
-!- ccaz(~ccr@ has joined #tryton14:03
prayashmcedk: Why don't we change all the links to instead in the README files?14:04
prayashmthey redirect anyway14:04
cedkprayashm: like that if we change again the platform, we don't need to change the README14:06
prayashmcedk: but why don't we change the README in the latest source files?14:08
prayashmcedk: Oh okay. I understood. :)14:09
-!- bvillasanti(~bvillasan@ has joined #tryton14:28
prayashmcedk: I have cloned sao. I can test it only with a locally running trytond server?14:31
prayashmcedk: or is there any way to point it the demo server?14:31
prayashmto the*14:35
dj_xatraIs it possible to have a user without a password? I think I just created one in demo3.8, but it seems like tryton-client requires a password.14:44
dj_xatraMy use case is kiosk mode.14:50
-!- ccaz(~ccr@ has joined #tryton15:00
pokolidj_xatra: it requires a password to login15:02
-!- toshad(uid150688@gateway/web/ has joined #tryton15:03
dj_xatraok, then we'll have to make due with a user that has its username as the password.15:09
pokolidj_xatra: don't understand15:12
-!- gytis(~gytis@ has joined #tryton15:19
dj_xatrapokoli: I'd like to set up a pc where anyone can just walk up to and perform some simple action in Tryton w/o having to log in.15:20
pokolidj_xatra: so I imagine the unique solution is to create a generic user/password and put a postit on the screen so everybody knows which credentials has to use15:21
pokolidj_xatra: but it's not very secure to do such things15:22
cedkdj_xatra: why not create a simple web application without credential15:32
cedkdj_xatra: you could use
dj_xatrapokoli: Something like that. I'm aware of the implications. If the action is not that important or if the pc is in a protected environment.15:48
dj_xatracedk: I'll have a look at that.15:49
cedkdj_xatra: but of course it depends of the functionalities needed15:50
-!- ccaz(~ccr@ has joined #tryton15:58
sisalphello, trying sao I have some problems : on a new sale proposal, it doesn't propose the existing products. the tryton client does. know issue ? missing a dependency ?16:26
cedksisalp: on demo it works16:32
sisalpcedk: thank you. I have to check my server then.16:32
-!- rmu( has joined #tryton17:48
-!- prayashm(~prayashm@ has joined #tryton17:56
-!- perilla( has left #tryton18:04
-!- JosDzG(~Thunderbi@ has joined #tryton19:20
sisalpcedk: on demo if I switch on proposal lines, it extends the view, I open the folder it pops-up, on my server it is different and most line params are greyed19:39
-!- eeshangarg(~eeshangar@ has joined #tryton19:39
eeshangargcedk: About adding an option to trytond-admin to change the admin password, should we prompt the user for the old admin password in order to create a new one? Also, we are assuming that the user will provide the name of the database to change the password of, right? :-)19:41
sisalpcedk: only description and quantity are white19:42
-!- prayashm(~prayashm@ has joined #tryton19:56
-!- ccaz(~ccr@ has joined #tryton20:08
-!- kstenger( has joined #tryton20:10
-!- gytis(~gytis@ has joined #tryton20:10
cedkeeshangarg: don't ask for previous20:11
cedkeeshangarg: user who can run this command has already the credential20:11
cedksisalp: this is strange, have you the last version?20:12
cedkeeshangarg: for the database, it will be good to ask one password for each database20:15
-!- prayashm(~prayashm@ has joined #tryton20:17
eeshangargcedk: Okay, got it! Hoping to submit a patch for this soon. I have another question. I may be mistaken but the migration to ldap3 (which is what I want to submit a proposal for) seems like a relatively small project as compared to the rest of the ideas, is there more to it than on the ideas page?20:20
eeshangargcedk: Also, should my patch also include tests for the trytond-admin change password option?20:22
-!- kstenger1( has joined #tryton20:47
-!- shrox(shrox@nat/iiit/x-xdqhovojjsemljrl) has joined #tryton21:13
shroxcedk: Hi! I couldn't log on earlier due to some things that cropped up.21:15
shroxcedk: When I run the tests, I get this error. Why is it?
shroxcedk: I did not get them earlier. It happened after I had run pip install -e21:16
shroxcedk: What's most unexpected is that I get the same error even when I run tests on a new repo that I just downloaded21:17
kstengershrox: update the database for the modules listed in the error21:17
kstengerah... but it's a testing db...21:18
shroxkstenger: I haven't installed the database as yet. Wait, so is that the reason?21:18
kstengerno, I don't think so, tests should run their own db21:18
kstengershrox: maybe you need to add PYTHONPATH to the command line, pointing to the server directory21:19
shroxkstenger: When I move the folder mentioned in the error stated above, I get this error -
kstengershrox: no, don't move them21:20
kstengershrox: what's missing is the install of those modules to the db, but it should be done by the test itself21:20
shroxkstenger: I moved them to check what was going on. The two repos are independent. The second repo has no module.21:21
shroxshrox: And I wasn't running module tests21:21
kstengerwhat was your command to run the test?21:21
shroxkstenger: There was already my directory mentioned in sys.path . I removed it because I was trying to test a clean repo. Still didn't work21:22
shroxkstenger: ./trytond/tests/run-tests.py21:22
kstengershrox: when I run tests, I cd to tryton's directory and then pass this path also as PYTHONPATH environment variable21:24
shroxkstenger: Okay, I'll try that with the new repo. That'll narrow done the problem to the modules then (since the new repo has no modules)21:25
shroxkstenger: Still same issue :(21:28
-!- JosDzG(~Thunderbi@ has joined #tryton21:28
-!- ChkDigit(~u388mw@ has joined #tryton21:28
kstengershrox: would you try using full path to ?21:33
shroxkstenger: Same.21:35
shroxkstenger: Tell me if you can figure the reason out for the following.21:35
shroxkstenger: I am running the tests in a folder called tryton-clean21:36
shroxkstenger: But there is still a mention of the original trytond folder in the error that is displayed21:36
shroxtrytond_clean *21:37
shroxkstenger: Have a look -
cedkshrox: uninstall any installed tryton stuff21:38
shroxkstenger: In mentions the appropriate folder before - /home/shrox/trytond-clean/trytond/trytond/tests/run-tests.p. But then switches to the original folder21:38
kstengerit's using your previous install21:38
shroxcedk: I did. I even deleted any mention of trytond on my entire system (other than the intended folders).21:40
cedkshrox: deleted is not uninstalling21:40
cedkshrox: there are many possible reason why it pick other folder21:41
cedkshrox: folder is registered as an link egg in site-package folder21:41
cedkshrox: the folder is in the PYTHONPATH21:41
cedkshrox: there is some symbolic link from one PYTHONPATH folder to this folder21:42
kstengerand this is also probably why tests were not running before either21:44
cedkshrox: we don't know what you did before21:44
cedkshrox: especially if I remember correctly, you run commands as root21:44
cedkshrox: probably the best is to start all over from a virtualenv21:47
shroxcedk: sigh21:47
shroxcedk: And this had to happened just before I was planning to shift to virtualenv21:48
shroxcedk: Yes, yes. I haven't used it before, but am aware of them.21:48
cedkshrox: are maybe you could try to just run: pip uninstall trytond21:48
shroxcedk: There was a link egg, but I had deleted it21:48
shroxcedk: That was one of the first thing I did21:48
cedkshrox: you should not delete such thing manually21:49
shroxcedk: Can't uninstall 'trytond'. No files were found to uninstall.21:49
shroxcedk: That was after trying everything else.21:49
cedkshrox: because it also write in easy-install.pth21:49
cedkshrox: of course if you deleted manually the egg, it can no more know what to delete21:50
shroxcedk: Haha, yes. But I assure you I did it only after trying to uninstall it properly21:50
shroxshrox: The damned folder was mentioned in easy-install.pth!21:51
shroxcedk: After removing it I'm getting the same error that I was for the trytond-clean21:51
shroxcedk:   File "./trytond/tests/", line 11, in <module>21:52
shrox    from trytond.config import config21:52
shroxImportError: No module named trytond.config21:52
cedkshrox: put '.' in your PYTHONPATH21:52
shroxcedk: I should have even given a grep a go, ha! :P21:53
-!- prayashm(~prayashm@ has joined #tryton21:55
shroxcedk: location the main trytond folder or the trytond folder inside?21:56
shroxlocation of*21:56
cedkshrox: the easiest way is to always run from inside the trytond repository  (first leve) and have '.' in the PYTHONPATH21:57
kstengernever imagined it was posible to pass a dot, nice tip :)21:57
shroxcedk: It says .=: command not found when i do that.21:58
shroxkstenger: Yes, that's what I did.21:58
kstengerit looks like you put .=21:59
shroxkstenger: It doesn't give me an error outright. It says so when I use $PYTHONPATH21:59
cedkshrox: PYTHONPATH=. ./trytond/tests/run-tests.py21:59
kstengerah, don't use it, just set it21:59
sisalpcedk: downloaded a fresh sao and it fixed the problem. Thank you ! the buggy one was downloaded last sunday22:01
shroxcedk: When I paste in that command, it gives me the same dreaded error that it was before.22:01
kstengershrox: still refers to the wrong path?22:01
cedksisalp: probably issue513522:02
shroxkstenger: Ah no it doesn't! It did earlier because I had run the tests on the original folder itself.22:03
kstengershrox: then what's the new output?22:04
shroxkstenger: Ran 167 tests in 39.696s. Sigh, thank you!22:04
cedkshrox: I'm completly confused, I don't know anymore what is your result22:04
cedkshrox: OK so it works now22:04
-!- smarro(~sebastian@ has joined #tryton22:05
shroxcedk: Yes. So I should always use PYTHONPATH whenever testing a different repo?22:06
kstengershrox: yes22:06
cedkshrox: ./bin/trytond set the path but not run-tests.py22:06
cedkshrox: but if you want, you can put that in your environment like .profile or what ever is your shell profile file22:07
shroxI still am getting the error concerning the modules when I run the repo in which I had made the changes to the modules account and account_invoice22:08
shroxcedk: "./bin/trytond set the path but not" So  PYTHONPATH=. ./bin/trytond and only after that run the tests?22:11
kstengershrox: no, he means that trytond doesn't need PYTHONPATH because it set's it on it's own, but run-tests doesn't do it22:12
cedkshrox: what do you mean by "when I run the repo"?22:13
shroxkstenger: Ah, okay. Exactly opposite to what I understood that as.22:13
shroxcedk: By that I mean run the tests in that repo22:13
shroxcedk : I have multiple repos. One is the one that I have been trying to get the bug resolve. One is with the modules untouched with tytond. Another with just trytond and no modules, etc.22:14
-!- bvillasanti(~bvillasan@ has joined #tryton22:15
cedkshrox: how?22:16
cedkshrox: what command are exactly running?22:17
shroxcedk: I think there's a difference of terminology. I've just cloned them more than once in multiple folders. I have different folders with the same code that I refer to while tinkering.22:17
shroxcedk:  PYTHONPATH=. ./trytond/tests/run-tests.py22:18
cedkshrox: so from the folder where you run the test, it is missing those module22:18
shroxcedk: These?  [u'party', u'product', u'company', u'account_product']22:19
kstengershrox: is this /home/shrox/trytond/ the directory where you have your changes for the account and account_invoice ?22:21
shroxkstenger: cedk: Are these internal modules that have gone missing?22:21
shroxkstenger: yes, it is22:21
kstengershrox: no,, they are just modules, if you don't have them in /home/shrox/trytond/trytond/modules you should clone them there22:25
shroxkstenger: But if they are not there by default, why are they needed?22:25
kstengershrox: because they are dependencies of your modified modules22:25
kstengershrox: you cannot test one without the others22:25
shroxshrox: Ah. Now finally this makes sense :D22:25
shroxI'll do that22:25
shroxkstenger: ^22:25
kstengershrox: dependencies of modules are listed in the trytond.cfg file of the module directory22:25
shroxkstenger: The number of times I've typed my own name instead of the person I was referring to is now 3. :P22:25
kstengershrox: I wrongly assumed you had cloned all the modules with nclone22:25
shroxkstenger: Ah, okay. I see.22:25
shroxkstenger: Something new that I got to know in that case.22:25
kstengershrox: haha, typing nicks all the time get's boring :p22:25
-!- irclog( has joined #tryton22:25
shroxkstenger: cedk: Thanks, both of you!22:25
shroxcedk: People tell me in real life that I ask a lot of questions. I cannot how it feels like on irc.22:26
-!- Pilou( has joined #tryton22:26
-!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton22:26
-!- prayashm(~prayashm@ has joined #tryton22:29
cedkshrox: indeed on IRC it is difficult to help debugging because we have to assume a lot22:32
shroxcedk: I have finally got the error that you commented on my patch. Never been so happy to get an error.22:39
cedkshrox: good now, I think you are on the right tracks ;-)22:39
-!- aroncero(~aroncero@ has joined #tryton22:39
shroxcedk: By the way, the issue did get resolved, but why did the modules run at all if I didn't specifically mention -m <module_here>22:39
cedkshrox: run only trytond test22:41
cedkshrox: -m run trytond and all modules tests22:41
cedkshrox: <something> run trytond test named <something>22:41
shroxcedk: Exactly. I ran but I was getting the error that had to do with dependencies for the modules, right?22:42
cedkshrox: -m <something> run trytond or module test named <something>22:42
cedkshrox: yes because trytond at startup build the object pool for the modules22:42
cedkshrox: so if something is missing it fails22:42
shroxcedk: Okay. So if it always does that, what's the point of the '-m' that can be added?22:43
cedkshrox: -m is to tell to take also module tests22:43
cedkshrox: and extra test argument is to filter22:44
cedkshrox: you know running all the tests for all the modules, take hours on my laptop22:45
cedkACTION bbl22:45
shroxcedk: Let me clear what I've understood till now. runs trytond. It gets errors because of missing module dependencies because it makes a pool. To specifically run the module tests I use -m.22:45
shroxcedk: Is my understanding till here correct?22:45
kstengeryes, it seems accurate shrox. so you cannot put in the modules directory a module without putting also the modules on which it depends22:47
kstengershrox: actually, you should have had the exact same error if you run just trytond22:47
-!- smarro(~sebastian@ has joined #tryton22:47
shroxkstenger: cedk: if so, how does it get this error get detected my
shroxkstenger: I assume this is because it does of the modules. But not the others.22:49
kstengershrox: that error is not result of a test failing, it's failing to setup trytond22:49
shroxkstenger: Ah okay. Cool. :) Figured everything now.22:50
kstengerwhenever a test fails it will tell you "test failed" among a lot of other stuff ;-)22:51
-!- smarro(~sebastian@ has joined #tryton23:10
-!- prayashm(~prayashm@ has joined #tryton23:18
-!- eeshangarg(~eeshangar@ has joined #tryton23:32
eeshangargHey everyone! I am new to webdav, but I have a couple of questions about migrating to wsgidav, and I'm curious as to what this project might involve. I have a couple of questions about the codebase and it would mean a lot to me if someone could give me a few pointers as to how to find the answers. :-)23:34
-!- bvillasanti(~bvillasan@ has joined #tryton23:35
-!- JosDzGx(~Thunderbi@ has joined #tryton23:43
-!- prayashm(~prayashm@ has joined #tryton23:46
-!- JosDzG(~Thunderbi@ has joined #tryton23:50
-!- JosDzG(~Thunderbi@ has joined #tryton23:59

Generated by 2.11.0 by Marius Gedminas - find it at!