[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG - StopWords.py:1.1.2.5 BaseStopWords.py:1.1.2.5
Andreas Jung
andreas@digicool.com
Tue, 22 Jan 2002 09:32:44 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG
In directory cvs.zope.org:/tmp/cvs-serv12641
Modified Files:
Tag: ajung-textindexng-branch
StopWords.py BaseStopWords.py
Log Message:
aliases to C methods are not pickable -> function wrapper
=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/StopWords.py 1.1.2.4 => 1.1.2.5 ===
from Persistence import Persistent
-from Acquisition import Implicit
from BaseStopWords import BaseStopWords
-class StopWords(Persistent, Implicit, BaseStopWords):
+class StopWords(Persistent, BaseStopWords):
pass
=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/BaseStopWords.py 1.1.2.4 => 1.1.2.5 ===
raise ValueError
- self.keys = self._words.keys
- self.values = self._words.values
- self.items = self._words.items
- self.has_key= self._words.has_key
- self.get = self._words.get
+ def keys(self): return self._words.keys()
+ def values(self): return self._words.values()
+ def items(self): return self._words.items()
+ def has_key(self,k): return self._words.has_key(k)
+ def get(self,k): return self._words.get(k)
def __del__(self,k): del self._word[k]