IRC logs of #tryton for Wednesday, 2012-05-30

chat.freenode.net #tryton log beginning Wed May 30 00:00:01 CEST 2012
2012-05-30 01:46 -!- Telesight(~anthony@s537751a5.adsl.wanadoo.nl) has left #tryton
2012-05-30 09:23 <SISalp1> Hello, made a progress yesterday thanks to udono
2012-05-30 09:24 <SISalp1> I moved tryton modules to /usr/local/lib/python2.7/dist-packages/trytond/modules
2012-05-30 09:24 <SISalp1> then ru tryton-demo.py
2012-05-30 09:24 <SISalp1> run
2012-05-30 09:24 <SISalp1> module stock_supply not found
2012-05-30 09:28 <SISalp1> but I see this module and itin __init.py__ line 159
2012-05-30 09:33 <cedk> SISalp1: why did you move it and not install it?
2012-05-30 09:43 <SISalp1> cedk: because I didn't find an all-modules-in-one package
2012-05-30 09:48 <SISalp1> cedk: can it be a problem with the module I moved (from source)
2012-05-30 09:48 <cedk> SISalp1: only if you installed them
2012-05-30 09:49 <SISalp1> i think I cannot run proteus if I don't install trytond
2012-05-30 09:49 <SISalp1> so I pip installed trytond
2012-05-30 09:50 <SISalp1> then moved modules from my source copy
2012-05-30 10:01 <SISalp1> Do I have to start trytond for proteus ?
2012-05-30 10:02 <udono> SISalp: How do you connect?.
2012-05-30 10:03 <SISalp1> I don't connect
2012-05-30 10:03 <SISalp1> I just try to run tryton-demo.py
2012-05-30 10:06 <udono> SISalp: You use http://hg.tryton.org/tryton-tools/file/3825e65e9a7c/tryton_demo.py like Luminos741 yesterday?
2012-05-30 10:06 <SISalp1> we fail together
2012-05-30 10:09 <udono> SISalp: this tryton demoscript semms not to be api compatible to tryton 2.4. In http://hg.tryton.org/tryton-tools/file/3825e65e9a7c/tryton_demo.py#l23 is Module.button_install used, which works afaik for tryton<=2.2...
2012-05-30 10:09 <udono> /semms/seems/
2012-05-30 10:11 <Luminos741> udono: We thought this script were ok because of the date. Seems to be compatible...
2012-05-30 10:11 <Luminos741> udono: But if not, I could explain the error we have
2012-05-30 10:11 <Luminos741> I/it
2012-05-30 10:13 <SISalp1> cedk: if I run trytond from sources, can I use proteus ?
2012-05-30 10:14 <cedk> SISalp1: as far as trytond is importable
2012-05-30 10:16 <udono> Luminos741: You can try to fix the script according to the proteus documentation: http://hg.tryton.org/proteus/rev/04dbba05d439
2012-05-30 10:18 <udono> SISalp: start your venv python and try import trytond; from proteus import config, Model, Wizard
2012-05-30 10:21 <SISalp1> cedk: but how can I import something which is located in a particular directory ?
2012-05-30 10:22 <cedk> SISalp1: PYTHONPATH
2012-05-30 10:24 <SISalp1> if I have both trytond installed and a source copy, how can I chosse with PYTHONPATH
2012-05-30 10:39 <cedk> SISalp1: you should take a look to virtualenv
2012-05-30 10:53 <SISalp1> cedk: do you combine virtualenv and hg ?
2012-05-30 10:56 <udono> SISalp: Yes, it is possible. See the scenario https://bugs.tryton.org/msg10412 which should work on 2.4.
2012-05-30 11:04 <SISalp1> cedk: is the tryton-demo.py we use compatible 2.4 ?
2012-05-30 11:10 <cedk> SISalp1: don't know
2012-05-30 11:11 <SISalp1> cedk: how do generate the official demo of tryton.org ?
2012-05-30 11:11 <SISalp1> you
2012-05-30 11:12 <SISalp1> cedk: do you use this script for that demo ?
2012-05-30 11:15 <cedk> SISalp1: not the last one, I think nicoe get issue with it
2012-05-30 11:15 <nicoe> SISalp1: Indeed there was an issue but I don't remerber which one it was
2012-05-30 11:16 <SISalp1> nicoe: maybe we are not able to get it working then
2012-05-30 11:19 <cedk> I guess it was http://bugs.tryton.org/issue2568
2012-05-30 11:24 <SISalp1> cedk: if you say so ;-)
2012-05-30 11:46 <SISalp1> cedk: next step is to reconsider the way I install trytond. what is the right way to install modules ?
2012-05-30 11:47 <SISalp1> do I have to pip install every module ?
2012-05-30 11:50 <cedk> SISalp1: yes
2012-05-30 11:50 <SISalp1> ok will do it
2012-05-30 17:16 <cedk> sharoonthomas: hi, I just get a look at nereid
2012-05-30 17:16 <sharoonthomas> cedk: hi
2012-05-30 17:16 <cedk> sharoonthomas: could you explain to me what is the advantage to have the routes in the database?
2012-05-30 17:17 <sharoonthomas> cedk: because the routes in our case depends not on the modules present in the python path but on the modules installed in a database
2012-05-30 17:18 <sharoonthomas> cedk: just like our ir submodules like views, menus etc
2012-05-30 17:19 <sharoonthomas> cedk: so modules like nereid-catalog, nereid-cms etc add the routes when the module is installed for a specific DB
2012-05-30 17:19 <cedk> sharoonthomas: ok
2012-05-30 17:19 <cedk> sharoonthomas: where are the templates?
2012-05-30 17:20 <sharoonthomas> cedk: template language is jinja (just like flask), template stores can be tryton itself (database - which we use only for test cases) or file system
2012-05-30 17:21 <cedk> sharoonthomas: did you try to generate a Form object via the Tryton Model definition?
2012-05-30 17:22 <sharoonthomas> cedk: nope, thats something I always wanted to do :), i have some code lying somewhere which builds a wtform looking at the fields in a model instance
2012-05-30 17:22 <sharoonthomas> cedk: should be nice to have feature :)
2012-05-30 17:23 <sharoonthomas> cedk: the work i did was to have an API similar to django's ModelForm
2012-05-30 17:24 <cedk> sharoonthomas: with a inheritage of templates like for view, it will be a flexible framework
2012-05-30 17:25 <sharoonthomas> cedk: yep, but the TrytonTemplateLoader is mainly used in testing and if someone wants to release a ready-to-use app like a portal
2012-05-30 17:29 <grasbauer> sharoonthomas: so the templates are rendered on the tryton-server and the response is done by tryton?
2012-05-30 17:31 <sharoonthomas> grasbauer: everything is done on tryton side, an example here: https://github.com/openlabs/nereid/blob/master/trytond_nereid/party.py#L371
2012-05-30 17:31 <sharoonthomas> grasbauer: i don't know if i understand what you meant by tryton-server
2012-05-30 17:32 <sharoonthomas> ACTION dinner time, be back later
2012-05-30 17:32 <grasbauer> sharoonthomas: because we have decided to request only jsonobjects from tryton, memcaching them and all the rendering of products etc. is done by a webserver ...
2012-05-30 17:32 <grasbauer> sharoonthomas: will take a look in your approach
2012-05-30 17:33 <sharoonthomas> grasbauer: feel free to ping me if you have any questions, sending you a link to our nereid-catalog module which does the simple catalog display etc
2012-05-30 17:34 <grasbauer> sharoonthomas: ok - we have a custom solution, because we are rendering objects from tryton in a external cms, which has a lot of functions, that we don't want in tryton.
2012-05-30 17:35 <sharoonthomas> grasbauer: https://github.com/openlabs/nereid-catalog/
2012-05-30 17:35 <grasbauer> sharoonthomas: thanks - could be that we can get inspired by your solution ;)
2012-05-30 17:36 <sharoonthomas> grasbauer: we had used the same approach of yours long back, but we like to work directly on browse records :)
2012-05-30 17:37 <sharoonthomas> grasbauer: we get all the beauty/flexibility of tryton for free since even the rendering takes place inside a method on a model
2012-05-30 17:38 <grasbauer> sharoonthomas: ok - but I don't know how tryton handels a lot of requests - so we decided to memcache the jsonobjects and let the cms rendering the views
2012-05-30 17:39 <grasbauer> sharoonthomas: anyway - thanks for the link - will take a deeper look ...
2012-05-30 17:39 <sharoonthomas> grasbauer: there is built-in memcache support in nereid.
2012-05-30 17:39 <sharoonthomas> grasbauer: sure, let me know if you have questions
2012-05-30 17:40 <grasbauer> sharoonthomas: ok - Bon Appétit!
2012-05-30 17:40 <sharoonthomas> grasbauer: thnx
2012-05-30 17:47 <grasbauer> cedk: do you think anybody is interested in the modul to merge invoices? i could upload a review ...
2012-05-30 18:02 <cedk> grasbauer: don't know
2012-05-30 18:03 <grasbauer> cedk: Me neither ;)
2012-05-30 18:58 <cedk> grasbauer: personally, I find it as a bad practice
2012-05-30 19:00 <grasbauer> cedk: sorry - need to leave the office - doors are closing. But I'm interested in your thoughts ...
2012-05-30 19:09 <grasbauer> cedk: back
2012-05-30 19:13 <grasbauer> cedk: why do find it a bad practice?
2012-05-30 20:10 -!- grasbauer(~jan@dslb-178-000-230-212.pools.arcor-ip.net) has left #tryton

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