IRC logs of #tryton for Saturday, 2016-03-19 #tryton log beginning Sat Mar 19 00:00:02 CET 2016
2016-03-19 00:09 -!- JosDzG(~Thunderbi@ has joined #tryton
2016-03-19 00:10 <eeshangarg> kstenger: ping
2016-03-19 00:12 <kstenger> eeshangarg: yes, I'm here, but I'm sorry to tell that webdav is kind of a mistery to me ...
2016-03-19 00:14 <eeshangarg> kstenger: Oh, that's fine, I have a question about the migration to ldap3 project for you, I saw you on the mentors list for that. Isn't that project kinda small, if I'm not mistaken? Is there more to it than the page says?
2016-03-19 00:16 <kstenger> did you check the first comment Cedric did on the project discussion page? I think that's the idea to extend it
2016-03-19 00:17 -!- JosDzG(~Thunderbi@ has joined #tryton
2016-03-19 00:17 <kstenger> ah, they already added it to the general description
2016-03-19 00:19 <eeshangarg> kstenger: I have a rough idea on how to write a proposal for the migration but the synchronization is something I'll have to take a look at.
2016-03-19 00:26 <eeshangarg> kstenger: Can I please get some more details on that, the synchoronisation part? Where to start looking for more info?
2016-03-19 00:31 -!- JosDzG(~Thunderbi@ has joined #tryton
2016-03-19 00:32 -!- smarro(~sebastian@ has joined #tryton
2016-03-19 00:36 -!- frispete( has joined #tryton
2016-03-19 00:36 <kstenger> eeshangarg: maybe you can check this to start
2016-03-19 00:55 <cedk> eeshangarg: I think the synchronisation should only occurs at login
2016-03-19 00:55 <cedk> eeshangarg: and will probably requires some mapping table
2016-03-19 00:55 <cedk> eeshangarg: also don't forget to submit one patch on an easy issue
2016-03-19 00:59 <kstenger> cedk: eeshangarg also wanted some guidance about the webdav to wsgidav topic
2016-03-19 00:59 -!- smarro(~sebastian@ has joined #tryton
2016-03-19 01:01 -!- JosDzG(~Thunderbi@ has joined #tryton
2016-03-19 01:04 <cedk> eeshangarg: this is mainly to replace the current pywebdav by wsgidav
2016-03-19 01:05 <cedk> eeshangarg: but they are very different so it is like implementing a Tryton backend for wsgidav
2016-03-19 01:09 -!- JosDzG(~Thunderbi@ has joined #tryton
2016-03-19 01:13 -!- smarro(~sebastian@ has joined #tryton
2016-03-19 01:24 -!- JosDzG(~Thunderbi@ has joined #tryton
2016-03-19 01:32 -!- prayashm(~prayashm@ has joined #tryton
2016-03-19 03:06 -!- Zephman( has joined #tryton
2016-03-19 03:38 -!- prayashm(~prayashm@ has joined #tryton
2016-03-19 04:04 -!- prayashm(~prayashm@ has joined #tryton
2016-03-19 04:10 <prayashm> Can anyone help with setting up the database?
2016-03-19 04:11 <kstenger> prayashm: I may give you a hand for a while, on what point are you now?
2016-03-19 04:12 <prayashm> I have cloned sao and trytond
2016-03-19 04:12 <prayashm> I want to work on sao
2016-03-19 04:12 <prayashm> kstenger: to run it, one needs to configure trytond locally right?
2016-03-19 04:13 <kstenger> yes
2016-03-19 04:13 <prayashm> kstenger: Reading through the docs, I made a configuration file
2016-03-19 04:13 <kstenger> I know I can help you set up the database, but I have myself still some issues with sao, so let's see up to what point I can guide you :-)
2016-03-19 04:14 <kstenger> prayashm: ok, so what's your doubt now?
2016-03-19 04:14 <prayashm> kstenger: when I run the command trytond -c CONFIG -d tryton_db --all
2016-03-19 04:14 <prayashm> kstenger: It says --all isn't recognized
2016-03-19 04:15 <kstenger> ok, which version are you running?
2016-03-19 04:15 <prayashm> 3.9.0
2016-03-19 04:15 <prayashm> so I used tryton-admin instead
2016-03-19 04:16 <kstenger> good, so for current 3.9, you don't use trytond --all, you should use the trytond-admin command for updating the database
2016-03-19 04:16 <kstenger> yes
2016-03-19 04:16 <prayashm> Shows me this error:
2016-03-19 04:18 <kstenger> prayashm: show me your config file content
2016-03-19 04:18 <prayashm> CONFIG file
2016-03-19 04:21 <prayashm> kstenger: Is it wrong?
2016-03-19 04:22 <kstenger> it's apparently complaining about some of the values in the uri, I'm checking
2016-03-19 04:27 <prayashm> another doubt: I had just installed Postgres, Set the password for postgres user, Made a db tryton_db.
2016-03-19 04:27 <prayashm> This should be enough, right?
2016-03-19 04:29 <kstenger> did you create the db under the postgres user ?
2016-03-19 04:29 <prayashm> yes
2016-03-19 04:30 <kstenger> that's good, give me a min, I'm close to figure it out I think
2016-03-19 04:31 <kstenger> did you do anything to try to install trytond ?
2016-03-19 04:33 -!- zprayash(~prayash@ has joined #tryton
2016-03-19 04:34 <prayashm> I had first used the pip install trytond
2016-03-19 04:34 <prayashm> later I cloned the repo and used python install
2016-03-19 04:35 <kstenger> ok, did you uninstall the previously installed version from pip ?
2016-03-19 04:35 <kstenger> or are you working on different virtualenvs?
2016-03-19 04:35 <kstenger> (if any at all)
2016-03-19 04:40 <prayashm> I hadn't uninstalled the previous ones
2016-03-19 04:40 <prayashm> I just did now.
2016-03-19 04:40 <kstenger> any change now?
2016-03-19 04:42 <prayashm> Yes, a slightly different output
2016-03-19 04:42 <prayashm>
2016-03-19 04:42 <prayashm> should I use bin/trytond-admin instead?
2016-03-19 04:43 <kstenger> oh you are using a global one, so you are not using any virtualenv I suppose
2016-03-19 04:43 <kstenger> right?
2016-03-19 04:43 <prayashm> yes, you are right. no virtualenv
2016-03-19 04:44 <kstenger> ok, try using the relative path as you just said
2016-03-19 04:44 <prayashm> Just did, this is the output
2016-03-19 04:46 <prayashm> should I try virtualenv?
2016-03-19 04:46 <prayashm> Or go for starting over again from cloning of the repo?
2016-03-19 04:48 -!- prayashm(~prayash@ has joined #tryton
2016-03-19 04:49 <kstenger> I think there is something wrong on your postgres setup, but I don't realize at first what it is, let's check some more docs
2016-03-19 04:51 <kstenger> did you install psycopg2 ?
2016-03-19 04:51 <prayashm> I don't think so. Thanks for helping. I am heading to college. Will surely try that.
2016-03-19 04:52 <kstenger> ok, you can install it with pip, make sure version is >= 2.5
2016-03-19 07:05 -!- JosDzGx(~Thunderbi@ has joined #tryton
2016-03-19 07:36 -!- ccaz( has joined #tryton
2016-03-19 07:40 -!- frispete_( has joined #tryton
2016-03-19 08:24 -!- ccaz( has left #tryton
2016-03-19 08:50 -!- kstenger( has joined #tryton
2016-03-19 08:55 -!- Telesight( has joined #tryton
2016-03-19 09:03 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-03-19 09:36 -!- aroncero_(~aroncero@ has joined #tryton
2016-03-19 10:34 -!- aroncero_(~aroncero@ has joined #tryton
2016-03-19 10:49 -!- nicoe(~nicoe@2a02:a03f:30a9:300:ee55:f9ff:fe7b:f7ac) has joined #tryton
2016-03-19 11:47 -!- csotelo(~csotelo@ has joined #tryton
2016-03-19 11:56 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-03-19 12:22 -!- shrox(shrox@nat/iiit/x-xyjabdwxhjdkxmwf) has joined #tryton
2016-03-19 12:24 <shrox> cedk: I don't need to conform to the python software foundation gsoc template in its exactitude, do I? It's just for reference purposes, isn't it?
2016-03-19 12:30 <cedk> shrox: I think so but it is better to follow it
2016-03-19 12:30 <shrox> cedk: Okay.
2016-03-19 12:37 -!- toshad(uid150688@gateway/web/ has joined #tryton
2016-03-19 12:46 <shrox> cedk: Will 'FODT support for relatorio' project will require me to work entirely with the relatorio code base?
2016-03-19 12:51 <shrox> cedk: Also, will the proposal to move away from genshi affect this project?
2016-03-19 12:56 <shrox> kstenger: maybe you can answer my questions?
2016-03-19 13:40 -!- mariomop(~quassel@ has joined #tryton
2016-03-19 13:51 -!- prayashm(~AndChat22@ has joined #tryton
2016-03-19 14:20 -!- nicoe(~nicoe@2a02:a03f:30a9:300:ee55:f9ff:fe7b:f7ac) has joined #tryton
2016-03-19 14:26 -!- prayashm(~prayashm@ has joined #tryton
2016-03-19 14:30 -!- Telesight( has joined #tryton
2016-03-19 14:47 -!- Zephman( has joined #tryton
2016-03-19 14:59 <prayashm> kstenger: Thanks for helping. I finally got past the database config. I hadn't installed psycopg2 :(
2016-03-19 15:45 -!- smarro(~sebastian@ has joined #tryton
2016-03-19 16:28 <kstenger> prayashm: great!
2016-03-19 16:29 <kstenger> I finally got MY sao working last night too, hehehe
2016-03-19 16:34 <prayashm> haha!
2016-03-19 16:36 <prayashm> I am still trying to figure out issue5243.
2016-03-19 16:45 <kstenger> prayashm: is there some specific question you can formulate on it or some concept hard to figure out?
2016-03-19 16:46 <prayashm> kstenger: I am trying to replicate the issue. For that am trying to edit one of the already defined views. But it seems they are uneditable.
2016-03-19 16:47 <kstenger> prayashm: what did you try?
2016-03-19 16:47 <prayashm> kstenger: Went to Administration/User Interface/Views
2016-03-19 16:48 <prayashm> kstenger: Then filtered to the form views.
2016-03-19 16:48 <prayashm> kstenger: Clicked on a view e.g. party.address
2016-03-19 16:49 <prayashm> kstenger: I could see the View Architecture. Clicked on Show. It showed the preview.
2016-03-19 16:49 <prayashm> kstenger: But am unable to edit any of the xml.
2016-03-19 16:49 <kstenger> prayashm: views are located in each module in the views subdirectory. You should modify them there, just in case make an update of the database and re-run the server (and reconnect from the client) (altough sometimes not both actions are needed to refresh, it's better to do it)
2016-03-19 16:52 <prayashm> kstenger: I had installed all the modules using sao interface. Where do those modules go?
2016-03-19 16:52 <prayashm> kstenger: they aren't at the trytond/modules folder
2016-03-19 16:53 <kstenger> prayashm: for modules to be available for "install" (within the client, sao or gtk) they need to be already placed in the server's subdirectory trytond/modules/
2016-03-19 16:54 <kstenger> unless you installed them with pip or the like... which makes your install a mess, not good for development, because you need all the development versions for this
2016-03-19 16:55 <kstenger> prayashm: you should install everything from repo for development
2016-03-19 16:56 <prayashm> kstenger: so i'll all the modules installed via sao interface. and use the repo version instead, isn't it?
2016-03-19 16:56 <prayashm> kstenger: i'll remove*
2016-03-19 16:57 <kstenger> prayashm: I think you would be better off starting from scratch, with a new repo for all, clonning everything with the hgnested extension of mercurial. But before you would need to uninstall all you had installed so far (uninstall, not just delete)
2016-03-19 16:58 <prayashm> kstenger: Ohkay. I'll do exactly that
2016-03-19 17:00 <prayashm> kstenger: I did pip uninstall tryton trytond
2016-03-19 17:01 <prayashm> kstenger: For the repos installation. There's no argument for uninstalling in python --help
2016-03-19 17:02 <prayashm> kstenger: Should I delete the /var/lib/trytond for uninstalling?
2016-03-19 17:02 <kstenger> try pip list and pip uninstall (I have had to run uninstall twice for each package)
2016-03-19 17:02 <kstenger> prayashm: no, I don't think so
2016-03-19 17:03 <prayashm> kstenger: Oh right right. pip list has all the modules that I had installed through sao interface
2016-03-19 17:03 <kstenger> but again, you had to install them to the system before they even appeared in the sao client
2016-03-19 17:04 -!- csotelo(~csotelo@ has joined #tryton
2016-03-19 17:04 <prayashm> kstenger: why is that?
2016-03-19 17:04 <kstenger> prayashm: it
2016-03-19 17:05 <kstenger> it's how it works, the client only sees the modules you installed in your system/virtualenv where the server runs
2016-03-19 17:05 <kstenger> when you tell the client to install a module, what it does is to apply the changes of this module to your database
2016-03-19 17:06 <kstenger> and adds all the logics provided by the module (and any of it's dependencies). Only database wide.
2016-03-19 17:10 <kstenger> prayashm: tell me if this is not clear for you
2016-03-19 17:10 <prayashm> kstenger: But isn't client supposed to see what the server (trytond) provides?
2016-03-19 17:10 <kstenger> yes, but the server will only see what you install in your system
2016-03-19 17:11 <kstenger> you could install a server with no modules available at all
2016-03-19 17:11 <kstenger> but you can have a server with all modules available, then you can have several databases, each of them working with a different subset of those modules
2016-03-19 17:12 <kstenger> with the same server
2016-03-19 17:12 <prayashm> kstenger: Oh great! Then they'll be sharing the modules installed in the system right?
2016-03-19 17:12 <kstenger> yes
2016-03-19 17:13 <prayashm> kstenger: :D That's really great!
2016-03-19 17:14 <kstenger> so, in development, the only thing to keep in mind, is that, if you had a setup like the one I just described, all the databases should be updated to work well with your changes so you usually work just one db at a time unless you need a complex system in production :-)
2016-03-19 17:15 <prayashm> kstenger: When I am using the repos of individual modules. I'll clone them to trytond/modules. How would those modules be served i.e. show up in client?
2016-03-19 17:15 <prayashm> kstenger: As the database installation will be system wide.
2016-03-19 17:18 <kstenger> prayashm: you update the database with --all so the new modules won't be directly installed to the db, but they will become available for install.
2016-03-19 17:18 <kstenger> prayashm: if you used update with -u modulename, then you are directly installing the module to the database, as if you did it from the client
2016-03-19 17:19 <prayashm> kstenger: understood. I'll avoid that.
2016-03-19 17:19 <prayashm> kstenger: I removed all the trytond- modules from pip list by uninstalling them one by one.
2016-03-19 17:19 <kstenger> prayashm: sometimes it's useful, if you missed some dependency, because else, the server will complain
2016-03-19 17:20 <kstenger> prayashm: good
2016-03-19 17:21 <prayashm> kstenger: I see. So shouldn't one be ideally cloning the repo for that module into the trytond/modules/ directory?
2016-03-19 17:21 <prayashm> kstenger: i.e. cloning the repo for missing module dependency
2016-03-19 17:22 <kstenger> yes, you have to clone it... I feel something is not clear for you on this point but I don't see what
2016-03-19 17:22 <kstenger> (brb, preparing lunch)
2016-03-19 17:26 <prayashm> kstenger: I think I got it.
2016-03-19 17:27 <prayashm> kstenger: Hehe. I'll be having my dinner here.
2016-03-19 17:29 <kstenger> prayashm: the system works like this because then you can have installed in your system not just from the "official" modules, there is a lot of useful modules that are not official, and you can create your own modules too. Any module should go to the trytond/modules dir. Then you decide on which database(s) you want to install it
2016-03-19 17:31 <prayashm> kstenger: Perfect!
2016-03-19 17:32 <prayashm> kstenger: the picture is getting clear :D Really I just can't stop thanking you! :D
2016-03-19 17:32 <kstenger> prayashm: you are very welcome :-)
2016-03-19 17:33 <prayashm> kstenger: are you free?
2016-03-19 17:34 <kstenger> free? in what sense :-D lol
2016-03-19 17:35 <prayashm> kstenger: Hehe. You were preparing lunch. I am beginning to start cloning again. I just wanted to make sure that I am on the right track.
2016-03-19 17:36 <kstenger> prayashm: I have to go out, something is missing for acompany food, but I'll be back in a few minutes, so ask whatever you need, and I'll see it at my return
2016-03-19 17:38 <prayashm> kstenger: I removed the files /usr/local/bin/trytond (and tryton-admin, trytond-cron etc.)
2016-03-19 17:38 <prayashm> kstenger: I deleted the repos trytond and tryton as well.
2016-03-19 17:39 <prayashm> kstenger: I'll be using virtualenv for trytond from now on.
2016-03-19 17:39 <prayashm> kstenger: Can I consider this state to be fresh to start over? Or some traces of trytond can still be somewhere?
2016-03-19 17:49 <csotelo> deasr coders, about the invoice deposit module, deposit could generate invoices or movements or are just simple deposits? thanks
2016-03-19 17:59 <kstenger> prayashm: you have to try the new install to confirm so, but it looks good!
2016-03-19 18:00 <kstenger> csotelo: I don't know, and the channel seems quiet today (except for me and prayashm) you may consider asking out in the mailing list
2016-03-19 18:01 <csotelo> kstenger, I have noticed that... anyway thanks a lot
2016-03-19 18:04 <kstenger> prayashm: inside the virtualenv, and for development purposes it's better to use "pip install -e" for each repo you download
2016-03-19 18:19 <cedk> csotelo: a deposit is an invoice
2016-03-19 18:19 <csotelo> thanks a lot cedk
2016-03-19 18:21 <cedk> csotelo: there is a coming sale_deposit module
2016-03-19 18:21 <csotelo> nice!
2016-03-19 18:49 -!- eeshangarg(~eeshangar@ has joined #tryton
2016-03-19 18:52 <eeshangarg> cedk: I have been reading some of the pywebdav code and I've also been taking a look at wsgidav. And you are right, they take quite different approaches towards implementation. Will we need to start from scratch or will some of the existing code still be relevant?
2016-03-19 18:53 <eeshangarg> cedk: I only have a couple of questions about whether I am taking the right approach. If you could please answer some of them, I should be able to get started with a proposal. :-)
2016-03-19 18:54 <cedk> eeshangarg: I think all th network/protocol must be done from scratch
2016-03-19 18:54 <cedk> eeshangarg: but we need to keep the data model which uses the ORM of Tryton
2016-03-19 18:56 <cedk> eeshangarg: so mainly it is about to replace the files webdav/ calendar/ party_vcarddav/
2016-03-19 18:56 <cedk> also it will be great if it could be composed in the current WSGI application
2016-03-19 18:59 <eeshangarg> cedk: Ok, that makes sense. Wait, we don't need to replace webdav/
2016-03-19 19:01 <cedk> eeshangarg: normally no, except maybe small changes
2016-03-19 19:01 <cedk> eeshangarg: it is the data model
2016-03-19 19:05 <eeshangarg> cedk: which doesn't need to change to accomodate wsgidav. Ok, sounds good. A couple of follow up questions. It would mean a lot to me if you could tell me if I'm on the right track or not. In, WebDavAuthRequestHandler can just be a wsgidav RequestServer, and TrytonDAVInterface can be reimplemented as a wsgidav DAV-Provider, right? I'm sort of new to webdav. :-)
2016-03-19 19:07 <cedk> eeshangarg: I think so but I'm not very familiar with wsgidav for now
2016-03-19 19:11 <eeshangarg> cedk: Hmm.. I think that should be it, because the rest of the architecture, like the webdav thread should be independent of the protocol implementation and should require minimal changes.
2016-03-19 19:14 <eeshangarg> cedk: Alright, I'll submit an easy patch today, and work on a draft proposal. Can I please send it to you on the mailing list for a review before I submit?
2016-03-19 19:16 <kstenger> eeshangarg: you can send a draft proposal, and receive comments in it if you use a google doc
2016-03-19 19:17 <cedk> eeshangarg: you can submit draft proposal via the Google application
2016-03-19 19:19 <eeshangarg> cedk, kstenger: Oh, okay! I actually didn't know that. This is my first time applying for GSOC. I am a first year CS undergraduate at Memorial University, St. John's, NL, Canada. :-)
2016-03-19 19:19 <cedk> eeshangarg: we don't know so much the google application because it changed a lot since last time we participate (3-4 years ago)
2016-03-19 19:20 <cedk> eeshangarg: also you can apply for up to 5 ideas
2016-03-19 19:23 <eeshangarg> cedk: Oh, okay. I would like to work on the webdav thing. It seems the most challenging and the most interesting, even though I am fairly new to webdav and tryton itself. But I believe I can do it with the mentors' guidance.
2016-03-19 19:24 <cedk> eeshangarg: yes I think it is a good project if you want to learn about HTTP and WebDAV
2016-03-19 19:24 <cedk> eeshangarg: by the way, do you speak french?
2016-03-19 19:28 <eeshangarg> cedk: No, I don't. But plan on taking it in university next year and apply for a bilingual certificate. Always wanted to learn French, because a lot of my friends speak it
2016-03-19 19:29 <cedk> eeshangarg: just in case because we have #tryton-fr
2016-03-19 19:31 <eeshangarg> cedk: That's great. I'm guessing that most of the developers of the project must be French speakers then. :-)
2016-03-19 19:34 <cedk> eeshangarg: not really, we are two in the core
2016-03-19 19:37 <kstenger> cedk: what does it mean when reviewbot says it's not aplicable?
2016-03-19 19:38 <kstenger> the patch is not aplicable*
2016-03-19 19:38 <eeshangarg> kstenger: Did you figure out the problem with the sqlite database? The one with the client always saying that it was locked? cedk: I would appreciate some help with this. I setup a sqlite database with a config file using trytond-admin. and then I start the server with the same config file. and then I invoke the client, log in to the database as admin but when I get to the module configuration wizard, and click on ok, it gives an error that the
2016-03-19 19:38 <eeshangarg> database is locked. Any idea why this may be? :-)
2016-03-19 19:40 <kstenger> eeshangarg: no, I don't realise what the problem is
2016-03-19 19:40 <cedk> kstenger: it means it could not apply the patch on the current repository
2016-03-19 19:41 <cedk> eeshangarg: normally it is fixed in the repo
2016-03-19 19:41 <kstenger> cedk: ok, thanks
2016-03-19 19:42 <cedk> eeshangarg:
2016-03-19 19:42 <eeshangarg> cedk: Oh ok, so if I clone again, I shouldn't get this problem again?
2016-03-19 19:43 <kstenger> eeshangarg: just pull and update
2016-03-19 19:44 <eeshangarg> kstenger, cedk: Cool! Thanks! :-)
2016-03-19 20:07 -!- prayashm(~prayashm@ has joined #tryton
2016-03-19 20:52 -!- kstenger1( has joined #tryton
2016-03-19 20:57 -!- kstenger( has joined #tryton
2016-03-19 21:44 -!- smarro(~sebastian@ has joined #tryton
2016-03-19 21:46 -!- prayashm(~prayashm@ has joined #tryton
2016-03-19 23:08 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-03-19 23:27 -!- Zephman( has joined #tryton
2016-03-19 23:49 -!- prayashm(~prayash@ has joined #tryton

Generated by 2.17.3 by Marius Gedminas - find it at!