----- Original Message ----- 
From: Curtis Maloney <[EMAIL PROTECTED]>


> > I suppose that your var is a dictionary
> >
> Well.. this is where things start to get fun. (o8
> 
> I have a dirty great array.... along the lines of :
> 
> [ [ 'string', 0, { 'name':'value' } ], [ 'string', 0, { 'name':'value' } ] ]
> 
> (I love python.. the same thing in C/C++ would take HEAPS of work :)
> 
> So, I iterate over the array... that's working fine...
> Then, for each iteration, I handle the data however...
> I wind up with:
> 
> <dtml-in "_['sequence-item'][2]">
>  <!-- do stuff here -->
> </dtml-in>
> 
> But that's where the problem begins.

Yes in did the "_['sequence-item'][2]" is a dictionary.

You can do like

<dtml-in "[_['sequence-item'][2]]">
<!-- do stuff here -->
</dtml-in>
(untested :0)



but why not without <dtml-in> ...

<!-- do stuff here with "_['sequence-item'][2]['name']"-->

PM



_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to