I'm still learning about it, but AFAIK this is the correct behavior for
SQLAlchemy. By calling flush() you are telling SQLAlchemy to save
whatever changes you have made within the context of the call. Calls to
mapper.flush() will save all changes that the mapper governs, calls to
object.flush() will save all changes to that object, calls to
session.flush() will save all changes.

Why are you flushing the Company object to begin with? Is there
something that is not working correctly when you don't do this?

-Adam


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