Add a ResultSet.find() method

Bug #338255 reported by James Henstridge
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Storm
Fix Released
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
Revision history for this message
James Henstridge (jamesh) wrote :

Feature merged to trunk as r316.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.