On Jul 17, 2007, at 11:49 AM, svilen wrote:

>
> On Tuesday 17 July 2007 18:01:12 Michael Bayer wrote:
>>> if u can make the a query( primary_mapper, select_table) somehow
>>> possible... i won't need separate NPs. Note this selecttable is
>>> not additional .select() off the query, it IS the starting
>>> query(), e.g. thepolymorphic union in a big case and
>>> base-class-only in a small case.
>>
>> query(class).from_statement(your select) ?
> i tried it, my_select would be something which the NP mapper does
> itself now, e.g. select( [class_join], base.c.type=='classname')...
> naah, as i see from srccode this misses the whole compile() stuff.
> i want to be able to do additional filtering, ordering, whatever a
> query can do.
> Note i said the starting query, not the final query...

what part of the selecting from are you looking for to be replaced ?   
the columns clause ?  or the criterion ?  compilation wants to add  
all the columns from the mapper's table, want to make that optional ?


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