Added context parameter to "getIndex" and "apply" methods to match last hurry.query package signatures ZTK-1.1
authorThierry Florac
Sun, 30 Oct 2011 02:42:34 +0200
branchZTK-1.1
changeset 77 f332c2d642ad
parent 75 2a578c0f65bb
child 78 f92f21797abf
Added context parameter to "getIndex" and "apply" methods to match last hurry.query package signatures
ztfy/utils/catalog/index.py
--- a/ztfy/utils/catalog/index.py	Thu Oct 20 01:33:59 2011 +0200
+++ b/ztfy/utils/catalog/index.py	Sun Oct 30 02:42:34 2011 +0200
@@ -142,11 +142,11 @@
         super(Text, self).__init__(index_id)
         self.text = text
 
-    def getIndex(self):
-        index = super(Text, self).getIndex()
+    def getIndex(self, context=None):
+        index = super(Text, self).getIndex(context)
         assert ITingIndex.providedBy(index)
         return index
 
-    def apply(self):
-        index = self.getIndex()
+    def apply(self, context=None):
+        index = self.getIndex(context)
         return IFBTree.IFSet(index.apply(self.text))