[Zope] python function to know the total number of records in a
catalog object
kamal hamzat
hamzat at dnetsystems.net
Mon Oct 15 08:45:37 EDT 2007
Hi,
I am getting NameError: global name 'zCatArticlesCurrent' is not defined on
this code whereas I have the zCatArticlesCurrent object in the same
container with the script.
a = len(zCatArticlesCurrent)
print a
return printed
Traceback (innermost last):
a.. Module ZPublisher.Publish, line 119, in publish
b.. Module ZPublisher.mapply, line 88, in mapply
c.. Module ZPublisher.Publish, line 42, in call_object
d.. Module Shared.DC.Scripts.Bindings, line 313, in __call__
e.. Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
f.. Module Products.PythonScripts.PythonScript, line 327, in _exec
g.. Module None, line 1, in sizeZcat
<PythonScript at /nation/news/sizeZcat>
Line 1
NameError: global name 'zCatArticlesCurrent' is not defined
----- Original Message -----
From: "Andreas Jung" <lists at zopyx.com>
To: "kamal hamzat" <hamzat at dnetsystems.net>; <zope at zope.org>
Sent: Sunday, June 24, 2007 3:21 PM
Subject: Re: [Zope] python function to know the total number of records in a
catalog object
More information about the Zope
mailing list