[Zope] Doing Python-ish things in Zope...

Martijn Faassen M.Faassen@vet.uu.nl
Tue, 08 Jun 1999 11:16:06 +0200


Zope on a Rope wrote:
> 
> Thanks for the zippy reply.
> 
> At 04:03 PM 6/7/99 -0400, Pavlos Christoforou wrote:
> >On Mon, 7 Jun 1999, Zope on a Rope wrote:
> ><!--#if expr="title[0:2] != 'zzz'"-->
> 
> Now that worked like a charm. Cheers!

But if my Python is correct this will *always* be false as title[0:2]
will
get you title[0] and title[1] in a string, 2 characters. This is always 
something other than 'zzz', obviously. :)

Just thought I'd point this out!

Regards,

Martijn