old web2py blog
List all entries
Demo of Admin Interface
Semantic web extension
Some of the information here may be outdated, please check the book instead
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
- design derived from a theme by
The content of this book is released under the
Artistic License 2.0
- Modified content cannot be reproduced.