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

chat.freenode.net #tryton log beginning Thu Jul 25 00:00:02 CEST 2013
iamnoobanybody knows how can i arrange the order of how the module is update? when is use -d (db name) -u (module name) ?09:24
iamnoobnvmind my questio, got it09:33
sharoonthomascedk: do you have a minute to discuss about nereid and the module splitting that was done12:04
cedksharoonthomas: ok12:06
sharoonthomascedk: if you remember one of the first tasks we decided for merging nereid was splitting of the package into two separate modules12:07
sharoonthomascedk: one which handled the web framework part and the other a pure tryton module12:07
sharoonthomascedk: it looked like a good idea to us as well at the time12:07
sharoonthomascedk: 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 commits12:08
sharoonthomascedk: what are your thoughts on this ?12:08
sharoonthomascedk: 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 functionality12:09
cedksharoonthomas: I don't like too much because it will prevent to use the package as-is without installation12:10
sharoonthomascedk: without installation ? like dropping the module into the add ons folder ?12:10
sharoonthomass/add ons/modules12:11
cedksharoonthomas: yes12:11
cedksharoonthomas: what is the size of the nereid app?12:12
cedksharoonthomas: does it fit in one file?12:12
sharoonthomascedk: nope12:12
sharoonthomascedk: https://github.com/openlabs/nereid12:12
sharoonthomascedk: its quite a bunch of files and tests12:12
sharoonthomascedk: however dropping the subfolder would work and satisfy the case you mentioned12:13
cedksharoonthomas: but it looks like nereid doesn't depend on trytond_nereid12:14
sharoonthomascedk: in practice it does, let me send you direct  links12:15
sharoonthomascedk: https://github.com/openlabs/nereid/blob/master/nereid/wrappers.py#L2912:15
cedksharoonthomas: so it is missing in setup.py12:15
sharoonthomascedk: yes, it is kind of a cyclic dependency.12:16
sharoonthomascedk: for nereid to work it need trytond-nereid and vice versa12:16
cedksharoonthomas: why trytond-nereid depends on nereid ?12:16
sharoonthomascedk: because it has web handlers (in addition to the models) which use functionality provided by nereid12:17
cedksharoonthomas: then there is a design issue here12:18
sharoonthomascedk: i'm listening12:18
cedksharoonthomas: I see 2 possibilities:12:21
cedksharoonthomas: move most of nereid code in trytond-nereid and just left in nereid the web application12:22
sharoonthomascedk: and the other ?12:22
cedksharoonthomas: or keep trytond-nereid as just a storage backend for nereid without any web part12:22
sharoonthomascedk: there is commonly used functionality like login etc. which need web handlers12:23
sharoonthomascedk: and being a full stack framework i think they should be bundled with trytond-nereid itself ?12:23
sharoonthomascedk: also, from a package perspective "nereid" is useless without "tryton (trytond-nereid)" and trytond-nereid is not useful without nereid12:24
cedksharoonthomas: ok why not merge but have one module12:30
sharoonthomascedk: thanks :)13:05
shalabhaggarwalACTION cedk: hi, is there a way we can write a label string in multi line in xml?13:08
cedkshalabhaggarwal: I don't think13:18
shalabhaggarwalACTION ok13:19
cedkshalabhaggarwal: did you try with '\n'13:22
visheshWhat methods are exposed in protocols? Basically, what I'm looking for is to have a my own function in model exposed to rpc protocols17:42
Pilouvishesh: search cls.__rpc__.update in trytond source code17:43
cedkvishesh: http://doc.tryton.org/2.8/trytond/doc/ref/models/models.html?highlight=rpc#trytond.model.Model.__rpc__17:46
visheshPilou, cedk: Great. Thanks17:47
-!- sharoonthomas(~sharoonth@122.177.46.129) has left #tryton18:34
martinguzmanHi! Is it possible to sort a function field column in a tree view (by clicking the column header)?18:56
cedkmartinguzman: only if you setup a order_field19:00
martinguzmancedk: ok! :)! thanks!19:02
martinguzmancedk: 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...20:27
martinguzmanHere is the code: http://pastebin.com/z25jmexM20:27
cedkmartinguzman: you can't20:33
cedkmartinguzman: for now20:33
martinguzmancedk: ok! thanks20:36

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!