A models __init__ method works great to setup attributes on the model
that don't exist in the underlying table when creating a model.
Unfortunately, if you are retrieving the model though the __init__
method isn't triggered.  Is there something like an event that can be
hooked such that code can be run when the model is instantiated via
retrieval from the underlying DB?

I see events in the event system (looking at 0.7b1) but nothing that
looks to be triggered when the model is loaded into memory.

If there isn't an event for this what would be the recommended way to
accomplish this?  Thanks for any help that can be rendered.

Cheers.

Mike

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