Re: [Zope-dev] dtml to zpt conversion-please help
--- In zope@yahoogroups.com, Exteam <exteam6@y...> wrote:
Hi,
<dtml-in "Catalog.searchResults({'meta_type':'Workitem', 'status':['active','inactive','fallout'], 'pull_roles':acl_users.getUser(REQUEST['worker']).getRoles()}) + Catalog.searchResults({'meta_type':'Workitem', 'status':['active','inactive','fallout'],'actor':worker})" sort=status,instance_id>
we are facing problem to convert the above dtml code to zpt code. How do we convert this to zpt? Hi,
I'm also new to zpt, but recently I read that you could do something like that by using "Batch", assumming that you only want to print the results. It's on the zope book in the section "Advanced Page Templates". I guess you have to make a python method with the query and call it from the template. Finally you can use Batch to iterate over the elements. Regards, Josef
participants (1)
-
Josef Meile