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" <[EMAIL PROTECTED]>
To: "kamal hamzat" <[EMAIL PROTECTED]>; <[email protected]>
Sent: Sunday, June 24, 2007 3:21 PM
Subject: Re: [Zope] python function to know the total number of records in a
catalog object
_______________________________________________
Zope maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )