[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 not

[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:

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 dtml-in ... is noat a sequence (list || tuple) I suppose that your var is a dictionary Insted of : dtml-in x mapping you have to use: dtml-in "[x]" mapping as a list || dtml-in "(x,)" mapping

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 things. But it