>>>> I can use clear_mappers() because I use mod_python and my mappers
>>>> are defined
>>>> during init. Is there any other way I can get this select mapped to
>>>> my object?
>>>>
>>> non_primary=True  (see the docs on "mutliple mappers for a class")
>> But that would mean I would define a new non_primary mapper every  
>> time,
>> wouldn't it? Is this really a good idea for a server software?
>> Is there maybe a way to update the used table without redefining  
>> the mapper?
>>
> 
> if you are creating all kinds of select() objects from which you want  
> to load instances, simply feed those into query.select() and the  
> appropriate instances will be returned (or use query.instances()   
> with the result of execute()).

Thanks, that worked great.

Bye,
Kevin


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