IRC logs of #tryton for Thursday, 2013-11-21

chat.freenode.net #tryton log beginning Thu Nov 21 00:00:03 CET 2013
2013-11-21 10:18 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton
2013-11-21 10:52 <grasbauer> cedk: ping
2013-11-21 10:55 <cedk> grasbauer: pong
2013-11-21 10:55 <grasbauer> cedk: wanna finish this: http://codereview.tryton.org/230004/patch/8001/4007
2013-11-21 10:56 <grasbauer> cedk: I read about a easier way to commit patches - but I can't remember where
2013-11-21 10:57 <cedk> grasbauer: you mean hgreview ?
2013-11-21 10:59 <grasbauer> cedk: don't know exactly ... following wiki is right now the proposed way - have to learn it each time again
2013-11-21 10:59 <grasbauer> +?
2013-11-21 11:00 <LordVan> hi
2013-11-21 11:01 <LordVan> got a question: how suitable is tryton for DMS purposes (mostly would be scanned pdf - ocr would be nice)
2013-11-21 11:02 <LordVan> (I remember having read somewhere about tryton and DMS)
2013-11-21 11:05 <cedk> grasbauer: yes
2013-11-21 11:06 <cedk> LordVan: tryton has only a simple WebDAV interface that can be linked with records of Model
2013-11-21 11:07 <LordVan> cedk, ok so not really (yet) usable as a replacemetn for a document management system
2013-11-21 11:09 <cedk> LordVan: depends of your needs
2013-11-21 11:09 <LordVan> scanned pdfs, ocr , keywords, search,..
2013-11-21 11:09 <cedk> LordVan: DMS is a word just like CRM, it means so much
2013-11-21 11:09 <LordVan> yeah
2013-11-21 11:10 <cedk> LordVan: Tryton doesn't do any of those things
2013-11-21 11:10 <LordVan> yeah
2013-11-21 11:10 <LordVan> that's what I thought
2013-11-21 11:10 <LordVan> just trying to find a way to get rid of the -literarily- hundreds of folders with 'old' order stuffs
2013-11-21 11:10 <LordVan> and project docs
2013-11-21 11:13 <grasbauer> LordVan: you can write a model which indexes the documents (posibly with sharoons modul for elastic search) and stores a link to filesystem. then you could open the file in a browser
2013-11-21 11:13 <LordVan> grasbauer, hmm sounds like quite some work - and i'd have to obviously make sure it always works with new verison,..
2013-11-21 11:13 <LordVan> hm
2013-11-21 11:13 <LordVan> nto sure if i have that sort of time to commit to it
2013-11-21 11:15 <LordVan> anyway i got a different question that is more important right now anyway
2013-11-21 11:16 <LordVan> We currently got a completely spreadsheet based system (also for things like order number lists,..) I want to migrate to tryton for the new year but I doubt I'll manage to get everything sorted to do invoices,.. through tryton by then too
2013-11-21 11:16 <LordVan> is it possible to do a migration in a sort of partial way
2013-11-21 11:16 <LordVan> ?
2013-11-21 11:16 <LordVan> what I mean is i want the lists of order numbers (and customer data as well) in a db asap
2013-11-21 11:16 <LordVan> but i don't mind that much if the invoices are still written manually until i get the time to sort the templates,..
2013-11-21 11:17 <grasbauer> LordVan: like creating a new number in tryton and using it outside?
2013-11-21 11:28 <LordVan> yes basically
2013-11-21 11:29 <LordVan> so i know order 2013-1148 is for customer XY and also had an offer number 01234 , delivery note 123124 and invoice 123454
2013-11-21 11:29 <LordVan> since i think it'D take me a while to get this whole thing set up and i ain't got much time anymore
2013-11-21 11:31 <grasbauer> LordVan: setting up this in Tryton needs 2 hours + styling of the reports (documents) for your company needs
2013-11-21 11:32 <LordVan> grasbauer, not for someone who has never done it before ^^
2013-11-21 11:32 <grasbauer> LordVan: Offer==Sale, Invoice=Invoice, Delivery Note is part of the stock module
2013-11-21 11:32 <grasbauer> LordVan: where do you come from?
2013-11-21 11:32 <LordVan> Austria
2013-11-21 11:36 <grasbauer> LordVan: Do you need accounting? Don't know if there is a accounting module for Austria nor if you need accounting from start
2013-11-21 11:37 <LordVan> grasbauer, not to start with at least. we got a book keeping program already anyway
2013-11-21 11:37 <LordVan> the importabnt parts for me to start with are offers, invoices, delivere notes
2013-11-21 11:37 <grasbauer> LordVan: ok - so you need to start with tryton ;)
2013-11-21 11:37 <LordVan> then after that our "project sheets" but that is more complicated and will require custom module
2013-11-21 11:37 <LordVan> indeed
2013-11-21 11:38 <LordVan> and it needs to be simple enough for our PC N00bs
2013-11-21 11:38 <LordVan> ^^
2013-11-21 11:38 <LordVan> although for some i have no hope ..
2013-11-21 11:38 <LordVan> you knwo the ones where you move an icon on the desktop and tehy call you saying the program is gone ^^
2013-11-21 11:38 <grasbauer> LordVan: There is a project module as well - but anyway - start tryton ...
2013-11-21 11:39 <LordVan> I know about the project module but our needs are a bit specific - i discussed this with cedk before ;)
2013-11-21 11:40 <LordVan> I just really need to get this done for the next year. the current situation is driving me nuts
2013-11-21 11:41 <grasbauer> LordVan: And what are your doubts to not start a tryton installation right now?
2013-11-21 11:41 <LordVan> that I havenT' figured it out myself yet how to 'properly' use it :9
2013-11-21 11:42 <LordVan> ie for writing an invoice e.g.
2013-11-21 11:42 <LordVan> also my cliend on linux keeps crashing with some pygtk error .. :(
2013-11-21 11:42 <LordVan> but that is not that much of an issue atm
2013-11-21 11:42 <LordVan> the windows installer one seems to work
2013-11-21 11:43 <LordVan> which is going to be the main deployment anyway
2013-11-21 11:43 <LordVan> unforutnately ..
2013-11-21 11:43 <LordVan> btw
2013-11-21 11:44 <grasbauer> LordVan: So start and feel free to ask in the mailinglist - and you can start the next year as hero who has implementet a really nice erp :)
2013-11-21 11:44 <LordVan> lol
2013-11-21 11:44 <LordVan> btw if i got multiple contacts for a customer can they be somehow linked ? so e.g. I go to customer A and it lists my different contacs?
2013-11-21 11:45 <grasbauer> LordVan: Party - contactmechanism
2013-11-21 11:45 <sisalp> LordVan: ask a guided tour to someone who speaks your language, you'll save a lot of time
2013-11-21 11:45 <LordVan> probably ;)
2013-11-21 11:46 <grasbauer> LordVan: for example me ;)
2013-11-21 11:46 <LordVan> grasbauer, ^^ where are you located? germany?
2013-11-21 11:47 <sisalp> grasbauer: LordVan: I use NX shadow screen for this, quite efficient
2013-11-21 11:47 <grasbauer> LordVan: Yes
2013-11-21 11:47 <grasbauer> LordVan: Do you have already a running server installation?
2013-11-21 11:48 <LordVan> grasbauer, yes a test install
2013-11-21 11:50 <grasbauer> LordVan: so feel free to ask in #tryton.de or contact me personally
2013-11-21 11:50 <LordVan> ah I was unaware of #tryton.de ^^
2013-11-21 11:51 <LordVan> probably easier than thinking about the translations too :D
2013-11-21 11:51 <LordVan> sisalp, ;)
2013-11-21 11:52 <sisalp> LordVan: you can also create a database on tryton_30.s101.tryton-online.com Port : 8097
2013-11-21 11:53 <LordVan> sisalp, what would be the benefit of that compared to my own test install?
2013-11-21 11:53 <sisalp> LordVan: and get a true hosting for free by translating this page : http://openerp-online.fr/20-tryton-on-line-hebergement-gratuit.html
2013-11-21 11:54 <sisalp> LordVan: easier to share with your teacher
2013-11-21 11:54 <LordVan> ^^
2013-11-21 11:54 <LordVan> o.o@ http://www.tryton.org/services.html btw
2013-11-21 11:54 <LordVan> the one in vienna doesn'T seem to exist anymore -- at least the webpage
2013-11-21 11:58 <sisalp> nicoe: the page should be updated then
2013-11-21 11:58 <nicoe> sisalp: I was just thinking about that actually
2013-11-21 11:59 <cedk> sisalp: hard to decide to remove without real knowdledge to what happens
2013-11-21 11:59 <cedk> sisalp: it is not because the website is down that they don't exist anymore
2013-11-21 12:01 <LordVan> I can call them fo royu if oyu want me to -- after lunch ;)
2013-11-21 12:02 <sisalp> cedk: yes they have a mail too, we can try
2013-11-21 12:07 <sisalp> cedk: incore.at is not in the dns...
2013-11-21 12:07 <nicoe> LordVan: I was planning to send them an email but if you call them then it's faster
2013-11-21 12:10 <rmu> LordVan: I'm also from austria. small tryton installation, no accounting.
2013-11-21 13:10 <LordVan> rmu, :)
2013-11-21 13:12 <LordVan> nicoe, it is a mobile number btw and no answer to my call just now
2013-11-21 13:13 <nicoe> LordVan: ok thanks
2013-11-21 13:14 <LordVan> sisalp, I can'T read french ^^
2013-11-21 13:18 <LordVan> rmu, self installed or did you get some support from somehwere?
2013-11-21 13:19 <rmu> LordVan: self installed
2013-11-21 13:19 <LordVan> ;)
2013-11-21 13:19 <rmu> used tiny at first, then openerp, then tryton
2013-11-21 13:21 <LordVan> ah
2013-11-21 13:21 <LordVan> :)
2013-11-21 13:21 <LordVan> i am still sort of trying to wrap my head around half the terms as in what is what ;)
2013-11-21 13:25 <rmu> don't bother looking at openerp
2013-11-21 13:25 <LordVan> I did before there was tryton ^^
2013-11-21 13:25 <LordVan> I've been following tryton for a while
2013-11-21 13:26 <LordVan> in fact been talking with cedk before the fork was actually exsitent haha
2013-11-21 13:29 <rmu> one thing that can be problematic if you use tryton like you described above isrecovering from stock-level chaos
2013-11-21 13:39 <LordVan> stock-level chaos?
2013-11-21 14:26 <vishesh> cedk: If I'm right, there is no Concat function in python-sql? I've created an issue with patch https://code.google.com/p/python-sql/issues/detail?id=16
2013-11-21 14:26 <vishesh> cedk: Need this for bcrypt patch, which I just uploaded
2013-11-21 14:27 <cedk> vishesh: concat function is not standard
2013-11-21 14:27 <cedk> vishesh: but there is concat operator
2013-11-21 14:30 -!- priyankarani(~priyanka@122.177.42.167) has left #tryton
2013-11-21 14:31 <vishesh> cedk: Ok. Thanks. I will update my patch with that.
2013-11-21 14:52 -!- JGras(~jan@dslb-094-223-222-104.pools.arcor-ip.net) has left #tryton
2013-11-21 15:09 <LordVan> if i want to update my tryton 2.8 server,.. to 3.0 is there some document about how to go about it?
2013-11-21 15:09 <LordVan> or is it enough to just emerge the new one
2013-11-21 15:09 <cedk> LordVan: normally a simple update should work
2013-11-21 15:17 <LordVan> ok i will try it is only a test install anyway
2013-11-21 15:18 <LordVan> emerge -avu $(qlist -I -C | grep tryton) it is then ;)
2013-11-21 15:20 <LordVan> cedk, i got an error installing python-sql
2013-11-21 15:20 <LordVan> from the overlay
2013-11-21 15:21 <LordVan> http://pastebin.com/HfeWVFHV
2013-11-21 15:25 <cedk> LordVan: what are your locale ?
2013-11-21 15:25 <LordVan> i just tried with LANG=C and LC_ALL=C
2013-11-21 15:28 <LordVan> PYTHON_TARGETS="python2_7 python3_3 -python2_6 -python3_2" btw
2013-11-21 15:36 <cedk> LordVan: could you try with http://codereview.appspot.com/30320043
2013-11-21 15:40 <LordVan> cedk, yeah that seems to fix it
2013-11-21 15:41 <LordVan> I tend to use LANG=C LOCALE=C when using putty ;)
2013-11-21 15:41 <cedk> LordVan: strange because with such configuration I can not reproduce your issue
2013-11-21 15:42 <cedk> LordVan: it should be linked to something else but I don't know what
2013-11-21 15:42 <LordVan> yeah
2013-11-21 15:42 <LordVan> weird
2013-11-21 15:42 <LordVan> but i guess that line won't hurt anyone
2013-11-21 16:02 <LordVan> btw
2013-11-21 16:02 <LordVan> another thing cedk
2013-11-21 16:02 <LordVan> http://pastebin.com/L1W6z1DQ
2013-11-21 16:02 <LordVan> http://docs.python.org/2/library/configparser.html
2013-11-21 16:02 <LordVan> renamed to configparser
2013-11-21 16:14 <LordVan> cedk, because it is not using PYTHON_VERSIONS
2013-11-21 16:14 <LordVan> it is trying to install 3.3
2013-11-21 16:15 <LordVan> or rather current active python
2013-11-21 16:16 <LordVan> I just changed my current python version to 2.7 as active and it worked fine
2013-11-21 16:16 <cedk> LordVan: Tryton is not python3 compatible
2013-11-21 16:17 <LordVan> i know
2013-11-21 16:17 <LordVan> but that one ebuild doesnt use PYTHON_VERSIONS
2013-11-21 16:17 <LordVan> it hink it is not using a certain eclass
2013-11-21 16:17 <cedk> LordVan: http://hg.tryton.org/tryton-overlay/file/34d283218a83/app-tryton/account_de_skr03/account_de_skr03-3.0.0.ebuild#l24
2013-11-21 16:18 <LordVan> I just looked at the ebuild
2013-11-21 16:18 <LordVan> basically it is missing PYTHON_COMPAT line and not inheriting distutils-r1 yet
2013-11-21 16:19 <cedk> LordVan: ok did not migrate correctly to distutils-r1
2013-11-21 16:19 <LordVan> yep that waht i meant to say ;)
2013-11-21 16:19 <LordVan> that one at least is easy to figure out & fix ^^
2013-11-21 16:20 <LordVan> out of curiousity are there plans for python3 any time soon ?
2013-11-21 16:20 <LordVan> i recon it'd be quite a task
2013-11-21 16:21 <LordVan> ACTION looks for docs how to upgrade tryton2.8 db to 3.0
2013-11-21 16:23 <cedk> LordVan: fixed
2013-11-21 16:24 <LordVan> cedk, cool thanks :)
2013-11-21 16:24 <LordVan> hmm i can'T find anything about the db upgrade in the README
2013-11-21 16:25 <Pilou> LordVan: there is a wiki page: http://code.google.com/p/tryton/wiki/NotesOnUpgrade
2013-11-21 16:26 <LordVan> ah thanks
2013-11-21 16:26 <LordVan> google didn'T like me today
2013-11-21 16:28 <LordVan> Pilou, i get an error just trying to connect to my tryton2.8 db and can'T find much on how to migrate to new db
2013-11-21 16:28 <LordVan> maybe i'm being blind again ..^^
2013-11-21 16:29 <LordVan> ACTION runs trytond -u all
2013-11-21 16:29 <LordVan> might be good to mention that somewhere in the README or sth
2013-11-21 16:29 <LordVan> ^^
2013-11-21 16:31 <LordVan> anyway i'll probably continue tomorrow or later with this. cu later
2013-11-21 16:46 <sisalp> LordVan: to get a free hosting you have to use google or whatever to translate the page, indeed. Still hesitating to promote a free service worldwide.
2013-11-21 17:20 <zodman> s
2013-11-21 17:31 <LordVan> cedk, got a minute?
2013-11-21 17:32 <LordVan> got an issue with my fresh tryton 3 install on gentoo
2013-11-21 17:32 <LordVan> i think it has to do with new python-exec
2013-11-21 17:32 <LordVan> glib.GError: Datei »/usr/lib/python-exec/python2.7/share/pixmaps/tryton/tryton-icon.png« konnte nicht geöffnet werden: Datei oder Verzeichnis nicht gefunden
2013-11-21 17:35 <cedk> LordVan: don'T know anything about that
2013-11-21 17:36 <LordVan> basically it gets the PREFIX wrong in config.py
2013-11-21 17:37 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton
2013-11-21 17:37 <cedk> LordVan: looks like Gentoo has screw up python in the same way as debian
2013-11-21 17:38 <cedk> LordVan: how do you call tryton ?
2013-11-21 17:38 <LordVan> there are some discussions/bugs about python-exec
2013-11-21 17:38 <LordVan> just 'tryton'
2013-11-21 17:38 <LordVan> had some discussions in #gentoo-dev
2013-11-21 17:39 <LordVan> or rather just watched mostly ;)
2013-11-21 17:39 <LordVan> since i am not qualified to comment ^^
2013-11-21 17:39 <LordVan> I think the sys.argv[0] seems to be different with newer püython-exec
2013-11-21 17:39 <cedk> LordVan: on wiki it says: basename(sys.argv[0]) is not changed by the wrapping (the path is),
2013-11-21 17:39 <cedk> LordVan: but apparently it doesn't
2013-11-21 17:40 <LordVan> well actually in the code there is os.path.dirname(sys.argv[0])))
2013-11-21 17:40 <LordVan> so it does use the dirname of argv[0]
2013-11-21 17:40 <LordVan> so it seems you can'T use that anymore
2013-11-21 17:40 <cedk> LordVan: do you use python-exec:2 ?
2013-11-21 17:42 <LordVan> yes
2013-11-21 17:42 <LordVan> i needed it for something else i think
2013-11-21 17:42 <LordVan> stupid upgrade messed with my system .. ^^
2013-11-21 17:43 <cedk> LordVan: so there is a bug as the path is changed into /usr/lib/python-exec/python2.7/ when it should be /usr/
2013-11-21 17:44 <LordVan> yeah
2013-11-21 17:44 <LordVan> seems annoying
2013-11-21 17:46 <sisalp> LordVan: to get a free hosting you have to use google or whatever to translate the page, indeed. Still hesitating to promote a free service worldwide.
2013-11-21 17:47 <LordVan> sisalp, yeah but i want to get it working here anyway ^^
2013-11-21 17:49 <LordVan> cedk, must be mgorny's wrapper then .. prolly
2013-11-21 17:51 <sisalp> LordVan: if for learning, I let you make your own experience, I thought you aim production on 1/01 ;-)
2013-11-21 17:54 <LordVan> cedk, I just asked him about the wrapper: <mgorny> LordVan: yes, we decided that keeping basename(sys.argv[0]) is more important
2013-11-21 17:55 <LordVan> sisalp, yes but i want it on the in-house server
2013-11-21 17:55 <LordVan> due to not that fast & reliable internet sometiems
2013-11-21 17:58 <cedk> LordVan: so what does it mean?
2013-11-21 17:59 <cedk> LordVan: it doesn't and they will fix it ?
2013-11-21 18:00 <LordVan> that means we need some other workaround
2013-11-21 18:00 <LordVan> ah hang on lemme paste my qeustion too
2013-11-21 18:01 <LordVan> <LordVan> mgorny, could it be taht the python-exec2 wrapper "breaks" dirname(sys.arg[0] ?
2013-11-21 18:01 <LordVan> <mgorny> LordVan: yes, we decided that keeping basename(sys.argv[0]) is more important
2013-11-21 18:02 <LordVan> so it won't work like that with the wrapper anymore :(
2013-11-21 18:03 <cedk> LordVan: I don't understand the answer
2013-11-21 18:04 <cedk> LordVan: does it mean that he find more important the dirname() return the python-exec path instead of the /usr/bin ?
2013-11-21 18:05 <LordVan> no
2013-11-21 18:06 <LordVan> it means it seems they had to pick if dirname() or basename() return correct values
2013-11-21 18:06 <LordVan> and they picked basename
2013-11-21 18:06 <LordVan> - i think
2013-11-21 18:06 <LordVan> feel free to head over to #gentoo-dev and ask mgorny ;)
2013-11-21 18:06 <LordVan> i gotta run unfortunately. cu later/tomorrow.
2013-11-21 18:14 <mgorny> cedk: LordVan mentioned you needed an explanation for python-exec:2 issues
2013-11-21 18:16 <cedk> mgorny: yes
2013-11-21 18:16 <cedk> mgorny: apparently he installs tryton from your overlay and tryton uses dirname of sys.argv[0] to find the share directory
2013-11-21 18:17 <cedk> mgorny: so normally tryton script is installed in /usr/bin/tryton and share in /usr/share
2013-11-21 18:17 <cedk> mgorny: but with python-exec, tryton thinks it is installed in /usr/lib/python-exec/python2.7/
2013-11-21 18:18 <cedk> mgorny: I'm wondering why not keep a correct dirname
2013-11-21 18:19 <mgorny> cedk: we need to rename the scripts somehow to distinguish python versions
2013-11-21 18:20 <mgorny> we used to just keep them as 'tryton-python2.7' etc. but that broke a number of tools that relied on basename(sys.argv[0])
2013-11-21 18:20 <cedk> mgorny: rename the script is not a problem, the problem is moving the script
2013-11-21 18:20 <mgorny> so we switched to moving it as that kept basename intact
2013-11-21 18:21 <mgorny> sadly, at the point nobody thought that there are packages that actually use dirname(argv[0]) == /usr/bin to find their data
2013-11-21 18:21 <cedk> mgorny: how could we do in an other way?
2013-11-21 18:22 <mgorny> honestly? i have no idea
2013-11-21 18:22 <mgorny> so far we either thought of breaking basename or dirname
2013-11-21 18:22 <mgorny> or did you mean finding the data?
2013-11-21 18:22 <cedk> mgorny: finding the data
2013-11-21 18:22 <mgorny> what are you doing currently? using ../share/... ?
2013-11-21 18:23 <cedk> mgorny: for me, tryton could be installed via setup.py in any directory but the layout is always DIR/bin DIR/share
2013-11-21 18:23 <mgorny> and do you want to support running from build directory?
2013-11-21 18:23 <cedk> mgorny: yes we store images in share that the gtk client needs
2013-11-21 18:23 <cedk> mgorny: yes also
2013-11-21 18:24 <mgorny> cedk: the easy way for setup.py installs would be to use sys.prefix
2013-11-21 18:24 <cedk> mgorny: it doesn't work
2013-11-21 18:24 <mgorny> why?
2013-11-21 18:25 <cedk> mgorny: sorry maybe it will work
2013-11-21 18:25 <mgorny> i'm thinking of something like:
2013-11-21 18:25 <cedk> mgorny: does it work in virtual-env
2013-11-21 18:25 <mgorny> 1. start with dirname(__file__), see if that dir contains build-dir layout
2013-11-21 18:26 <mgorny> 2. then try sys.prefix
2013-11-21 18:26 <mgorny> cedk: i can't think of a reason it wouldn't but haven't tried
2013-11-21 18:26 <mgorny> then, i think setuptools has some means of finding installed data, you could check that as well
2013-11-21 18:27 <mgorny> 'pkg_resources' module
2013-11-21 18:28 <cedk> mgorny: we don't want to use pkg_resources because we want to be able to run it from source
2013-11-21 18:31 <cedk> mgorny: created: https://bugs.tryton.org/issue3515
2013-11-21 18:32 <mgorny> well, i then suggest either using two-step like i described above
2013-11-21 18:32 <mgorny> with dirname(__file__) and then either sys.prefix, pkg_resources or any other solution
2013-11-21 18:33 <mgorny> or something autotools-like -- substituting data path during install
2013-11-21 18:34 <mgorny> with the latter having the advantage of respecting whatever was passed to setup.py as --install-data
2013-11-21 18:34 <cedk> mgorny: the code already does that but use dirname instead of prefix
2013-11-21 18:35 <cedk> mgorny: http://hg.tryton.org/tryton/file/23c194518a21/tryton/config.py#l182
2013-11-21 18:37 <mgorny> oh my, scary call
2013-11-21 18:37 <mgorny> the /share/pixmaps sounds like you really want sys.prefix TBH
2013-11-21 18:43 <cedk> mgorny: yes this code needs a refactoring
2013-11-21 19:53 -!- pablovannini(~pablo@181.47.181.28) has left #tryton
2013-11-21 22:16 <zodman> qall

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