Thanks guys! Problem is that inserts into the db are done from another system than web2py (php webserver). I will use a trigger on mysql to set the corresponding fields with default values when a record gets inserted from the php application.
Fritz --