def deleterec():
#
# how to delete a record
#
# Given a database model called mod2, containing a table called tbusers
# and the fields userid, firstn, lastn, here's how to delete a record
# where the lastn == 'Chan'
#
# By Sterling Hankins 05/25/2008
#
#
#
mod2(mod2.tbusers.lastn=='Chan').delete()
return 'the record has been deleted'