IRC logs of #tryton for Thursday, 2013-07-25

chat.freenode.net #tryton log beginning Thu Jul 25 00:00:02 CEST 2013
2013-07-25 09:24 <iamnoob> anybody knows how can i arrange the order of how the module is update? when is use -d (db name) -u (module name) ?
2013-07-25 09:33 <iamnoob> nvmind my questio, got it
2013-07-25 12:04 <sharoonthomas> cedk: do you have a minute to discuss about nereid and the module splitting that was done
2013-07-25 12:06 <cedk> sharoonthomas: ok
2013-07-25 12:07 <sharoonthomas> cedk: if you remember one of the first tasks we decided for merging nereid was splitting of the package into two separate modules
2013-07-25 12:07 <sharoonthomas> cedk: one which handled the web framework part and the other a pure tryton module
2013-07-25 12:07 <sharoonthomas> cedk: it looked like a good idea to us as well at the time
2013-07-25 12:08 <sharoonthomas> cedk: but as we have worked more on this it feels like most changes affect both the repos and the changes usually end up as two commits
2013-07-25 12:08 <sharoonthomas> cedk: what are your thoughts on this ?
2013-07-25 12:09 <sharoonthomas> cedk: is it ok to have them as a single repository but installing two separate packages - one the tryton module and the other the package called nereid which offers the web side functionality
2013-07-25 12:10 <cedk> sharoonthomas: I don't like too much because it will prevent to use the package as-is without installation
2013-07-25 12:10 <sharoonthomas> cedk: without installation ? like dropping the module into the add ons folder ?
2013-07-25 12:11 <sharoonthomas> s/add ons/modules
2013-07-25 12:11 <cedk> sharoonthomas: yes
2013-07-25 12:12 <cedk> sharoonthomas: what is the size of the nereid app?
2013-07-25 12:12 <cedk> sharoonthomas: does it fit in one file?
2013-07-25 12:12 <sharoonthomas> cedk: nope
2013-07-25 12:12 <sharoonthomas> cedk: https://github.com/openlabs/nereid
2013-07-25 12:12 <sharoonthomas> cedk: its quite a bunch of files and tests
2013-07-25 12:13 <sharoonthomas> cedk: however dropping the subfolder would work and satisfy the case you mentioned
2013-07-25 12:14 <cedk> sharoonthomas: but it looks like nereid doesn't depend on trytond_nereid
2013-07-25 12:15 <sharoonthomas> cedk: in practice it does, let me send you direct links
2013-07-25 12:15 <sharoonthomas> cedk: https://github.com/openlabs/nereid/blob/master/nereid/wrappers.py#L29
2013-07-25 12:15 <cedk> sharoonthomas: so it is missing in setup.py
2013-07-25 12:16 <sharoonthomas> cedk: yes, it is kind of a cyclic dependency.
2013-07-25 12:16 <sharoonthomas> cedk: for nereid to work it need trytond-nereid and vice versa
2013-07-25 12:16 <cedk> sharoonthomas: why trytond-nereid depends on nereid ?
2013-07-25 12:17 <sharoonthomas> cedk: because it has web handlers (in addition to the models) which use functionality provided by nereid
2013-07-25 12:18 <cedk> sharoonthomas: then there is a design issue here
2013-07-25 12:18 <sharoonthomas> cedk: i'm listening
2013-07-25 12:21 <cedk> sharoonthomas: I see 2 possibilities:
2013-07-25 12:22 <cedk> sharoonthomas: move most of nereid code in trytond-nereid and just left in nereid the web application
2013-07-25 12:22 <sharoonthomas> cedk: and the other ?
2013-07-25 12:22 <cedk> sharoonthomas: or keep trytond-nereid as just a storage backend for nereid without any web part
2013-07-25 12:23 <sharoonthomas> cedk: there is commonly used functionality like login etc. which need web handlers
2013-07-25 12:23 <sharoonthomas> cedk: and being a full stack framework i think they should be bundled with trytond-nereid itself ?
2013-07-25 12:24 <sharoonthomas> cedk: also, from a package perspective "nereid" is useless without "tryton (trytond-nereid)" and trytond-nereid is not useful without nereid
2013-07-25 12:30 <cedk> sharoonthomas: ok why not merge but have one module
2013-07-25 13:05 <sharoonthomas> cedk: thanks :)
2013-07-25 13:08 <shalabhaggarwal> ACTION cedk: hi, is there a way we can write a label string in multi line in xml?
2013-07-25 13:18 <cedk> shalabhaggarwal: I don't think
2013-07-25 13:19 <shalabhaggarwal> ACTION ok
2013-07-25 13:22 <cedk> shalabhaggarwal: did you try with '\n'
2013-07-25 17:42 <vishesh> What methods are exposed in protocols? Basically, what I'm looking for is to have a my own function in model exposed to rpc protocols
2013-07-25 17:43 <Pilou> vishesh: search cls.__rpc__.update in trytond source code
2013-07-25 17:46 <cedk> vishesh: http://doc.tryton.org/2.8/trytond/doc/ref/models/models.html?highlight=rpc#trytond.model.Model.__rpc__
2013-07-25 17:47 <vishesh> Pilou, cedk: Great. Thanks
2013-07-25 18:34 -!- sharoonthomas(~sharoonth@122.177.46.129) has left #tryton
2013-07-25 18:56 <martinguzman> Hi! Is it possible to sort a function field column in a tree view (by clicking the column header)?
2013-07-25 19:00 <cedk> martinguzman: only if you setup a order_field
2013-07-25 19:02 <martinguzman> cedk: ok! :)! thanks!
2013-07-25 20:27 <martinguzman> cedk: if the function field gets a value from another table, how should I write the order_field? When I put the other table instead of %(tables)s I get a "missing FROM-clause" error for that table...
2013-07-25 20:27 <martinguzman> Here is the code: http://pastebin.com/z25jmexM
2013-07-25 20:33 <cedk> martinguzman: you can't
2013-07-25 20:33 <cedk> martinguzman: for now
2013-07-25 20:36 <martinguzman> cedk: ok! thanks

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