Re: [Zope] R: [Zope] dtml-in and maps...

2000-07-12 Thread Curtis Maloney
On Wed, 12 Jul 2000, Marcel Preda wrote: > So, you have to do something like this: > > > "REQUEST.set('superList',[['string1',0,{'name1':'value1'}],['string2',1,{'n >ame2' > > :'value2'}]])"> > > > > > : "temp_sequence_item[2][_['sequence-item']]"> > > > > > > Ok... i've fiddled aroun

[Zope] R: [Zope] dtml-in and maps...

2000-07-12 Thread Marcel Preda
> > > Because, as you seem to keep missing, i want to iterate over all the items in > the map, but i won't know what their keys are! > > By using with, i can bring the map into the name space... SO WHAT? I still > don't know what keys were in the map! > > Get the idea? Ya men... [the `name' is n

Re: [Zope] dtml-in and maps...

2000-07-12 Thread Marcel Preda
- 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':

Re: [Zope] R: [Zope] dtml-in and maps...

2000-07-11 Thread Curtis Maloney
On Tue, 11 Jul 2000, Marcel Preda wrote: > > Greetings, > > > > This seems like it should be a simple thing but I can't seem to find > > how to make dtml-in behave with maps. In particular, empty maps. > > > > I've tried mapping, i've tried testing _.len(map.keys()), and various > > other thi

Re: [Zope] R: [Zope] dtml-in and maps...

2000-07-11 Thread R. David Murray
On Tue, 11 Jul 2000, Marcel Preda wrote: > looks like the variable that you are using in > is noat a sequence (list || tuple) > > I suppose that your var is a dictionary > > > Insted of : > > you have to use: > as a list > || > as a tuple Note that this gives you one iteration of the dtm

[Zope] R: [Zope] dtml-in and maps...

2000-07-11 Thread Marcel Preda
> Greetings, > > This seems like it should be a simple thing but I can't seem to find how > to make dtml-in behave with maps. In particular, empty maps. > > I've tried mapping, i've tried testing _.len(map.keys()), and various other > things. But it always fails, telling me > Error Type

[Zope] dtml-in and maps...

2000-07-10 Thread Curtis Maloney
Greetings, This seems like it should be a simple thing but I can't seem to find how to make dtml-in behave with maps. In particular, empty maps. I've tried mapping, i've tried testing _.len(map.keys()), and various other things. But it always fails, telling me Err