from the README in the web2py 1.56.2 distribution: #you can also define once for all
timestamp=SQLTable(None,'timestamp', SQLField('created_on','datetime', writable=False, default=request.now), SQLField('modified_on','datetime', writable=False, default=request.now,update=request.now)) #and use it in all your tables db.define_table('mytable',db.Field('somefield'),timestamp) Error traceback Traceback (most recent call last): File "/opt/web2py/gluon/restricted.py", line 98, in restricted exec ccode in environment File "/opt/web2py/applications/test_ra/models/db.py", line 11, in <module> timestamp=SQLTable(None,'timestamp', NameError: name 'SQLTable' is not defined --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---