>>> db=DAL()
>>> db.define_table('xxx',Field('yyy',writable=False,readable=False))
>>> db.xxx.yyy.default=lambda: 'hello world'
>>> db.xxx.insert()
1
>>> print db.xxx(1).yyy
hello worlddefault can be a lambda. On Nov 18, 7:05 am, cjrh <[email protected]> wrote: > "I have a field that is a uuid which is > only supposed to be calculated once, on insertion." > > Best way to do this currently? I would use "default" if within the > context of a controller, but these are records I create manually in > admin. There is a field that I want populated with a newly-calculated > uuid, but only on insertion of a new record, and it must not be > recalculated again.

