IRC logs of #tryton for Tuesday, 2013-08-06

chat.freenode.net #tryton log beginning Tue Aug 6 00:00:02 CEST 2013
2013-08-06 10:02 <sisalp> hi, trying today nereid install with version 2.6. Cannot find it on github and pypi. any pointer someone ?
2013-08-06 10:03 <sharoonthomas> sisalp: : https://pypi.python.org/pypi/Nereid
2013-08-06 10:04 <sharoonthomas> sisalp: 2.4, 2.6 and 2.8 latest stable releases
2013-08-06 10:26 <sisalp> sharoonthomas: ok, ./pip install Nereid==2.6.0.2 and got 2.6.0.2 in a virtualenv. It reinstalled also trytond and some modules. sounds correct
2013-08-06 10:26 <sharoonthomas> sisalp: yes it does
2013-08-06 10:26 <sharoonthomas> sisalp: you could install any of the nereid modules like a tryton module and the dependencies would be automatically installed for you
2013-08-06 10:31 <sisalp> sharoonthomas: ok, I set my environment in the preinstalled trytond directory which is 2.6 but pip adds trytond-nereid==2.8.0.1
2013-08-06 10:36 <sisalp> sharoonthomas: pip tells me trytond==2.8.2 while trytond d answers 2.6.7
2013-08-06 10:37 <sharoonthomas> sisalp: what was the package and version you gave in your pip install '?'
2013-08-06 10:39 <sisalp> sharoonthomas: pip install Nereid==2.6.0.2
2013-08-06 10:42 <sharoonthomas> sisalp: pip install 'nereid>=2.6,<2.7' will download and install the latest stable version of nereid in 2.6 series
2013-08-06 10:43 <sisalp> sharoonthomas: reason why I 'm back on 2.6 is that I didn't find nereid modules for 2.8 (catalog, cart,payment..)
2013-08-06 10:44 <sharoonthomas> sisalp: and if you are using the latest version of pip (1.4+) you will need to pass --pre since pytz is non PEP 386 compliant
2013-08-06 10:48 <sisalp> sharoonthomas: I get trytond-nereid==2.6.0.5 :-)
2013-08-06 10:49 <sisalp> pytz is install at system level as several generic dependencies, is it a problem ?
2013-08-06 10:51 <sharoonthomas> sisalp: should not be a problem then
2013-08-06 10:55 <sisalp> sharoonthomas: cannot find where it put trytond-nereid, not in trytond/modules
2013-08-06 10:59 <sisalp> ./lib/python2.7/site-packages/trytond_nereid-2.6.0.5-py2.7.egg-info seems it considered tryton is installed while I run it from source.
2013-08-06 11:02 <sisalp> sharoonthomas: so I think I have to make a nereid install from source too
2013-08-06 11:03 <sharoonthomas> sisalp: run it from source meaning ?
2013-08-06 11:03 <sisalp> no pip install on trytond
2013-08-06 11:03 <sisalp> wget, untar, start
2013-08-06 11:10 <sisalp> sharoonthomas: to ake some progress I copied nereid module to trytond active module directory. No idea what the implications will be
2013-08-06 11:10 <sisalp> make
2013-08-06 11:10 <sharoonthomas> sisalp: i just installed a new virtualenv with nereid 2.6.0.7 and i don't see any problems
2013-08-06 11:11 <sharoonthomas> sisalp: if you want to install from source, the best option is to download and run 'python setup.py install' in the folder
2013-08-06 11:12 <sisalp> sharoonthomas: but it will again consider trytond is in ./lib/python2.7/site-packages/
2013-08-06 11:12 <sharoonthomas> sisalp: where is your trytond ? (this installation is no different from other tryton modules)
2013-08-06 11:13 <sisalp> trytond is in ./trytond
2013-08-06 11:14 <sisalp> I don't use pip to install trytond and its modules
2013-08-06 11:14 <jvblasco> hi everyone
2013-08-06 11:14 <sharoonthomas> sisalp: ok, so you are not using python packaging ? in that case your only option is to place the folder in the modules directory
2013-08-06 11:14 <sharoonthomas> sisalp: never tried it myself
2013-08-06 11:15 <sisalp> sharoonthomas: I use hg and hg-nested
2013-08-06 11:15 <jvblasco> i tried it and didn't succed in making the module appear in the client after the trytond -d database -u all command
2013-08-06 11:16 <jvblasco> i mean placing the module in the modules directory
2013-08-06 11:19 <sisalp> jvblasco: correct I can't see it :-(
2013-08-06 11:23 <jvblasco> sisalp: how did u install tryton?
2013-08-06 11:23 <sisalp> sharoonthomas: I think I'll have to support pypi install which may be a big change in my scripts.
2013-08-06 11:25 <sisalp> jvblasco: basically hg, targz, wget, untar, run
2013-08-06 11:25 <sisalp> jvblasco: the system is designed to install tens of servers/day
2013-08-06 11:26 <sisalp> jvblasco: for each new server, only wget, untar, run
2013-08-06 11:27 <sisalp> jvblasco: now I wish to preinstall nereid too, and I fail
2013-08-06 11:30 <sharoonthomas> sisalp: if you don't use python packaging how do you manage dependencies ?
2013-08-06 11:30 <sisalp> jvblasco: pypi servers where not enough reliable in the past and often down
2013-08-06 11:30 <jvblasco> sharoonthomas: i did that in openERP manually
2013-08-06 11:31 <jvblasco> i guess it would be the same here if u don't use a packaging system
2013-08-06 11:31 <sharoonthomas> jvblasco: thats because openerp has no such capabilities
2013-08-06 11:31 <jvblasco> sharoonthomas: u mean handling dependencies?
2013-08-06 11:31 <sharoonthomas> jvblasco: yes
2013-08-06 11:31 <sisalp> sharoonthomas: jvblasco: yes openerp cannot do pip install
2013-08-06 11:32 <sharoonthomas> jvblasco: in the case of nereid, it has several external dependencies too. so manually installing all of them and maintaining the versions would be painful
2013-08-06 11:32 <jvblasco> sharoonthomas: hehehe i know openERP didn't have such things, and i guess that's why i'm here right now
2013-08-06 11:32 <sisalp> sharoonthomas: my script takes care of dependencies and analyses the setup.py file
2013-08-06 11:33 <sharoonthomas> sisalp: jvblasco; for example, nereid < 2.8.0.3 uses flask < 0.10 and the newer version uses flask 0.10
2013-08-06 11:33 <jvblasco> sisalp: btw i cannot help u any further, that kind of system is too much complex for my knowledge, anyway if u need any help with networking go for it
2013-08-06 11:33 <sharoonthomas> sisalp: jvblasco: how will you manage such things if you don't use python package management tools ?
2013-08-06 11:34 <jvblasco> sharoonthomas: u mean dependencies?
2013-08-06 11:34 <sharoonthomas> jvblasco: yes, python dependencies (not just tryton modules)
2013-08-06 11:34 <jvblasco> sharoonthomas: i'm learning to package in python using other modules as a guide
2013-08-06 11:35 <jvblasco> sharoonthomas: im more or less new in programming and this kind of stuff
2013-08-06 11:35 <jvblasco> sharoonthomas: i used to play with programming and systems as a hoby
2013-08-06 11:35 <sharoonthomas> jvblasco: also i think its not good practice to use code from repository for production installs. for me repository is for developers and releases are for production
2013-08-06 11:36 <jvblasco> sharoonthomas: u mean apt repos?
2013-08-06 11:36 <sisalp> sharoonthomas: you are right, it is complex, but so far I couldn't avoid it
2013-08-06 11:37 <sharoonthomas> sisalp: i think pypi (with mirrors) is pretty reliable and service like crate.io make it even better
2013-08-06 11:38 <jvblasco> sharoonthomas: btw i still don't have tryton in a production server, im just trying to migrate what we have in openERP while learning tryton
2013-08-06 11:38 <sharoonthomas> jvblasco: ok
2013-08-06 11:38 <jvblasco> sharoonthomas: i will need a tryton production server soon, though
2013-08-06 11:38 <sisalp> sharoonthomas: I agree again, but I still have to do my homework and be able to reinstall any version several years later
2013-08-06 11:39 <jvblasco> sharoonthomas: anyway right now i'm trying to implement a carrier price matrix module to suit our project needs
2013-08-06 11:39 <sisalp> sharoonthomas: today I manage this from revisions on hg repositories
2013-08-06 11:40 <sisalp> sharoonthomas: which means I don't take advantage from tryton high quality
2013-08-06 11:41 <jvblasco> sharoonthomas: with views in porting our realtime geolocalilation module as soon as posible to tryton. Right now we don't need it so it'll take a while
2013-08-06 11:42 <sisalp> jvblasco: carrier price matrix module : do you use the existing module for this ?
2013-08-06 11:43 <cedk> sisalp: we see that you are using hg: http://hg.tryton.org/awstats/cgi-bin/awstats.pl?framename=mainright&output=allhosts
2013-08-06 11:43 <cedk> sisalp: 3th position :-)
2013-08-06 11:46 <sisalp> cedk: but first in volume, 527 MB after 5 days, hope it doesn't impact your server
2013-08-06 11:47 <sisalp> All versions of Tryton are download every night to ptix.sisalp.net which creates ready to use archives
2013-08-06 11:47 <cedk> sisalp: hopefully, ovh has dropped the volum limitation
2013-08-06 11:48 <jvblasco> sisalp: nope didn't know it existed
2013-08-06 11:48 <cedk> sisalp: plato is the test server, it just does "hg update" every hours
2013-08-06 11:48 <jvblasco> sisalp: where may i find it?
2013-08-06 11:48 <cedk> sisalp: perhaps you could do the same?
2013-08-06 11:49 <sisalp> cedk: sharoon convinced me that I should go pip instead
2013-08-06 11:49 <cedk> jvblasco: I guess sisalp is talking about carrier* modules
2013-08-06 11:49 <sisalp> cedk: jvblasco: yes
2013-08-06 11:50 <cedk> sisalp: yes it is better because if everyone was doing like you, we will have issues
2013-08-06 11:50 <cedk> sisalp: pypi has CDN which allow them to "web-scale"
2013-08-06 11:50 <cedk> sisalp: normally hg is for devs
2013-08-06 11:51 <jvblasco> cedk, sisalp: and where may do i have a modules list, official and community or however u call it here?
2013-08-06 11:51 <sisalp> cedk: I got bad methods because this hosting script was initially for openerp
2013-08-06 11:51 <Pilou> sisalp: you could use the git mirror hosted on github
2013-08-06 11:52 <sisalp> jvblasco: ask pypi ;-)
2013-08-06 11:53 <cedk> jvblasco: http://hg.tryton.org/modules
2013-08-06 11:53 <sisalp> Pilou: yes, was thinking to add git in the list of possible sources
2013-08-06 11:54 <cedk> jvblasco: or on Pypi those released by the author: Tryton (if nobody makes fakes)
2013-08-06 11:54 <jvblasco> no carrier price matrix module in those places
2013-08-06 11:54 <jvblasco> i'll try to do my best to implement something usable
2013-08-06 11:54 <jvblasco> and hoping to learn a lot in the process
2013-08-06 11:55 <jvblasco> i need to model a scalable 4 dimension matrix for prices
2013-08-06 11:55 <cedk> jvblasco: the carrier module is designed to be extended to implement any kind of pricing
2013-08-06 11:55 <jvblasco> and with scalable i mean adding more dimensions
2013-08-06 11:56 <cedk> jvblasco: 4 dims pricing, that's very difficult to manage
2013-08-06 11:56 <sisalp> Pilou: the decision to install trytond by pypi has some impact of my upgrade/downgrade scripts
2013-08-06 11:56 <cedk> jvblasco: with 2D it is already complex for users
2013-08-06 11:56 <jvblasco> cedk: yeah, i was not thinking about creating a new carrier module
2013-08-06 11:57 <jvblasco> cedk: just implementing the matrix.
2013-08-06 11:57 <jvblasco> anyway, we don't really have users in our tryton
2013-08-06 11:57 <jvblasco> i'm just using it as a development framework
2013-08-06 11:57 <jvblasco> tried with openERP with no success
2013-08-06 11:57 <jvblasco> xP
2013-08-06 11:59 <jvblasco> if u know a little spanish and are curious i'm implementing, right now, www.tenloahora.com and i have another project (the one i started in openERP) in www.urbansherpas.es
2013-08-06 12:30 <vishesh> cedk: You are talking about post-transaction hooks here. What are your views now? http://codereview.tryton.org/685003/#ps3001
2013-08-06 12:35 <cedk> vishesh: I don't see where
2013-08-06 12:37 <sisalp> hi, install trytond with pip, I'm missing some files I found convenient in hg repository : trytond.conf, setup.py, LICENCE, README doc ... are they dropped by package builder ?
2013-08-06 12:37 <vishesh> cedk: Oh sorry wrong link. https://groups.google.com/forum/#!topic/tryton-dev/CNwa5KNG6aY
2013-08-06 12:40 <cedk> sisalp: they are in the archive but not installed because there is no places for it
2013-08-06 12:41 <cedk> vishesh: I think it is still interresting even if we will try to minimize such usage
2013-08-06 12:45 <sisalp> cedk: thank you, I will adapt
2013-08-06 12:46 <sisalp> cedk: is there a one pip package dependent on all modules, or should I provide manually a list of modules to install ?
2013-08-06 12:47 <cedk> sisalp: there is not
2013-08-06 12:49 <sisalp> cedk: missing the nclone :-)
2013-08-06 12:51 <vishesh> cedk: We don't necessarily do a commit in transaction. Many times we just need to query. It just feels little weird to have hooks at TransactionManager.
2013-08-06 12:56 <cedk> vishesh: and what?
2013-08-06 13:00 <cedk> vishesh: if we don't commit, the transaction succeed so any external calls registered shoud be triggered
2013-08-06 13:00 <sharoonthomas> sisalp: instead of clone, why not install the outermost modules in the graph ? like `pip install trytond_sale` which would install the module and all its dependencies
2013-08-06 13:00 <sharoonthomas> s/clone/nclone
2013-08-06 13:01 <sharoonthomas> cedk: vishesh: have you thought about using blinker ? https://pypi.python.org/pypi/blinker
2013-08-06 13:02 <sisalp> sharoonthomas: this is what I'm implementing now. Checking the best way to list all "regular" modules
2013-08-06 13:03 <sharoonthomas> cedk: vishesh: you could probably have two named signals (http://pythonhosted.org/blinker/#decoupling-with-named-signals) which could be emitted when the transaction commits or rollback at the transaction manager
2013-08-06 13:04 <cedk> sharoonthomas: don't see the point
2013-08-06 13:04 <vishesh> cedk: Post-good-commit != post-good-transaction I guess. Most use-cases would like have post-commit functionality
2013-08-06 13:04 <sisalp> sharoonthomas: and need to consider any previous version >=2.6,<2.7
2013-08-06 13:05 <sharoonthomas> cedk: i feel that the signals would fulfill the need of what you are calling commit hooks
2013-08-06 13:05 <vishesh> but for that we can just add calls after commit. If it fails, we are int except block anyway
2013-08-06 13:06 <vishesh> sharoonthomas: I didn't look much into that. But yeah we can use signalling to inform an object to dispatch new set of messages...seems clean to me
2013-08-06 13:08 <cedk> sharoonthomas: I don't think because it is linked to the transaction sucees or not
2013-08-06 13:09 <sharoonthomas> cedk: the transaction success is managed at the dispatcher level ?
2013-08-06 13:09 <cedk> vishesh: for me it is the same, it is up to the devs to add or not a post-commit hook on a readonly transaction
2013-08-06 13:09 <cedk> sharoonthomas: yes
2013-08-06 13:10 <cedk> sharoonthomas: and no as it is the Transaction that close the transaction
2013-08-06 13:11 <sharoonthomas> cedk: but the cursor object is a generic abstraction of all database types, so why not have it in the commit and rollback methods of Cursor Interface ?
2013-08-06 13:12 <cedk> sharoonthomas: because it is the wrong layer
2013-08-06 13:13 <cedk> sharoonthomas: cursor is for database
2013-08-06 13:13 <sharoonthomas> cedk: so this would then not be a post commit hook, but a "tryton transaction" hook ?
2013-08-06 13:14 <vishesh> sharoonthomas: Yeah. POst successful transaction
2013-08-06 13:16 <cedk> sharoonthomas: yes
2013-08-06 13:16 <cedk> sharoonthomas: but by design, we never do commit somewhere else than at the end of the transaction
2013-08-06 13:17 <sharoonthomas> vishesh: wondering how useful that would be since, the primary benefit i can think of from such hooks is async operations, integration with full text search engines etc and its clearly dependent on cursor commits rather than transaction stop ?
2013-08-06 13:18 <vishesh> Yeah. Most use-cases I can think of need post-good commit hooks.
2013-08-06 13:19 <vishesh> sharoonthomas: But again, whatever we add after commit() wont run if it fails as we'll end up in exception block (commit will throw exception in case of I'm assuming for all db wrapper)
2013-08-06 13:20 <vishesh> sharoonthomas: So we perhaps don't need any such stuff. We can just do some async_call, after commit.
2013-08-06 13:20 <sharoonthomas> vishesh: if you are talking about an error being raised when commit() is called, the interpreter would exit right there and the signal would not be sent since that would be the next line ?
2013-08-06 13:21 <sharoonthomas> vishesh: essentially, blinker signals would allow you to do exactly that but without monkey patching anything
2013-08-06 13:21 <sharoonthomas> vishesh: just subscribing to these signals would be enough
2013-08-06 13:22 <cedk> There is only one commit in Tryton !!!!
2013-08-06 13:22 <cedk> anyone doing any other commit breaks Tryton
2013-08-06 18:36 <sisalp> I modified the standard way I install Tryton, now usinf pypi only. thankx to sharoonthomas:
2013-08-06 18:37 <sisalp> sharoonthomas: now I 'm looking more preceisely at nereid. What is available for 2.8 and waht for 2.6
2013-08-06 18:37 <sisalp> sharoonthomas: pypi has limited packages for 2.8 compared to 2.6. Which is best ?
2013-08-06 18:39 <Orca-Krilozona> trytond 2.6 , installed on Fedora 19
2013-08-06 18:39 <Orca-Krilozona> where do i find conf file ?
2013-08-06 18:40 <cedk> Orca-Krilozona: in the tgz
2013-08-06 18:40 <Orca-Krilozona> thx for the reply cedk, but i installed it by yum
2013-08-06 18:41 <Orca-Krilozona> yum install tryton* -y
2013-08-06 18:41 <cedk> Orca-Krilozona: the developer of the package should have copy it in /etc
2013-08-06 18:42 <Orca-Krilozona> yet, I can't find a thing named tryton in /etc :(
2013-08-06 18:43 <sisalp> Orca-Krilozona: I put a copy here http://download.sisalp.net/environments/tryton-server-2.6.conf
2013-08-06 18:43 <sisalp> Orca-Krilozona: because I need it for other purpose
2013-08-06 18:43 <cedk> Orca-Krilozona: you should request the developer to install it
2013-08-06 18:43 <cedk> Orca-Krilozona: otherwise you can fetch it from trytond tgz
2013-08-06 18:44 <cedk> Orca-Krilozona: or the sisalp link
2013-08-06 18:44 <Orca-Krilozona> acknowledged. I'm taking a look.
2013-08-06 18:44 <Orca-Krilozona> thanks sisalp :)
2013-08-06 18:46 <Orca-Krilozona> So, i gotta put it in /etc , right ?
2013-08-06 18:46 <Orca-Krilozona> or any specific place ?
2013-08-06 18:47 <sisalp> put it where you want and use --config= on start command
2013-08-06 18:48 <Orca-Krilozona> lol i can't even figure out where those bin files went into as I did install it by yum :D
2013-08-06 18:48 <sisalp> if you run a single Tryton instance I guess /etc is ok
2013-08-06 18:49 <cedk> Orca-Krilozona: I see that the init script provided by fedora look at /etc/trytond.conf
2013-08-06 18:49 <sisalp> Orca-Krilozona: yes I had to sort everything this morning. I implement virtualenv and I'm proud to say I use pip inside ;-) (since two hours)
2013-08-06 18:50 <Orca-Krilozona> i see... saw pip method on site, but, i'm now just testing native yum method :D
2013-08-06 18:50 <Orca-Krilozona> well, please hold on, i'm gonna reboot that.
2013-08-06 18:50 <Orca-Krilozona> ^_^
2013-08-06 18:58 <Orca-Krilozona> after reboot , i found the config file.
2013-08-06 18:58 <Orca-Krilozona> thanks for the helps cedk and sisalp
2013-08-06 18:58 <Orca-Krilozona> :)
2013-08-06 19:21 <Orca-Krilozona> cedk, another question. Is there any config to enable webUI ? like in openERP
2013-08-06 19:45 <cedk> Orca-Krilozona: web client is under development
2013-08-06 19:46 <Orca-Krilozona> i see... thx ^_^
2013-08-06 19:47 <Orca-Krilozona> now trytond is up and running,
2013-08-06 19:47 <Orca-Krilozona> and i installed mysqld
2013-08-06 19:48 <cedk> Orca-Krilozona: mysql is a bad choice, prefer postgresql
2013-08-06 19:48 <Orca-Krilozona> okie,
2013-08-06 19:48 <Orca-Krilozona> :D
2013-08-06 19:49 <cedk> Orca-Krilozona: http://hg.tryton.org/trytond/file/0298c49f338b/README#l39
2013-08-06 19:50 <Orca-Krilozona> i see...
2013-08-06 19:51 <Orca-Krilozona> thanks for the tips cedk, i'm now installing postgresql. :)
2013-08-06 23:38 <plantian> Hi, to perform a search for products within all categories that are below a category, is the syntax Product.search([('category', 'child_of', parent_category.id)]) ?
2013-08-06 23:39 <plantian> I'm trying to access a tryton 1.8 database.

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