Is there an API for the queryCatalog() method? In order words a comprehensive definition of the parameters/arguments it accepts. The only definition I can usually find is that is accepts a catalog_query with no definition of what that may be. James
--On 18. März 2008 14:25:19 +1300 James Robertson <james@3months.com> wrote:
Is there an API for the queryCatalog() method? In order words a comprehensive definition of the parameters/arguments it accepts.
queryCatalog() is a Plone(!) API, not a Zope API. If you look at the queryCatalog.py script of Plone, you'll find the complete parameter list within the sources. Most parameters are self-explaining. -aj
Thanks Andreas I (mistakenly?) thought the Plone queryCatalog method simply wrapped a Zope method. Anyway, Martin Aspeli has since explained it as: " The API is just that it takes a dict or keyword arguments that correspond to catalog indexes (which you can see in portal_catalog in the ZMI) and values. " - http://www.nabble.com/queryCatalog-API--to16112195s6742.html#a16119584 Also, another colleague, Tim Knapp, has suggested: " Within your tal code you can do something like: <span tal:define="foo python:here.portal_catalog(indexedMethod='bar')"/> Easiest way to find out what's available to you in the portal_catalog is to browse to it in the ZMI and click on the 'catalog' tab iirc and then click on an object in the catalogued items and see what's currently indexed for it. BTW indexedMethod will be whatever the index is called for your indexed field. " Regards James Robertson On 18/03/2008, Andreas Jung <lists@zopyx.com> wrote:
--On 18. März 2008 14:25:19 +1300 James Robertson <james@3months.com> wrote:
Is there an API for the queryCatalog() method? In order words a comprehensive definition of the parameters/arguments it accepts.
queryCatalog() is a Plone(!) API, not a Zope API. If you look at the queryCatalog.py script of Plone, you'll find the complete parameter list within the sources. Most parameters are self-explaining.
-aj
-- James Robertson Development Manager, 3months <http://3months.com/>, (04) 498 3478 x12 Recent successes - www.treasury.govt.nz, www.jetagent.co.nz and www.wellingtonchamber.co.nz
participants (2)
-
Andreas Jung -
James Robertson