That is actually a much more graceful way of doing it. That works great, thanks.
On Feb 22, 12:11 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > Yes but different syntax > > If you CRUD timestamps if a table has a filed called "modified_by", > etc. > > In the latest web2py there is no such convention but if a table has a > field > > SQLField("modified_by","datetime",default=request.now, > update=request.now, writable=False) > > has the same effect. Nothing to do with the name any more or with > CRUD. writable prevents the field from appearing on forms (except > readonly forms). default and update set the default values when a > record is created/updated. > > Hope this makes sense. > > Massimo > > On Feb 22, 1:10 pm, jlegler <jleg...@gmail.com> wrote: > > > T2 had a cool feature that would show when a table was updated and by > > whom as long as the appropriate fields existed in the table > > (created_by_ip, created_on, created_by, created_signature, > > modified_by_ip, modified_on, modified_by, modified_signature). Does > > the new Crud class have any of that functionality? > > > -Jason --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---