Might be a novice question...

Say I have a business object "Website", mapped using assign_mapper,
having a property(relation to Page object) "pages". Needing suggestion
on what is a best way to fetch selective pages for a particular
website.

E.g.

website = Website.get(1)
# website.pages is a list refering to all pages of an website

website.pages(where page_id = 1)       # what is the ideal way to do
this
website.pages(where created_at> "21-DEC-2006")  # and this

"pages" being a python list, searching for thing iteratively could do
the job, but would involve many database fetches.

thank
sanjay


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