[Zope] problem with ZCatalog
Ibaņez Palomar Juan David
al028823@alumail.uji.es
Fri, 14 Jan 2000 17:57:06 +0100 (NFT)
I'm using Zope 2.1.2 and following the tutorial
"Creating XML Applications with Zope" by Amos.
When configuring the ZCatalog (in the "Find items
to ZCatalog" tab) I get the error:
Error Type: NameError
Error Value: Eval
the HTML source says:
Traceback (innermost last):
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 179, in publish
File /usr/lib/zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook
(Object: ElementWithAttributes)
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 165, in publish
File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_catalogFoundItems)
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object
(Object: manage_catalogFoundItems)
File /usr/lib/zope/lib/python/Products/ZCatalog/ZCatalog.py, line 306, in manage_catalogFoundItems
(Object: ElementWithAttributes)
File /usr/lib/zope/lib/python/Products/ZCatalog/ZCatalog.py, line 489, in ZopeFindAndApply
(Object: ElementWithAttributes)
NameError: (see above)
The line 489 of the file ZCatalog.py is:
obj_expr=(Eval(obj_expr, expr_globals), md, md._push, md._pop)
Then I change Eval to eval, and try again, now the error is:
Error Type: NameError
Error Value: expr_globals
and the source...
Traceback (innermost last):
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 179, in publish
File /usr/lib/zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook
(Object: ElementWithAttributes)
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 165, in publish
File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_catalogFoundItems)
File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object
(Object: manage_catalogFoundItems)
File /usr/lib/zope/lib/python/Products/ZCatalog/ZCatalog.py, line 306, in manage_catalogFoundItems
(Object: ElementWithAttributes)
File /usr/lib/zope/lib/python/Products/ZCatalog/ZCatalog.py, line 489, in ZopeFindAndApply
(Object: ElementWithAttributes)
NameError: (see above)
Is this a bug?
or have I done something wrong?
Thanks,
David