[ZCM] [ZC] 284/ 2 Resolve "KeywordIndex and FieldIndex subclassing"

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Mon, 11 Mar 2002 08:20:00 -0500


Issue #284 Update (Resolve) "KeywordIndex and FieldIndex subclassing"
 Status Resolved, Zope/feature+solution medium
To followup, visit:
  http://collector.zope.org/Zope/284

==============================================================
= Resolve - Entry #2 by htrd on Mar 11, 2002 8:19 am

 Status: Pending => Resolved

merged with the trunk for 2.6
________________________________________
= Request - Entry #1 by htrd on Mar 11, 2002 6:31 am


Uploaded:  "indexsubclass.diff"
 - http://collector.zope.org/Zope/284/indexsubclass.diff/view
KeywordIndex and FieldIndex are not as useful as base classes as they could be with a little refactoring. Specifically, they both have a function 'index_object' which mixes some forward/reverse index heavy lifting with policy decisions such as calling any callable value.

This patch moves the policy into a separate function.
==============================================================