[Zope] DTML Document ids
Andreas Jung
andreas at andreas-jung.com
Thu Oct 16 07:12:29 EDT 2003
--On Donnerstag, 16. Oktober 2003 13:04 Uhr +0200 Giuseppe Bonelli
<giuseppe.bonelli at tiscali.it> wrote:
> Can someone explain to me why in the following code the line starting
> with * outputs a null string and the line starting with ** outputs the
> correct id of the DTMLDocument object ?
>
> <dtml-var standard_html_header>
> <dtml-in expr="objectItems('DTML Document')" prefix="sequence">
> *<dtml-var "sequence_item.id"><br/>
maybe because you haven't understand what the underscore namespace is about.
Use <dtml-var "_['sequence-item'].id" >
And btw. *never* access the ID of an object why with 'id'. You should *ever*
use obj.getId().
-aj
More information about the Zope
mailing list