Re: Rebuilding mail_catalog
from
rmarianski
on Feb 08, 2009 12:13 PM
On Sat, Feb 07, 2009 at 10:04:29PM +0000, Hamish Harvey wrote:
> Hi,
>
> I thought for a while that the listen object was entirely opaque, but
> happened to tack /manage on the end of the list url and found that
> doing so exposes the structure. That allowed me to delete a test
> message, but now I need to rebuild the catalogue so it doesn't show in
> the views. If I click on mail_catalog in the ZMI left column, however,
> I get a Plone page saying "that page does not exist".
It's under utilities/ISearchableArchive. Maybe you have to tack on
/manage_main to that as well.
> Using bin/instance debug, too, I can get to the list object, but not
> to its mail_catalog.
It's a local utility on the mailing list.
ml = portal.path.to.mailing_list
from zope.app.component.hooks import setSite
setSite(ml)
from Products.listen.interfaces import ISearchableArchive
from zope.component import getUtility
mail_catalog = getUtility(ISearchableArchive)
Robert
> Any hints on how to rebuild the catalogue?
>
> Thanks
> Hamish
>
> --
> Hamish Harvey
> Research Associate, School of Civil Engineering and Geosciences,
> Newcastle University
>
>
> --
> Archive: http://www.openplans.org/projects/listen/lists/listen-dev/archive/2009/02/1234044272520
> To unsubscribe send an email with subject "unsubscribe" to listen-dev@.... Please contact listen-dev-manager@... for questions.