cannot iterate catalog brains when sort is defined
Bug #143504 reported by
kedai
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Low
|
Unassigned |
Bug Description
attached is a minimal setup (zexp)
import to zope instance, try view test. all shoud be ok
try testsort .. we'll get
Error Type: TypeError
Error Value: mybrains.
the only difference is the sort='something' in dtml-in
tq
To post a comment you must log in.
In case it helps: I get this with Zope 2.8.1 at DT_In.py line 783 when doing < dtml-in results sort=lastEditTime ... >. It worked with Zope 2.7. The list s at that point looks like:
(Pdb) for i in U: print i '2004/10/ 29 13:09:28 GMT-7'), <Products. ZCatalog. Catalog. mybrains object at 0x423acbe4>) '2004/11/ 18 12:36:56 US/Pacific'), <Products. ZCatalog. Catalog. mybrains object at 0x423acb44>)
(DateTime(
(DateTime(
...
I get the same error when comparing two of these brains, eg:
(Pdb) b1 < b2 __cmp__ (x,y) requires y to be a 'mybrains', not a 'ImplicitAcquir erWrapper'
*** TypeError: mybrains.