On May 12, 2008, at 2:37 PM, [EMAIL PROTECTED] wrote:

> orphans i dont care, but the rest...
> So at what time these are available - after_flush? or before_commit?

for foreign key attributes written by a dependency,  before_insert().

> i need to iterate over *all* would-be written-to-DB objects, and fix
> their timestamps.

im gathering theres a great reason that triggers or regular column  
defaults cant do this (or just before_insert()).

> But maybe i need just the *new* objects -
> explicitly sess.added() or implicitly via relation.
> would before_flush suffice for them?

sure new objects are all defined at flush time.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to