[ZPT] dtml-with in ZPT

Jean Jordaan jean@upfrontsystems.co.za
Fri, 16 Aug 2002 15:02:35 +0200


Chris Withers wrote:
> Try this:
> 
> <tal:x define="date here/date"
>        replace="date/calendar"/>

Nah :/  This works:

<tal:calendar content="structure python:here.date.calendar(here.date, request)" />

This doesn't:

<tal:calendar define="date here/date" content="structure date/calendar" />

  Error Type: TALESError
  Error Value: exceptions.NameError on global name 'getItemsForDate' is not 
defined in "standard:'date/calendar'", at line 22, column 1

'getItemsForDate' is a PythonScript in 'date'. The call fails
identically to <tal:calendar content="structure here/date/calendar" />
which is where I started from ..

-- 
Jean Jordaan
Upfront Systems                         http://www.upfrontsystems.co.za