Hi, You should try session.save(e).
If you whould like to commit explicit you should use: from model import Person session.begin() e = Person.selectBy(name=inputname) e.address = newaddress session.save(e) session.commit() Ivo On 10/1/07, vrs762 <[EMAIL PROTECTED]> wrote: > > Hi, > > In my controller, I am accessing a specific record from the Person > table, and trying to update the address attribute: > .......... > from model import Person > e = Person.selectBy(name=inputname) > e.address = newaddress > > > However, this change is not getting committed to the actual table. How > do I explicitly do that from the controller? > > Thanks, > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

