Re: [Zope-dev] ZCatalog bug in 2.3.1b2

2001-03-20 Thread Chris McDonough

I cannot reproduce this, Andy, although I'm sure something is up.  If it
continues to fail under b3, can you possibly send me a Data.fs that exhibits
the problem?

Sorry,

- C

- Original Message -
From: "Andy Dawkins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 20, 2001 11:02 AM
Subject: [Zope-dev] ZCatalog bug in 2.3.1b2


> I posted this before but didn't get a reply.
>
> Has any one seen this bug, Or do they know a fix?
>
> ATM this is stopping me using 2.3.1b2 which is a bad thing(tm)
>
> ---
> Zope Errorr
>
> Zope has encountered an error while publishing this resource.
>
> Error Type: TypeError
> Error Value: len() of unsized object
>
> With this traceback:
> Traceback (innermost last):
>   File
> /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py,
> line 223, in publish_module
>   File
> /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py,
> line 187, in publish
>   File
> /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Zope/__init__.py,
> line 221, in zpublisher_exception_hook
> (Object: Traversable)
>   File
> /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py,
> line 171, in publish
>   File
> /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/mapply.py,
> line
> 160, in mapply
> (Object: executeSearch)
>   File
> /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py,
> line 112, in call_object
> (Object: executeSearch)
>   File
> /usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/OFS/DTMLMethod.py,
> line 189, in __call__
> (Object: executeSearch)
>   File
>
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_String
.py,
> line 538, in __call__
> (Object: executeSearch)
>   File
>
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_Let.py
,
>
> line 146, in render
> (Object: Results="Catalog(REQUEST=REQUEST)")
>   File
>
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_Util.p
y,
> line 334, in eval
> (Object: Catalog(REQUEST=REQUEST))
> (Info: REQUEST)
>   File , line 0, in ?
>   File
>
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/ZCatalog
.py,
> line 530, in searchResults
> (Object: Traversable)
>   File
>
>
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/Catalog.
py,
> line 654, in searchResults
>   File
>
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/Catalog.
py,
> line 591, in _indexedSearch
> TypeError: (see above)
> 
>
> Here is the line which calls the search:
>
> sr = self.searchResults({'Type' : type, 'sort_on':'lowercase_title_'})
>
> fyi. type = 'TypeTest'
>
> The indexes are as follows:
> Status = Text Index
> Type = Field Index
> Identifier = Field Index
> lowercase_title_ = Field Index
> parent_identifiers_ = Keyword Index
>
> The meta types are like this:
> Title
> id
> identifier
>
> There are only 13 records in the catalog.
> And there are some results to be returned.
>
> Cheers
> -Andy
>
> ___
> 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 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] ZCatalog bug in 2.3.1b2

2001-03-20 Thread Andy Dawkins

I posted this before but didn't get a reply.

Has any one seen this bug, Or do they know a fix?

ATM this is stopping me using 2.3.1b2 which is a bad thing(tm)

---
Zope Errorr

Zope has encountered an error while publishing this resource.

Error Type: TypeError
Error Value: len() of unsized object

With this traceback:
Traceback (innermost last):
  File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 223, in publish_module
  File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 187, in publish
  File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Zope/__init__.py,
line 221, in zpublisher_exception_hook
(Object: Traversable)
  File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 171, in publish
  File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/mapply.py,
line
160, in mapply
(Object: executeSearch)
  File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/ZPublisher/Publish.py,
line 112, in call_object
(Object: executeSearch)
  File 
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/OFS/DTMLMethod.py,
line 189, in __call__
(Object: executeSearch)
  File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
(Object: executeSearch)
  File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_Let.py,

line 146, in render
(Object: Results="Catalog(REQUEST=REQUEST)")
  File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/DocumentTemplate/DT_Util.py,
line 334, in eval
(Object: Catalog(REQUEST=REQUEST))
(Info: REQUEST)
  File , line 0, in ?
  File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/ZCatalog.py,
line 530, in searchResults
(Object: Traversable)
  File

/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/Catalog.py,
line 654, in searchResults
  File
/usr/local/src/Zope-2.3.1b2-linux2-x86/lib/python/Products/ZCatalog/Catalog.py,
line 591, in _indexedSearch
TypeError: (see above)


Here is the line which calls the search:

sr = self.searchResults({'Type' : type, 'sort_on':'lowercase_title_'})

fyi. type = 'TypeTest'

The indexes are as follows:
Status = Text Index
Type = Field Index
Identifier = Field Index
lowercase_title_ = Field Index
parent_identifiers_ = Keyword Index

The meta types are like this:
Title
id
identifier

There are only 13 records in the catalog.
And there are some results to be returned.

Cheers
-Andy

___
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 )