if you want to query pages, then just query for the Page class
explicitly:

   session.query(Page).select(<criterion>)

the relations on a parent class are not used for selective querying.
if there is a  particular "filtered view" you will need often, you
might also want to add special properties to the Website class:

    class Website(object):
        filtered_pages = property(lambda self:[p for p in self.pages
where p.someproperty==somecriterion])


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