Re: [web2py] compute try to understand something

2013-06-26 Thread Richard Vézina
Ok, I think I solve my issues... I had many issues : First has you said the compute field were not receive all it needs. I solve this one like this : form.process().accepted: for r in session.rows: row = db[request.args(0)](r.id) row.update_record(review='TRUE',

Re: [web2py] compute try to understand something

2013-06-25 Thread Richard Vézina
I will try to pack a little app... Richard On Fri, Jun 21, 2013 at 4:40 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: It should. Can you provide a concrete example? On Friday, 21 June 2013 10:31:45 UTC-5, Richard wrote: Further code review lead me to the conclusion that the

Re: [web2py] compute try to understand something

2013-06-21 Thread Richard Vézina
Further code review lead me to the conclusion that the issue is not because compute don't get all it needs to compute... I mean I get the row and since it is a update every field are available in the row and I still need to redefine the compute field... Should computed field computes on

Re: [web2py] compute try to understand something

2013-06-21 Thread Massimo Di Pierro
It should. Can you provide a concrete example? On Friday, 21 June 2013 10:31:45 UTC-5, Richard wrote: Further code review lead me to the conclusion that the issue is not because compute don't get all it needs to compute... I mean I get the row and since it is a update every field are

[web2py] compute try to understand something

2013-06-20 Thread Richard
Hello, I don't understand why I have to redefine my compute field function... I have a compute field like this one : # model db.define_table('mytable', Field('f1', 'string'), Field('review', 'boolean'), Field('record_review_status', compute=lambda record: return_computed(record,

Re: [web2py] compute try to understand something

2013-06-20 Thread Massimo Di Pierro
I think the problem is that your form does not contain enough info for the computed field. You correctly pull them from DB (in row) and pass to the compute function. On Thursday, 20 June 2013 12:13:16 UTC-5, Richard wrote: Hello, I don't understand why I have to redefine my compute field

Re: [web2py] compute try to understand something

2013-06-20 Thread Richard Vézina
Ok, yes, it may not have some field that are to None... I had issue with that that I have patch my compute function for. I should be the same... Thank you Massimo to point me this out. Richard On Thu, Jun 20, 2013 at 5:02 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I think the