web2py - Using a lambda and compute in web2pyfield -
i want set false or true according value row date3 set me default false
field ('heure','boolean',compute=lambda r: true if r.date3 <= 23 else false)
it works give thanks anthony looked forwards message saves several galley of code several times. if understand if illustration have code
field ('is_public', 'boolean') if want compute field have done field ('result' compute = lambda row : * row.calcul row.maison if row.is_public else row.calcul * 20)
web2py
No comments:
Post a Comment