> > python:here.sponsors != ''
> > if the tuple is empty, whereas 2.5.1/2.1.3 must have been returning
> > some equivalent of boolean 'false' when the tuple was empty.
> No. Python 2.1.3 would have blown up the same way.
Must have been Zope 2.5.1 somehow turning the python blowup into
equivalent of boolean 'false' then, or my clearly less than exemplary
code would have also failed under 2.5.1, as it does under 2.7.5.
> > Now I do this
> > python: (here.sponsors) and (here.sponsors != '')
> > and it works again.
> > The second condition may be redundant now I suppose...?
> No it is not redundant. A value ('',) would still be True as far as
> Python is concerned and would pass the first condition.
Start your day with Yahoo! - make it your home page
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -