On 16 November 2011 16:07, Johann Spies <[email protected]> wrote:
> On 16 November 2011 15:57, Tito Garrido <[email protected]> wrote: > > >> "sandbox/models/db.py" >> >> db.define_table('mytable', >> Field('myfield','string'), >> Field('state','integer') >> ) >> "sandbox/models/db_functions.py"def test(id): >> r=db.mytable[id] >> r.update(state=55) >> > > Try: def test(id): db.mytable[id] = dict(state = 55) return You can add db.commit() if you want to. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3)

