with db.table.exposed=[....]
you can set a list of fields that you want visible in T2.create/update Massimo On Dec 23, 10:11 am, Fran <francisb...@googlemail.com> wrote: > On Dec 23, 2:34 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > P.S. you can set migrate=False and create the table manually so that > > dog references person(uuid). > > ok, a useful trick...although this then breaks database portability. > > Another limitation is that the uuid field is visible within t2.create > () forms....being confusing for users & easy for them to overwrite. > It would be much nicer if it were hidden (like the modified_on field). > Not even db.table.displays works here (which would be limiting anyway > as requires more maintenance whenever fields are added/removed). > t2.display() could also usefully hide this field & for where it > references other fields have an option like t2.itemize()'s > db.table.represent or the IS_IN_DB(db,'table.uuid','table.name') > > Many thanks, > Fran. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---