Re: [web2py] compute on update

2012-04-05 Thread Mirek Zvolsky
compute= works for me once, when I create a record (or when Field==None). And that is exactly what you write in documentation. But I need calculated field which updates always when source fields will change. Maybe proper way is to use default=(or compute=)+update= ? I'm sorry for late response.

Re: [web2py] compute on update

2012-03-01 Thread Massimo Di Pierro
I am pretty sure this works: Field('html', compute = lambda row: MARKMIN(row.markmin).xml()). I cannot reproduce the problem you refer mention. On Monday, 27 February 2012 04:10:23 UTC-6, Mirek Zvolský wrote: > > I think the behaviour of "compute=" is not good. Most people need >> calculated f

Re: [web2py] compute on update

2012-03-01 Thread Massimo Di Pierro
yes On Wednesday, 28 December 2011 15:50:58 UTC-6, Richard wrote: > > Hello, > > I would like to compute a field on update, but I think all the > request.vars needed to my lambda compute function are not passed to > form.vars... > > What I should do to make sure all the needed vars are available

Re: [web2py] compute on update

2012-02-27 Thread Mirek Zvolský
> > I think the behaviour of "compute=" is not good. Most people need > calculated field which ALWAYS follow the source values and not just ONCE. > So I have found in google group, lot of people fall through the time in > same problem and there is still no clear solution. > > I now need this fo

Re: [web2py] compute on update

2012-02-27 Thread Mirek Zvolský
I think the behaviour of "compute=" is not good. Most people need calculated field which ALWAYS follow the source values and not just ONCE. So I have found in google group, lot of people fall through the time in same problem and there is still no clear solution. I now need this for Markmin sour

Re: [web2py] compute on update

2011-12-29 Thread Richard Vézina
Ping! computed field not compute on update... What should I check? Thanks Richard On Wed, Dec 28, 2011 at 4:50 PM, Richard Vézina wrote: > Hello, > > I would like to compute a field on update, but I think all the > request.vars needed to my lambda compute function are not passed to > form.var

[web2py] compute on update

2011-12-28 Thread Richard Vézina
Hello, I would like to compute a field on update, but I think all the request.vars needed to my lambda compute function are not passed to form.vars... What I should do to make sure all the needed vars are available to the lambda compute function? form.vars.varname = request.vars.varname ?? Than