|
From: Jean J. <jea...@gm...> - 2014-10-23 12:34:46
|
On Thu, Oct 23, 2014 at 10:00 AM, Jean Jordaan <jea...@gm...> wrote: > > OK, logged here, while I see if I can figure it out: > https://dev.plone.org/ticket/20054 The best I could do was to register a bunch of aliases for the same function: def _country_indexer(context): ... return countries @indexer(IATFile) def country_indexer_file(context): return _country_indexer(context) ... (for country_indexer_file, country_indexer_document, ...) with ZCML: <adapter name="getCountry" factory=".extender.country_indexer_file" /> <adapter name="getCountry" factory=".extender.country_indexer_image" /> <adapter name="getCountry" factory=".extender.country_indexer_project" /> -- jean . .. .... //\\\oo///\\ |