OK, yes, of course, that rings a bell. Sometimes when I read web2py code late at night I can't tease the meaning out of it because of the density. Now that I'm fresh, it's obvious.
On Sep 6, 3:02 am, Iceberg <[email protected]> wrote: > I am not sure whether the "trick" is covered in the latest book, but > it is quite usual and appeared in many code snippets I've seen. > > The following lines are copied from cookbook2, which is self > explained. > db.person.name.writable = False # field is readonly > db.person.name.readable = False # field is hidden > > On Sep6, 2:24pm, weheh <[email protected]> wrote: > > > > > Thanks Iceberg, but I'm not familiar with the "standard trick" -- > > could you point me to some documentation on such? > > > On Sep 5, 11:51 pm, Iceberg <[email protected]> wrote: > > > > Perhaps the standard trick still helps? I did not try it. > > > db.table1.field1.readable=db.table1.field1.writable=False > > > db.table2.field2.readable=db.table2.field2.writable=False > > > > On Sep6, 10:50am, weheh <[email protected]> wrote: > > > > > Thanks for the quick response, Massimo. I'll try it out. However, > > > > could you also show the syntax of how I can selectively pull out > > > > fields from the different tables in the SQLFORM.factory? In other > > > > words, assum there are no table naming conflicts between the two > > > > tables but I don't want to use all the fields from either table1 or > > > > table2. How would I pull just the fields I want and populate the form > > > > with them?- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

