I have a field verification routine that is run as part of a mapper
extension. When a field error is detected, an exception is thrown with
the field in question, the object with the incorrect field. This
worked great in 0.3, but I'm now moving to 0.6, and I can no longer do
this as my invalid filed exception is using out the __repr__ value of
the object with the incorrect field, and the __repr__ is causing
sqlalchemy to attempt to query the db to retrieve attribute values
because the rollback caused the object to be expired.

Is there a way to retrieve the attribute values without having
sqlalchemy run a query? I tried object.attribute.get_history, but I
end up with an empty history item.

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

Reply via email to