Add a ResultSet.find() method

Bug #338255 reported by James Henstridge on 2009-03-05
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Storm
Undecided
James Henstridge

Bug Description

It would be nice if ResultSet had a find() method that behaved similar to the one on bound ReferenceSets. That is:

 1. takes a list of where conditions that are used in addition to whatever conditions are already in place, in essence narrowing an existing search.
 2. returns a new ResultSet.

This would allow repeated filtering of result sets in a fashion similar to what Django allows, for instance.

Some things that we would need to be careful of:

 * sliced result sets.
 * set expressions (union, intersect, etc)
 * aggregate queries (i.e. ones using group_by()).
 * any of the above for finds on multiple tables.

Raising FeatureError for some of these might be a good starting point.

Related branches

Changed in storm:
assignee: nobody → James Henstridge (jamesh)
status: New → In Progress
Changed in storm:
milestone: none → 0.15
James Henstridge (jamesh) wrote :

Feature merged to trunk as r316.

Changed in storm:
status: In Progress → Fix Committed
Jamu Kakar (jkakar) on 2009-08-08
Changed in storm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers