Re: [sqlalchemy] attributes.get_history() from mapper extension's before_update()

2011-01-16 Thread Michael Bayer
It's constant throughout the flush until the session.after_flush_postexec 
event, with the exception of foreign key attributes populated by relationships.


On Jan 15, 2011, at 9:37 PM, Kent wrote:

 Is it safe trust attributes.get_history(instance, attrname) from
 mapper extension's before_update()?
 
 I assume this is not reset until later?
 
 Kent
 
 -- 
 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 
 sqlalchemy+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/sqlalchemy?hl=en.
 

-- 
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 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.



[sqlalchemy] attributes.get_history() from mapper extension's before_update()

2011-01-15 Thread Kent
Is it safe trust attributes.get_history(instance, attrname) from
mapper extension's before_update()?

I assume this is not reset until later?

Kent

-- 
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 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.