Hi,

I have the following in my controller:

from model import Person


e = Person.selectBy(name=inputname)
e.address = newaddress

but the new address is not reflected in my postgresql db.

Then someone suggested I use session.save (please see earlier post):

from model import Person

session.begin()
e = Person.selectBy(name=inputname)
e.address = newaddress
session.save(e)
session.commit()

However, how do I first instantiate the session object?

Any help would be appreciated!


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to