[Zope-dev] dtml-break

Jonothan Farr jfarr@real.com
Thu, 11 May 2000 17:49:31 -0700


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()

Although I think it needs to be:

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

...in order for it to know if the break is being called from the correct
instance of in.


--jfarr

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998