[Zope-dev] Possible bug in ZCatalog?
Michel Pelletier
michel@digicool.com
Tue, 4 Jan 2000 10:35:30 -0500
Fixed, thanks.
-Michel
> -----Original Message-----
> From: Harry Henry Gebel [mailto:hgebel@inet.net]
> Sent: Tuesday, December 21, 1999 10:32 PM
> To: Zope-Dev@zope.org
> Cc: amos@digicool.com
> Subject: [Zope-dev] Possible bug in ZCatalog?
>
>
> I am running Zope 2.1.1 on a Mandrake Linux 6.1 system with
> the include
> Python 1.5.2 .
>
> While going through the steps in the XML Document article at
> http://www.xml.com/pub/1999/12/zope/index.html I got to the
> "Configuring
> a ZCatalog" section. When I typed
>
> getNodeName()=='entry'
>
> into the "expr" field I got two NameError exceptions
> lib/python/Products/ZCatalog/ZCatalog.py . The names that
> where unknown
> where Eval and expr_globals. A quick look at the top of ZCatalog.py
> revealed that they where not being being imported so I added the line
>
> from DocumentTemplate.DT_Util import Eval, expr_globals
>
> to the imports. After adding this line I no longer got an
> exception when
> pressing the "Find" button.
>
> The search came up with no results instead of the two predicted in the
> article. I am not familiar with XML Documents or ZCatalogs,
> so I do not
> know if this is another problem with ZCatalog, a problem with XML
> Document or the article, or if I have missed a step somewhere.
>
> ----------------------------------------------------------------------
> Harry Henry Gebel ICQ# 43675297
> West Dover Hundred, Delaware
> John McCain for President in 2000 http://www.mccain2000.com
>
> _______________________________________________
> 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 )
>