What are you trying to acheive? You mix 2 things in the code extract above readonly parameters of SQLFORM() and readable/writable Field() parameters... If you put everything in readonly=True at SQLFORM or form level it will override you Field() definiton parameters... If Trust is your only field you should get the same result with readable=True, writable=False than with readonly=True in SQLFORM without the other 2 parameters of Field().
Richard On Tue, Apr 14, 2015 at 3:30 AM, Dmitry Ermolaev <[email protected]> wrote: > ignore_rw. Normally, for a create/update form, only fields marked as > writable=True are shown, and for readonly forms, only fields marked as > readable=True are shown. > > Field('trust','integer', default = 0, readable=True, writable=False, > comment='level of Trust to You'), > > rec = man_id and db.men[ man_id ] > form = SQLFORM(db.men, rec, readonly = rec) > > - in readonlyy all fields shown > > -- > 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. > -- 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.

