[Zope] Adding HTML to Python

Dragos Chirila objectvalues at gmail.com
Wed Dec 6 12:44:32 EST 2006


maybe you can try to add new lines

l_errorMessage = l_errorMessage + " %s\n " % (ID)

regards,
Dragos

On 12/6/06, April Lekin <lekin2 at llnl.gov> wrote:
> 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
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>


More information about the Zope mailing list