[Zope] Little change of DT_Var.py for dtml-var modification
Dieter Maurer
dieter at handshake.de
Thu Nov 20 13:42:10 EST 2003
Jaroslav Lukesh wrote at 2003-11-20 13:43 +0100:
> I want to add parameter "cut=###" to <dtml-var> tag. It is opposite for
> "size" parameter, at Zope 2.5.1 you can find it around line 260 of
> DT_Var.py.
>
> But after restart (*.pyc file successfully created) the modified tag
> ...
>
> return val
>
> # added 'cut', opposite derivate from 'size'
> if have_arg('cut'):
> cut=args['cut']
Your "cut" handling comes a bit late:
Code after a "return" is ineffective....
--
Dieter
More information about the Zope
mailing list