[Zope] slicing absolute_url

Chris Withers chrisw@nipltd.com
Mon, 12 Aug 2002 14:49:03 +0100


Sir K wrote:
> 
>><dtml-var expr="getObject[0:400]">...<br>
>><a href="&dtml-getURL;"> more </a>
>></dtml-in>
>>
> This is the error encountered when I tried it.
> 
> Error Type: TypeError
> Error Value: unsliceable object

use <dtml-var expr="getObject()[0:400]"> instead.

Chris