[Zope] Odd behaviour with lexicons and ZCTextIndex
Paavo Parkkinen
pparkkin@cc.jyu.fi
Mon, 21 Jul 2003 19:47:54 +0300
On ke, 09.07.2003 at 20:55 +0200, Dieter Maurer wrote:
> Is it possible that your "ZCatalog" is not yet acquisition wrapped
> when you call "addIndex"?
I finally had some time to take a look at this problem a little
deeper, and it seems that the ZCatalog is not aquisition wrapped
when calling 'addIndex'. This problem seems to be fixed in 2.7.0-a1.
Here's a patch for the 2.6.1 users:
--- ZCatalog.py.orig 2003-07-21 19:31:55.000000000 +0300
+++ ZCatalog.py 2003-07-21 19:45:21.000000000 +0300
@@ -894,7 +894,7 @@
# for new index types is to use an "extra" record.
=20
if 'extra' in base.__init__.func_code.co_varnames:
- index =3D base(name, extra=3Dextra, caller=3Daq_base(self))
+ index =3D base(name, extra=3Dextra, caller=3Dself)
else:
index =3D base(name, aq_base(self))
--=20
paavo.
"joskus voi t=E4=E4 meno k=E4yd=E4 ahdistavaksi
kun on t=E4=E4ll=E4 muodostunut tavaksi
muuttaa jokaisen el=E4m=E4n arvo rahaksi"