On 24 August 2011 13:47, Massimo Di Pierro <massimo.dipie...@gmail.com>wrote:

> Feature!
>
> it used to be that represent = lambda value:...
> but then we moved on to represent = lambda value, row:...
>
> previous code has been made backward compatible (will accept both) but
> new code (grid and smartgrid) will expect the new syntax.
>
>
I could find one example of the new syntax but so far did not see any
documentation.

How would would the old syntax in the following situation have to change (in
other words, how do I use 'record' in this case)?

def dosomething_with_the_field(x):
     return(something_else)

db.sometable.somefield.represent = lambda value:
dosomething_with_the_field(value)

Regards
Johann


-- 
 May grace and peace be yours in abundance through the full knowledge of God
and of Jesus our Lord!  His divine power has given us everything we need for
life and godliness through the full knowledge of the one who called us by
his own glory and excellence.
                                                    2 Pet. 1:2b,3a

Reply via email to