<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<P>Dear All,</P>
<P>I have this error after i added the if statement</P>
<P><STRONG>Error Type: TypeError</STRONG><BR><STRONG>Error Value:
mybrains.__cmp__(x,y) requires y to be a 'mybrains', not a
'int'</STRONG><BR></P>
<P><FONT face=Arial size=2>for i in
context.zCatNewsCurrent():<BR> if i <= 5:
<BR> print "%s: %s: %s" % (i.id,
i.author, i.summary)</FONT></P>
<P><FONT face=Arial size=2> return
printed</FONT></P>
<P><FONT face=Arial size=2></FONT> </P>
<P><FONT face=Arial size=2>Pls help</FONT></P>
<P><FONT face=Arial size=2>kamal</FONT></P>
<P> </P>
<P><STRONG></STRONG> </P>
<P><STRONG>Error Type: TypeError</STRONG><BR><STRONG>Error Value:
mybrains.__cmp__(x,y) requires y to be a 'mybrains', not a
'int'</STRONG><BR></P></DIV></BODY></HTML>