SelectResults should have a __nonzero__ method

Bug #399 reported by Guilherme Salgado
4
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
Revision history for this message
Guilherme Salgado (salgado) wrote :

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.

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.