[Zope] zcatalog and zpt question

Mark Lilly mark.lilly@conceracorp.com
Fri, 10 May 2002 14:08:19 -0700


I have a python script which returns mybrains instances from a catalog.
here's the code:
return context.Tasks.Catalog({'id' : task_id})

i want to retrieve the meta data values in a template.
so far i have this, which doesn't work, saying that task_name is not defined
in task, even though task_name is a meta data piece in the catalog.
 <span tal:define="task
python:root.CT.Scripts.P_Scripts.getTask('20020507125159')"
         	tal:replace="task/task_name"></span> 

How do i get at the pieces of meta data in a catalog through ZPT??

Thanks,
mark