Hi Anthony, I fixed all things related to id and auth as you pointed and decided to use form with just name and subject. In the case of success in insert I used new id to update professor and institution information.
Tkx again for the support. I am enjoying pretty much web2py and I´ll used in all new projects. Congrats for the robust framework and all the help. Cheers Em quinta-feira, 12 de maio de 2016 22:41:31 UTC-3, Anthony escreveu: > > On Thursday, May 12, 2016 at 9:25:02 PM UTC-4, Sandro Javiel wrote: >> >> Thanks a lot for general comments regarding user validation. >> >> User is not expected to edit professor_id neither institution_id. Anyway >> such information should be stored in classroom table. >> >> I tried to use SQLFORM(db.classroom), but I don´t want to allow use >> choose both Ids. Is there an alternative way to deal with it? >> > > That's odd given that the manual form you created does in fact include > both of those ID fields anyway. > > Anyway, to exclude fields from SQLFORM, just set the readable and writable > attributes of the database fields to False (or alternatively, SQLFORM takes > a "fields" argument, which is a list of the fields to include). > > Anthony > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.