Can this be made to work?
session = Session()
rec = MyModel() # create a record
session.close()
# Sometime later
session = Session()
rec.name = "Fred" # modify the record
session.commit() # try to save modified record
session.close()
Does the session have to be "global" to this whole operation? Is there a way to
issue the 'commit' on the record instead of the session?
Thanks,
Michael
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" 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/sqlalchemy?hl=en.