Yes, look after mapper extensions (in SQLAlchemy documentation), http://www.sqlalchemy.org/docs/adv_datamapping.html#advdatamapping_extending
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 Menten http://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 -~----------~----~----~----~------~----~------~--~---
