Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: a3d2a1c57e
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (16 sloc) 0.645 kB
layout title
default
web.update()

web.update()

used to make updates to a single database row. Specify the database and a clause.

update(tables, where, vars=None, _test=False, **values) : Update tables with clause where (interpolated using vars) and setting values.

other example

    web.update('resume', where='resume_id = $current', resume_availability = 'available')

docs example

     >>> joe = 'Joseph'
     >>> update('foo', where='name = $joe', name='bob', age=5,
     ...   vars=locals(), _test=True)
     <sql: "UPDATE foo SET age = 5, name = 'bob' WHERE name = 'Joseph'">
Jump to Line
Something went wrong with that request. Please try again.