Some of the information here may be outdated, please check the book instead
[edit]
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'
© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by web2py - design derived from a theme by the earlybird
The content of this book is released under the Artistic License 2.0 - Modified content cannot be reproduced.