[Zope] slicing absolute_url

Dieter Maurer dieter@handshake.de
Fri, 9 Aug 2002 23:01:39 +0200


Sir K writes:
 > <dtml-let article=absolute_url>
 > <dtml-var expr="article[50:9]">
Slicing in Python has the form "...[start_index:end_index]"
and not "...[start_index:length_of_slice]".

"start_index" is included, "end_index" not, such that
"end_index-start_index" gives the slice length.


Dieter