[Zope] weighting

Chris McDonough chrism@zope.com
Sun, 14 Jul 2002 18:36:48 -0400


To make this work under 2.5, remove the line from ZCTextIndex.py that
says:

from AccessControl.Permissions import manage_zcatalog_indexes,

and insert this in its place:

manage_zcatalog_indexes =3D  'Manage ZCatalogIndex Entries'

It should work then (do a similar thing in other files if a similar
error occurs within them).

- C



----- Original Message -----
From: "christophe robert" <christof.robert@wanadoo.fr>
To: "Chris Withers" <chrisw@nipltd.com>
Cc: <zope@zope.org>
Sent: Sunday, July 14, 2002 9:46 PM
Subject: Re: [Zope] weighting


Le dim 14/07/2002 =E0 12:43, Chris Withers a =E9crit :
> christophe robert wrote:
> >
> > I seek to know if somebody succeeded has to integrate a mechanism
of
> > weighting or relevance on ZCatalog or TextIndexNG
>
> ZCTextIndex (available from cvs.zope.org) looks like it's supposed
to behave
> just like google.
>

I try to install ZCTextIndex with Zope-2.5.1 but i have
this message


Traceback (most recent call last):
  File "/home/Zope-2.5.1-linux2-x86/lib/python/OFS/Application.py",
line
531, in import_product
    product=3D__import__(pname, global_dict, global_dict, silly)
  File
"/home/Zope-2.5.1-linux2-x86/lib/python/Products/ZCTextIndex/__init__.
py", line 20, in ?
    from Products.ZCTextIndex import ZCTextIndex, HTMLSplitter
  File
"/home/Zope-2.5.1-linux2-x86/lib/python/Products/ZCTextIndex/ZCTextInd
ex.py", line 24, in ?
    from AccessControl.Permissions import manage_zcatalog_indexes,
search_zcatalog
ImportError: cannot import name manage_zcatalog_indexes



> Maybe that will cover your weighting requirements?
>



> cheers,
>
> Chris




_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )