[Zope] Adding HTML to Python

April Lekin lekin2 at llnl.gov
Wed Dec 6 12:47:49 EST 2006


Hi,
I tried that and it will print the <BR>, like this

These IDs have Errors:<BR> 1<BR> 46 <BR> 76<BR> 45<BR>

At 09:43 AM 12/6/2006, Roberto Benitez wrote:
>add <BR> to the end of each line
>
>example:
>
>l_errorMessage = "These IDs have Errors<BR>" #ADD <BR> AT END OF HEADER LINE
>Loop
>    l_errorMessage = l_errorMessage + " %s<BR>" % (ID) #ADD <BR> AT 
> END OF EACH ID ENTRY
>end loop
>
>
>----- Original Message ----
>From: April Lekin <lekin2 at llnl.gov>
>To: zope at zope.org
>Sent: Wednesday, December 6, 2006 11:12:20 AM
>Subject: [Zope] Adding HTML to Python
>
>In Python I'm building this error message:
>
>l_errorMessage = "These IDs have Errors"
>Loop
>    l_errorMessage = l_errorMessage + " %s " % (ID)
>end loop
>
>return l_errorMessage.
>
>How can I put breaks (returns) between the IDs so each ID will be
>displayed on it's own line?
>like:
>
>These IDs have Errors:
>1
>46
>76
>45
>
>_______________________________________________
>Zope maillist  -  Zope at zope.org
><http://mail.zope.org/mailman/listinfo/zope>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-announce
>http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>
>Everyone is raving about 
><http://us.rd.yahoo.com/evt=45083/*http://advision.webevents.yahoo.com/mailbeta>the 
>all-new Yahoo! Mail beta.
>_______________________________________________
>Zope maillist  -  Zope at zope.org
>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 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20061206/abf0777c/attachment.htm


More information about the Zope mailing list