Re: [Zope-dev] Possible ZCatalog Bug

2001-04-06 Thread Chris Withers

Edmund,

This smells like the otehr side of the weird behaviour I was experiencing. You
haven't got any FieldIndexes in there, one of which may have some empty strings
indexde in it?

Anyway, Try applying the patch in this message I posted to zope-dev this morning
"ZCatalog FieldIndex Bug (Fix?)"
...and let me know if it helps (or if it breaks everything ;-)

cheers,

Chris (!M) ;-)

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Possible ZCatalog Bug

2001-04-05 Thread Edmund Goppelt

A ZCatalog when passed an empty mapping of search terms returns no
records found in Zope 2.3.1, instead of all records.  This is not the
way I remember ZCatalog working in previous versions of Zope.  Is this
a bug?

Too, can someone clue me in on the proper place to look for bugs in
Zope before posting an email like this one?  I really hate to take up
people's time raising known bugs.  Maybe I just don't know how to use
it, but the bug collector seems to be out of date or broken or both.

-- 

Ed Goppelt

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Possible ZCatalog Bug

2001-04-05 Thread Edmund Goppelt

On Thu, Apr 05, 2001 at 12:02:31PM -0400, Chris McDonough wrote:
 I tried this in the most recent 2.3 branch:
 
 dtml-var "catalog({})"
 
 And it returned all objects.  Are you sure the mapping is empty?

Yep, though I am passing in some other parameters.  Here's the dtml code that failed:

dtml-in "email.emailcatalog(cleanrequest(), sort_on='date', sort_order='descending')" 
size=20 start=query_start

My recollection is that this worked fine under 2.3.0, but I could be wrong about this.

-- 

Ed Goppelt

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Possible ZCatalog Bug

2001-04-05 Thread Edmund Goppelt

On Thu, Apr 05, 2001 at 05:31:23PM -0400, Chris McDonough wrote:
 What does "cleanrequest" return?

It removes null strings from the REQUEST variable.  But I substituted
the empty mapping {} and got the same anomolous behavior.

-- 

Ed Goppelt

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Possible ZCatalog Bug

2001-04-05 Thread Chris McDonough

Does this work?

dtml-in "catalog({}, sort_on='date', sort_order='descending')"
  dtml-var id
/dtml-in

(it does for me)

If not, does this?

dtml-in "catalog({}, sort_on='bobobase_modification_time',
sort_order='descending')"
  dtml-var id
/dtml-in

If so, what kind of index is 'date'?

- Original Message -
From: "Edmund Goppelt" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, April 05, 2001 9:05 PM
Subject: Re: [Zope-dev] Possible ZCatalog Bug


 On Thu, Apr 05, 2001 at 05:31:23PM -0400, Chris McDonough wrote:
  What does "cleanrequest" return?

 It removes null strings from the REQUEST variable.  But I substituted
 the empty mapping {} and got the same anomolous behavior.

 --

 Ed Goppelt



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )