[Zope-dev] dtml-break

Evan Simpson evan@digicool.com
Thu, 11 May 2000 20:57:46 -0400


----- Original Message -----
From: Jonothan Farr <jfarr@real.com>
> Actually, it doesn't look hard to name it sequence-break. Just name the
function
> '_break'. Add a line to sequence_variables.__getitem__:
>
>     if key=='sequence-break': return self._break()

Or even inline it as "if key=='sequence-break': raise BreakError, self".
Nifty.

> except BreakError, bobj:
>     if bobj is self.vars: foo

Looks good!

Cheers,

Evan @ digicool & 4-am