ZCatalog and XMLDocument problem
This has to do with Amos's article on using XMLDocument at xml.com: http://www.xml.com/pub/1999/12/zope/index.html The example for finding items to catalog doesn't work for me. When I enter getNodeName()=='entry' in the 'expr' field I get the following error: Error Type: NameError Error Value: Eval I'm running Debian GNU/Linux (frozen), Zope 2.1.4, Zcatalog 1.0.0 and XMLDocument 1.0a5. Thanks for any help you can give me on this one. Chris Gray University of Waterloo
Hi Chris I wrote Amos for exactly the same thing and here is his answer: ... This is a Zope error. I was working with a development version of Zope which didn't have the error. The error is fixed in CVS and should ship in the next release of Zope. To fix the error add this line near the top of your lib/python/Products/ZCatalog/ZCatalog.py file. from DocumentTemplate.DT_Util import Eval, expr_globals -Amos -- Amos Latteier mailto:amos@digicool.com Digital Creations http://www.digicool.com
This has to do with Amos's article on using XMLDocument at xml.com: http://www.xml.com/pub/1999/12/zope/index.html
The example for finding items to catalog doesn't work for me. When I enter getNodeName()=='entry' in the 'expr' field I get the following error: Error Type: NameError Error Value: Eval
I'm running Debian GNU/Linux (frozen), Zope 2.1.4, Zcatalog 1.0.0 and XMLDocument 1.0a5.
Thanks for any help you can give me on this one.
Chris Gray University of Waterloo
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Regards ------------------------------------------------- Anders Holmbech Nielsen | Tlf: (+45) 70 22 56 00 Software Engineer | Fax: (+45) 70 22 57 00 Integrator Uniware A/S | http:/www.integrator.dk
participants (2)
-
Anders Holmbech Nielsen -
Chris Gray