Sanjay wrote:
> In this type of case flush is necessary in the middle. I tried to avoid
> using circular foreign keys etc. but some problem came.
>
> In summary, as I see, in certain cases you can't avoid flushing in the
> middle. What I need is a suitable pattern to handle these cases so that
> the entire operation is either committed or rolled back.

There must be such a pattern, given the large amount of code inside
http://www.sqlalchemy.org/trac/browser/sqlalchemy/trunk/lib/sqlalchemy/orm/dependency.py
which "processes dependencies". Of course, it's so complicated that
only the author will be able to tell you how to use it. ;) But there's
hope.


Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]


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