[Zope] Adding HTML to Python

2006-12-06 Thread 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

Re: [Zope] Adding HTML to Python

2006-12-06 Thread April Lekin
= l_errorMessage + %sBR % (ID) #ADD BR 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

Re: [Zope] Adding HTML to Python

2006-12-06 Thread April Lekin
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

[Zope] Regular Expressions

2006-04-20 Thread April Lekin
Can you use regular expressions in Zope? I'm trying to do a date match, something like this: date = re.match(l_date, '\d\d\d\d\/\d\d/\d\d') Looks like it doesn't like the re.match? ___ Zope maillist - Zope@zope.org

[Zope] Update Multiple Records

2006-03-21 Thread April Lekin
Hi, I have a web page that goes to a database and pulls out a bunch of records for display and then I gave each field the ability to modify except the primary ID. The problem I'm having is how do I make each field unique so that I can go back to the database and update the record. I was