[Zope] Re: upgrade 2.5.1 to 2.7.5 causes error in product code

2005-08-31 Thread Florent Guillaume
John Schinnerer wrote: Hello, Thanks Tres, looks like zope 2.7.5/python 2.3.5 is triggering a genuine full-blown error on my code python:here.sponsors[0] != '' 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. Now

Re: [Zope] Re: upgrade 2.5.1 to 2.7.5 causes error in product code

2005-08-30 Thread John Schinnerer
Aloha, python:here.sponsors[0] != '' 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

Re: [Zope] Re: upgrade 2.5.1 to 2.7.5 causes error in product code

2005-08-28 Thread Jens Vagelpohl
On 27 Aug 2005, at 20:15, John Schinnerer wrote: python:here.sponsors[0] != '' 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. Now I do this python:

[Zope] Re: upgrade 2.5.1 to 2.7.5 causes error in product code

2005-08-27 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Schinnerer wrote: Hello, I have just migrated some custom products from 2.5.1 to 2.7.5, meaning from python 2.1.3 to 2.3.5. I have this bit of code in the index_html page template in the product, which rendered just fine in zope

Re: [Zope] Re: upgrade 2.5.1 to 2.7.5 causes error in product code

2005-08-27 Thread John Schinnerer
Hello, Thanks Tres, looks like zope 2.7.5/python 2.3.5 is triggering a genuine full-blown error on my code python:here.sponsors[0] != '' 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. Now I do this python: