[Zope] DTML difficulties

ender kthangavelu@earthlink.net
Tue, 30 Jan 2001 14:14:59 -0800


<dtml-with jobs>
<dtml-in "objectValues('JobsZClass')">
<option value="<dtml-var id>"><dtml-var title_or_id></option>
</dtml-in>
</dtml-with>

same thing for taskforces

your error from what you tried was because you were trying to treat
the taskforce and job folder objects as lists which they aren't. what you had 
would work, if you changed your <dtml-in> to reference the respective folders 
objectValues method which will return a list of objects which <dtml-in> will 
iterate over.

kapil


On Tuesday 30 January 2001 15:12, Nolan Darilek wrote:
> I'm working on my first zope product and, while everything has gone
> relatively smoothly so far, I'm having some issues.
>
> The product is a folderish object which contains 3 subfolders, each of
> which contains a specific type of object. The structure looks
> something like this:
> work/: Main folder, UI, etc
>        jobs/: List of all jobs
>        projects/:
>        taskforces/:
>
> Each folder contains a job, project or taskforce object, as well as
> the UI to manage them.

> Now, the difficulty. I'm working on the UI for the job add form, which
> is in work/jobs. The form needs to iterate over the contents of
> projects/ and taskforces/, and I can't figure out how. Here's what
> I've tried: