[Zope-Coders] Returned mail: see transcript for details

Mail Delivery Subsystem MAILER-DAEMON@cvs.baymountain.com
Tue, 27 Nov 2001 11:46:36 -0500


This is a MIME-encapsulated message

--fARGka509023.1006879596/cvs.baymountain.com

The original message was received at Tue, 27 Nov 2001 11:46:33 -0500
from IDENT:Zope@localhost.localdomain [127.0.0.1]

   ----- The following addresses had permanent fatal errors -----
<J.DavidIbáñez>
    (reason: addressee unknown)

   ----- Transcript of session follows -----
j.davidibáñez: Mailbox does not exist 
550 5.1.1 <J.DavidIbaqez>... User unknown

--fARGka509023.1006879596/cvs.baymountain.com
Content-Type: message/delivery-status

Reporting-MTA: dns; cvs.baymountain.com
Received-From-MTA: DNS; localhost.localdomain
Arrival-Date: Tue, 27 Nov 2001 11:46:33 -0500

Final-Recipient: RFC822; j.davidibáñez@cvs.baymountain.com
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Unix; 67
Last-Attempt-Date: Tue, 27 Nov 2001 11:46:35 -0500

--fARGka509023.1006879596/cvs.baymountain.com
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit

Return-Path: <zope-coders@zope.org>
Received: from cvs.baymountain.com (IDENT:Zope@localhost.localdomain [127.0.0.1])
	by cvs.baymountain.com (8.10.0/8.10.0) with ESMTP id fARGkX509021;
	Tue, 27 Nov 2001 11:46:33 -0500
Date: Tue, 27 Nov 2001 11:46:33 -0500
Message-Id: <200111271646.fARGkX509021@cvs.baymountain.com>
From: "Collector: Zope Bugs and Patches ..." <zope-coders@zope.org>
To: "J. David Ibáñez" <jdavid@nuxeo.com>
Subject: [ZC] 57/ 1 Request "PluginIndexes, 2 bug"
X-Recipients-debug: ['Anonymous User', 'Anonymous User', 'klm', 'Brian']

Issue #57 Update (Request) "PluginIndexes, 2 bug"
 Status Pending, Catalog/bug medium
To followup, visit:
  http://collector.zope.org/Zope/57

==============================================================
= Request - Entry #1 by Anonymous User on Nov 27, 2001 11:46 am

First bug, the module 'Products/PluginIndexes/tests/testFieldIndex.py'
contains the methods 'checkEmpty', 'checkPopulated', 'checkZero',
'checkNone' and 'checkRange'; they should be named 'testEmpty',
'testPopulated', etc.. otherwise the tests doesn't run.


Last bug, The file 'Products/PluginIndexes/README.txt' from Zope 2.4.3
says that there're two ways to pass parameters:

   old: <dtml-in myCatalog(myindex='xx yy',myindex_usage':'blabla')
   new: <dtml-in myCatalog(myindex={'query':'xx yy','usage':'....'})

And the class 'CatalogTool' in 'Products/CMFCore/CatalogTool.py'
(CMF from the CVS) uses the new way, but it doesn't works.

Add the following test case to'PluginIndexes/tests/testFieldIndex.py':

     def testNewRange(self):
         """Test a range search"""
         index = FieldIndex( 'foo' )
         for i in range(100):
             index.index_object(i, Dummy(i%10))

         r=index._apply_index({'foo': {'query': [-99, 3],
                                       'usage': 'range:min:max'}})

         assert tuple(r[1])==('foo',), r[1]
         r=list(r[0].keys())

         expect=[
             0, 1, 2, 3, 10, 11, 12, 13, 20, 21, 22, 23, 30, 31, 32, 33,
             40, 41, 42, 43, 50, 51, 52, 53, 60, 61, 62, 63, 70, 71, 72,
             73, 80, 81, 82, 83, 90, 91, 92, 93
             ]

         assert r==expect, r

This test is similar to 'testRange' but uses the new way to pass
parameters. It fails:

   AssertionError: [3, 13, 23, 33, 43, 53, 63, 73, 83, 93]




==============================================================


--fARGka509023.1006879596/cvs.baymountain.com--