[Zope] ZTopics and Canned Queries

Shalabh Chaturvedi shalabh@pspl.co.in
Wed, 17 May 2000 17:24:17 +0530


Hello all,

I have been trying to use ZTopics to create views for my issue tracker product
and have come across a limitation. In a ZTopic object, the query is entirely
hardcoded, whereas what I need is a 'parameterized' query where the value of a
filter may be supplied through the REQUEST at call time.

For example, I can create a ZTopic called FilterCreator: (creator : 'shalabh')
Now http://url/FilterCreator will return all cataloged objects with
creator=='shalabh'.

What I want to do is create: (creator : creatorName)
And use http://url/FilterCreator?creatorName=shalabh

Currently ZTopic does not allow me to create an object like above as it tries
to evaluate the query at creation time.