Re: [Zope] When is an empty list not an empty list?

2006-06-18 Thread John Schinnerer
Aloha, Thanks, I understand...though it's a bit annoying that it looks and acts just like a list but "isn't"... Just using "items" does work. I figured it would work for True when not empty...I wasn't so sure what it would return when empty, as sometimes the test seems to be on 'exists' rat

Re: [Zope] When is an empty list not an empty list?

2006-06-18 Thread Tino Wildenhain
John Schinnerer wrote: > Aloha, > > I have a python script, getCatalogItems(), which returns a (possibly > empty) list resulting from a catalog query. The lone parameter is the > sort index; the rest of the query is taken from the request. Anyhow... > If nothing was found, I don't want to display

[Zope] When is an empty list not an empty list?

2006-06-18 Thread John Schinnerer
Aloha, I have a python script, getCatalogItems(), which returns a (possibly empty) list resulting from a catalog query. The lone parameter is the sort index; the rest of the query is taken from the request. Anyhow... If nothing was found, I don't want to display an empty table of results. Whe