Pylons/pyramid — pull request #1032 by pib (2013-06-10 20:14:04+00:00)
Title: Add __bool__ for python 3

Python 3 checks __bool__ instead of __nonzero__ when testing the "truthiness" of an object. This was causing some code to use __len__ instead of __nonzero__, and it was returning 0, which was causing an instance of DummyResource to be "falsy" instead.