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
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? The collector is the right place for things like this. I hope it's not broken. :-( ----- Original Message ----- From: "Edmund Goppelt" <goppelt@goppelt.net> To: <zope-dev@zope.org> Sent: Thursday, April 05, 2001 11:54 AM Subject: [Zope-dev] Possible ZCatalog Bug
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 - Zope-Dev@zope.org 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 )
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
What does "cleanrequest" return? ----- Original Message ----- From: "Edmund Goppelt" <goppelt@goppelt.net> To: "Chris McDonough" <chrism@digicool.com> Cc: <zope-dev@zope.org> Sent: Thursday, April 05, 2001 5:04 PM Subject: Re: [Zope-dev] Possible ZCatalog Bug
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
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
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" <goppelt@goppelt.net> To: "Chris McDonough" <chrism@digicool.com> Cc: <zope-dev@zope.org> 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
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) ;-)
participants (3)
-
Chris McDonough -
Chris Withers -
Edmund Goppelt