[Checkins] SVN: Zope/branches/2.12/ Protect ZCTextIndex's clear method against storing Acquisition wrappers.

Hanno Schlichting hannosch at hannosch.eu
Wed Feb 17 20:39:23 EST 2010


Log message for revision 109102:
  Protect ZCTextIndex's clear method against storing Acquisition wrappers.
  

Changed:
  U   Zope/branches/2.12/doc/CHANGES.rst
  U   Zope/branches/2.12/src/Products/ZCTextIndex/ZCTextIndex.py

-=-
Modified: Zope/branches/2.12/doc/CHANGES.rst
===================================================================
--- Zope/branches/2.12/doc/CHANGES.rst	2010-02-17 21:30:01 UTC (rev 109101)
+++ Zope/branches/2.12/doc/CHANGES.rst	2010-02-18 01:39:23 UTC (rev 109102)
@@ -20,6 +20,8 @@
 Bugs Fixed
 ++++++++++
 
+- Protect ZCTextIndex's clear method against storing Acquisition wrappers.
+
 - LP #195761: fixed ZMI XML export / import and restored it to the UI.
 
 - MailHost should fall back to HELO when EHLO fails.

Modified: Zope/branches/2.12/src/Products/ZCTextIndex/ZCTextIndex.py
===================================================================
--- Zope/branches/2.12/src/Products/ZCTextIndex/ZCTextIndex.py	2010-02-17 21:30:01 UTC (rev 109101)
+++ Zope/branches/2.12/src/Products/ZCTextIndex/ZCTextIndex.py	2010-02-18 01:39:23 UTC (rev 109102)
@@ -253,7 +253,7 @@
             del self._v_lexicon
         except (AttributeError, KeyError):
             pass
-        self.index = self._index_factory(self.getLexicon())
+        self.index = self._index_factory(aq_base(self.getLexicon()))
 
     ## User Interface Methods ##
 



More information about the checkins mailing list