[Zope-dev] Xron and Zope 2.4.0 again

Remi Delon rdelon@hotmail.com
Sat, 28 Jul 2001 11:27:11


Yes yes yes !!!
It works !
Apparently, using UnIndex was the right method.

Thanks Loren.

Rémi.


>From: "Loren Stafford" <lstafford@morphics.com>
>To: <zope-dev@zope.org>
>CC: "Remi Delon" <rdelon@hotmail.com>, "Walter Miller" 
><wmiller@mediaone.net>
>Subject: RE: [Zope-dev] Xron and Zope 2.4.0 again
>Date: Fri, 27 Jul 2001 12:03:26 -0700
>
>I think you have to tailor Steve's patch a little more. Try something like
>this (untested):
>
>   def __init__(self, id='Schedule', title='Scheduled Event Catalog'):
>     self.id = id
>     self.title = title
>     self.threshold = 1000
>     self._v_total = 0
>     self._catalog = ZCatalog.Catalog()
>     self._catalog.addColumn('id')
>     self._catalog.addColumn('meta_type')
>     self._catalog.addColumn('nextEventTime')
>     self._catalog.addColumn('absolute_url')
>     self._catalog.addIndex('nextEventTime', UnIndex('nextEventTime'))
>     self._catalog.addIndex('absolute_url', UnIndex('absolute_url'))
>
>-- Loren
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp