[ZPT] cryptic tracebacks from TALES

Martijn Pieters mj@zope.com
Fri, 25 Jan 2002 13:14:58 -0500


On Fri, Jan 25, 2002 at 12:56:03PM -0500, Evan Simpson wrote:
> Florent Guillaume wrote:
> >Undefined: Sorry, an error occurred
> 
> I *finally* tracked this one down.  It's fixed in CVS, but you can easy 
> patch your Zope.  In PageTemplates/TALES.py, find the following lines:
> 
>     def __nonzero__(self):
>         return 0
> 
> ...and change the "0" to a "1".

That must've been a fun day spelonking in the Zope codebase! ;)

Thanks, that saves me a walk to your desk today, I ran into this a couple of
times yesterday. :)

-- 
Martijn Pieters
| Software Engineer  mailto:mj@zope.com
| Zope Corporation   http://www.zope.com/
| Creators of Zope   http://www.zope.org/
---------------------------------------------