def func(row):
    compute something
    return result

func doesn't understand         row.fieldname
but it seems to understand     row.databaseName.fieldname

Is this last expression in a function correct ?


Le lundi 2 novembre 2015 17:42:40 UTC+1, Anthony a écrit :
>
> No. Please show your code.
>
> On Monday, November 2, 2015 at 10:58:24 AM UTC-5, Pierre wrote:
>>
>> Hi everyone,
>>
>> I try to combine virtual fields with a normal function (not lambda)  but 
>> it doesn't seem to work
>>
>> Is it mandatory to use lambda functions with virtual fields / virtual 
>> method fields  ?
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to