SelectResults should have a __nonzero__ method
Bug #399 reported by
Guilherme Salgado
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Medium
|
Andrew Bennetts |
Bug Description
It's very convenient to be able to use a SelectResults object on a tal:condition, but for this we need a __nonzero__ method.
It's very convenient to be able to use a SelectResults object on a tal:condition, but for this we need a __nonzero__ method.
Changed in launchpad: | |
assignee: | nobody → spiv |
Changed in launchpad: | |
status: | New → Fixed |
To post a comment you must log in.
I'm marking it FIXED as we now have a __len__ method which is used boolean contexts if we don't have a __nonzero__, and it solves my problem.