[web2py] Re: Update record in session

2012-02-09 Thread Niphlod
session is not the database. you can save the transactionid into the session and update the db in the controller. e.g. id = db.transactions.insert() session.transaction = id db(db.transactions.id == session.transaction).update(x=y) or you can manage transaction record in the session and

[web2py] Re: Update record in session

2012-02-09 Thread Anthony
On Thursday, February 9, 2012 3:10:52 AM UTC-5, scausten wrote: Is is possible to hold a record in session, something like: id = db.transactions.insert() session.transaction = db.transactions[id] and directly update_record the session.transaction,