[Zope] python function to know the total number of records in a catalog object

Andreas Jung lists at zopyx.com
Mon Oct 15 09:16:36 EDT 2007

--On 15. Oktober 2007 13:45:37 +0100 kamal hamzat <hamzat at dnetsystems.net> 

> 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

Please learn about "Acquisiton" - one of the core concepts of Zope.
Likely you want 'context.zCatArticlesCurrent' or something similar.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20071015/1b84661a/attachment.bin

More information about the Zope mailing list