--On 28. September 2007 16:36:43 +0100 kamal hamzat <[EMAIL PROTECTED]> wrote:

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

for i in context.zCatNewsCurrent():
     if i <= 5:
        print "%s: %s: %s" % (i.id, i.author, i.summary)

        return printed

Look at Python's enumerate() method.


Attachment: pgp9ZLwhXwqLz.pgp
Description: PGP signature

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to