How do I get the attribute to copy to a subquery's query._attribute ? I need it to be a MapperOption and that should then copy itself via q = q._conditional_options(*orig_query._with_options)?

(This doesn't seem like it needs be a MapperOption, or do you think it should be? Not quite sure why not just a query method like enable_eagerloads().... it needs no path information.


if you want a Query to lazyload everything by default then the _get_context_strategy(), or some system around it (I 
don't have the time to look at the source right now)  needs to be changed to recognize some kind of 
"wildcard" - right now a MapperOption puts a key that is along the lines of (MyClass.somerelation, 
"eager") into attributes - so it would be like ("*", "lazy").   This is not how it 
actually looks but the idea would be along those lines.


--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" 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/sqlalchemy?hl=en.

Reply via email to