On Jan 14, 2008, at 1:46 PM, maxi wrote:

>
> Hi,
>
> In new sqlalchemy version (0.4), the MapperExtension must return
> EXT_CONTINUE for each method. Now, all methods must return this const?
>
> For instance,
>
> I've the next extension for my mapper:
>
> class ConvenioExtension(MapperExtension):
>    def create_instance(self, mapper, selectcontext, row, class_):
>        return Convenio()
>
>
> Because I need create my owner class ever.
> Then, I have to return EXT_CONTINUE here?
> How?

the above extension is correct.  EXT_CONTINUE indicates the return  
value should be ignored, which is not what you want here.  the rest of  
the MapperExtension methods which you dont override will handle  
themselves.





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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