IRC logs of #tryton for Tuesday, 2013-11-12

chat.freenode.net #tryton log beginning Tue Nov 12 00:00:03 CET 2013
-!- vcardon1(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton09:15
-!- grasbauer(~jan@dslb-094-223-212-153.pools.arcor-ip.net) has left #tryton11:46
-!- sharoonthomas(~sharoonth@122.177.222.95) has left #tryton16:14
brenohi, quick (and probably obvious) question16:58
brenodoes nereid use flask as a json-rpc client to trytond?16:59
cedkbreno: no, it import trytond16:59
brenocedk: thanks cedric, we'll review the code to see how it handles serving requests :)17:00
pokolihi, i'm generating the states attribute of field on the fly (via fields_get). How can I put a variable inside the pyson statement?17:01
cedkpokoli: Eval17:04
SpartanWarrior\017:05
pokolicedk: It's not eval, because i want to evaluate the variable on fields_get, not on the client17:05
cedkpokoli: it is not possible because model and view are separated17:07
pokolicedk: http://pastebin.com/4Y5jvSCS line 62. The hardcoded 44 must be the content of f.model.id variable in fields_get17:08
cedkpokoli: so put f.model.id17:09
pokolicedk: AssertionError: statements must have the same type17:10
pokolicedk: was the first thing I tryied before asking17:11
cedkpokoli: you must put a correct typed value for .get17:11
jeancavallopokoli: get('id', 0) != 4417:12
brenocedk: ok so it seems nereid is reimplementing trytond with flask as a basis (from what we can gather in nereid/application.py)17:12
pokolijeancavallo: thanks worked!17:15
pokolicedk: jeancavallo: now another error 'NoneType' object has no attribute 'get'17:15
pokolibut the model_name field is in the view :S17:16
jeancavallopokoli: Are you sure it is in the same Eval ?17:16
corrobreno: I don't think nereid is 'reimplementing' anything. It just imports trytond as a module and uses it's functionality without RPC interface. Just like the small example in the wiki: http://code.google.com/p/tryton/wiki/TrytonFlask17:17
pokolijeancavallo: maybe it's another Eval17:20
pokoliACTION still testing if it's the same Eval or not17:23
hellhoundcorro: hi there, I have another question regarding what breno was asking. From what I could gather reading the TrytonServer code, there's are some other tasks that aren't called on the nereid wsgi app, specifically those that are in the ir.cron module.17:26
corrohellhound: I'm don't really know nereid yet, but that's most certainly true, yes. It does not make sense running a cron task in a wsgi worker process.17:28
hellhoundcorro: yes, that's true17:28
hellhoundcorro: how does nereid deals with those tasks?17:29
nicoehellhound: I guess nereid does not deal with them17:29
hellhoundcorro: I believe that in that case trytond and nereid should be running side-by-side to cover that area17:30
corrohellhound: like nicoe said, that's nothing for nereid to handle. I have a small script you might be interested in, hang on.17:31
pokolijeancavallo: It's the same Eval, but I'm getting None for the Eval('report_name') and default value is None. It was a wrong definition of report_name function field. So it's working by now.17:33
jeancavallopokoli: Nice :)17:34
hellhoundcorro: cool17:34
corrohellhound: http://pastebin.com/c4rLtgad. It's mostly an extraction of the cron implementation of trytond, so you don't have to run the whole server. I run this alongside my wsgi processes.17:35
brenocorro: and you're using nereid? or another framework?17:36
corrobreno: No, I'm running trytond inside a wsgi server (uWSGI) for load balancing purposes.17:37
brenocorro: and how are you handling requests?17:38
corrobreno: There is a patch for wsgi support in codereview: http://codereview.tryton.org/92001/. I found it mature enough for my purposes, but keep in mind it's neither official nor throughoutly tested.17:42
pokolicorro: so why not pushing it to trytond core?17:43
corropokoli: It's not my patch, but I'd be happy to see it in core17:43
brenocorro: cool! we'll take a look at it :)17:44
cedkpokoli: it is because it doesn't yet fully support the json-rpc functionnality17:58
cedkpokoli: for example, it doesn't server static file so it can not be used for sao (yet)17:59
brenocedk: are there plans to upload the videos from TUB talks to youtube or anything like that?17:59
cedkbreno: yes, in fact, I'm currently copying them on my machine :-)18:00
brenocedk: nice!18:00
cedkbreno: but we have some work to do on them before uploading18:00
brenocedk: what kind of work? perhaps we can help18:01
cedkbreno: we get almost all the talks (except the first and one that was cut)18:01
cedkbreno: just reduce the size, sync the sound with the video and make some montage18:02
brenocedk: yikes, was the first one the "How to release module" one?18:02
cedkbreno: no the order was different18:04
brenocedk: oh ok, if you need help with the videos let me know, i got a media guy who has a lot of free time, you'd need to upload everything to dropbox or something though18:05
pokolicedk: I see, there is any plans to implement it? Some issue related?18:10
cedkpokoli: I don't work right now on it18:11
cedkpokoli: but if someone provide the changes we could included18:11
-!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton20:14
SpartanWarriorany hint of where would i find the cron module docs? :(21:46
pokoliSpartanWarrior: I'm not sure its documented. Can you explain your problem?23:02
SpartanWarriorwell, I'm not having a problem exactly, I wanted to see some kind of reference before lurking the source, afaik it loads a model and calls a named method from it, besides some other metainfo23:20
pokoliSpartanWarrior: you have to take in account that your method is executed by the cron user23:23
pokoliSpartanWarrior: i have to go know, but if you look at the code it will give you a very good idea about what it happens :P23:24
SpartanWarriorin looking forward into it, don't worry :D i got more confident lol23:32
oscarHow see translatated selection field in reports?23:45
oscarHow can I see  The second element (the human-readable name) from selection field on a report?23:49

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