Submitted by : simon at: 2007-05-07T15:01:50-07:00 (10 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Why on earth is a catalog instance false during tests ? See setupCatalog, testsupport docstring.

because.. --simon, Mon, 07 May 2007 16:36:09 -0700 reply

Severity: minor => normal

Catalogs, btree folders and such things are considered false if they are empty. This is so in current zope 2, and may have been so all along, which is amazing to me. Bottom line: pretty much everywhere we test "if obj" where obj is a catalog, folder or container, needs to be changed to "if obj is not None".

fixed --simon, Mon, 07 May 2007 23:53:07 -0700 reply

Status: open => closed

The known cases have been fixed, for now.