ResultSet doesn't implement __nonzero__
Bug #612351 reported by
James Westby
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Invalid
|
Undecided
|
Unassigned | ||
Storm |
Fix Released
|
Low
|
Jamu Kakar |
Bug Description
SQLObjectResultSet implements __nonzero__ but the native Storm ResultSet does not. This makes it harder to migrate old code.
Related branches
lp:~jkakar/storm/sqlobject-is-empty
- Robert Collins (community): Approve
- Stuart Bishop (community): Approve
- Storm Developers: Pending requested
-
Diff: 65 lines (+27/-1)3 files modifiedstorm/sqlobject.py (+10/-0)
storm/store.py (+1/-1)
tests/sqlobject.py (+16/-0)
summary: |
- getPackagesetsForUploader uses Store.find, which doesn't return an - SQLObjectResultSet + ResultSet doesn't implement __nonzero__ |
Changed in soyuz: | |
status: | New → Invalid |
description: | updated |
Changed in storm: | |
assignee: | nobody → Jamu Kakar (jkakar) |
milestone: | none → 0.17 |
importance: | Undecided → Low |
status: | New → In Progress |
Changed in storm: | |
status: | In Progress → Fix Committed |
Changed in storm: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
btw, this is now referred to from an XXX in my branch.
Thanks,
James