Thanks!

I found an example too:
http://beachcoder.wordpress.com/2007/05/02/adding-event-callbacks-to-sqlalchemyelixir-classes/

On 22 jun, 23:04, "Gaetan de Menten" <[EMAIL PROTECTED]> wrote:
> Yes, look after mapper extensions (in SQLAlchemy 
> documentation),http://www.sqlalchemy.org/docs/adv_datamapping.html#advdatamapping_ex...
>
> then use:
> using_mapper_options(extension=MyExtension())
>
> On 6/22/07, Jonas <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Is possible run code when an object (table) is created? I would auto-
> > populate some fields
>
> > Something as in Django ORM:
> > ------------------------------------------------------------------------------------------
> >    def save(self):
> >         """ Overload the default 'save' method to auto-populate
> > fields.
> >         """
> >         # If it is being saved for the first time
> >         if not self.id:
> > ------------------------------------------------------------------------------------------
>
> --
> Gaƫtan de Mentenhttp://openhex.org


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