See this: 
http://beachcoder.wordpress.com/2007/05/02/adding-event-callbacks-to-sqlalchemyelixir-classes/

An improved version is here: http://pylonshq.com/pasties/254
and a second improvement here: http://pylonshq.com/pasties/258

On 7/20/07, Jonathon Anderson <[EMAIL PROTECTED]> wrote:
>
> I am migrating a project away from Django Models to SA/Elixir. In
> Django I had defined pre-save permission checks by extending
> MyClass.save, performing my operations, and calling super(MyClass,
> self).save. SA/Elixir seems to set MyClass.save arbitrarily upon
> declaration, so this doesn't work (my overriding save method is
> replaced.) Is there another way to declare pre- and post-save
> operations?
>
> ~jon
>
>
> >
>


-- 
----
Waylan Limberg
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" 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/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to