>
> This does not work because writable must not be callable.
>

You can set the writable attribute before creating the form with the record 
data

def is_writable(record):
    return <condition> or False

def spam():
    db.person.test.writable = is_writable(record)
    form = ...


However, having writable, readable, and any other field attribute used in 
forms to accept a function would be convenient (I mean those that currently 
do not accept functions). Maybe you could open an issue about this. Note: I 
don't think it's a simple enhancement because there would be some 
refactoring needed.

-- 

--- 
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/groups/opt_out.


Reply via email to