Re: [Zope] Adding HTML to Python
Hi, That doesn't work either! It doesn't print anything. Weird! At 09:44 AM 12/6/2006, Dragos Chirila wrote: maybe you can try to add new lines l_errorMessage = l_errorMessage + " %s\n " % (ID) regards, Dragos On 12/6/06, April Lekin <[EMAIL PROTECTED]> 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@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 ) ___ Zope maillist - Zope@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 ) ___ Zope maillist - Zope@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 )
Re: [Zope] Adding HTML to Python
if you are using ZPT to display the result of the method use 'structure', if you are usign DTML make sure you dont't encode the result if is plain text use new line character as I sad above. regards, Dragos On 12/6/06, April Lekin <[EMAIL PROTECTED]> wrote: Hi, I tried that and it will print the , like this These IDs have Errors: 1 46 76 45 At 09:43 AM 12/6/2006, Roberto Benitez wrote: add to the end of each line example: l_errorMessage = "These IDs have Errors" #ADD AT END OF HEADER LINE Loop l_errorMessage = l_errorMessage + " %s" % (ID) #ADD AT END OF EACH ID ENTRY end loop - Original Message From: April Lekin <[EMAIL PROTECTED]> To: zope@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@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 ) Everyone is raving about the all-new Yahoo! Mail beta. ___ Zope maillist - Zope@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 ) ___ Zope maillist - Zope@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 ) -- Dragos Chirila [EMAIL PROTECTED] (+4) 0722 395375 ___ Zope maillist - Zope@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 )
Re: [Zope] Adding HTML to Python
Hi, I tried that and it will print the , like this These IDs have Errors: 1 46 76 45 At 09:43 AM 12/6/2006, Roberto Benitez wrote: add to the end of each line example: l_errorMessage = "These IDs have Errors" #ADD AT END OF HEADER LINE Loop l_errorMessage = l_errorMessage + " %s" % (ID) #ADD AT END OF EACH ID ENTRY end loop - Original Message From: April Lekin <[EMAIL PROTECTED]> To: zope@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@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@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 ) ___ Zope maillist - Zope@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 )
Re: [Zope] Adding HTML to Python
+---[ April Lekin ]-- | 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 try this; errors = ['These IDS have errors'] loop errors.append(ID) end loop return ''.join(errors) -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@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 )
Re: [Zope] Adding HTML to Python
maybe you can try to add new lines l_errorMessage = l_errorMessage + " %s\n " % (ID) regards, Dragos On 12/6/06, April Lekin <[EMAIL PROTECTED]> 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@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 ) ___ Zope maillist - Zope@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 )
Re: [Zope] Adding HTML to Python
add to the end of each line example: l_errorMessage = "These IDs have Errors" #ADD AT END OF HEADER LINE Loop l_errorMessage = l_errorMessage + " %s" % (ID) #ADD AT END OF EACH ID ENTRY end loop - Original Message From: April Lekin <[EMAIL PROTECTED]> To: zope@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@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 ) Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now.___ Zope maillist - Zope@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 )
[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@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 )