Registering an indexer for multiple types
Jean Jordaan <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <CAJqnznDMN+U6=x3pFzh0O4ZYpikg_+AZa6WxPeUxawGgD6DNWg@mail.gmail.com> |
Hi there
In `configure.zcml` I have:
<adapter name="getCountry" factory=".extender.country_indexer" />
In `extender.py` I have:
@indexer(IATFile)
@indexer(IATImage)
@indexer(IProject)
@indexer(IATDocument)
def country_indexer(context):
return _country_indexer(context)
But this doesn't catalog all those types under the `getCountry` index.
If I comment out all but one decorator, it works for that type.
How can I manage to catalog all of them?
--
jean . .. .... //\\\oo///\\
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho