[Zope] how do I test for the current item in an iteration
kamal hamzat
hamzat at dnetsystems.net
Fri Sep 28 11:36:43 EDT 2007
Dear All,
I have this error after i added the if statement
Error Type: TypeError
Error Value: mybrains.__cmp__(x,y) requires y to be a 'mybrains', not a 'int'
for i in context.zCatNewsCurrent():
if i <= 5:
print "%s: %s: %s" % (i.id, i.author, i.summary)
return printed
Pls help
kamal
Error Type: TypeError
Error Value: mybrains.__cmp__(x,y) requires y to be a 'mybrains', not a 'int'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070928/0c02e1d7/attachment.htm
More information about the Zope
mailing list