Re: plain text parsing to html (newbie problem)

2009-12-11 Thread João
Lie Ryan wrote: > You can set MIME type and encoding from the MIME constructor > email.mime.Text.MIMEText("Bold Text", "html", "utf-8") > > are you importing "import mime" or "import email.mime" or "import > email.MIMEMultipart"? Hi Lie. I was importing as, 'from email.mime.text import MIMEText'

Re: plain text parsing to html (newbie problem)

2009-12-11 Thread Lie Ryan
On 12/11/2009 8:43 PM, João wrote: On Dec 10, 7:55 pm, Lie Ryan wrote: and, is there any reason why you're not using the email and smtplib?http://docs.python.org/library/email-examples.html Mainly because I was unaware of them :( I just read about them and I found all the Subject, From, To

Re: plain text parsing to html (newbie problem)

2009-12-11 Thread João
On Dec 10, 7:55 pm, Lie Ryan wrote: > > and, is there any reason why you're not using the email and > smtplib?http://docs.python.org/library/email-examples.html Mainly because I was unaware of them :( I just read about them and I found all the Subject, From, To classes, but what about Content-T

Re: plain text parsing to html (newbie problem)

2009-12-11 Thread João
On Dec 10, 7:55 pm, Lie Ryan wrote: > > and, is there any reason why you're not using the email and > smtplib?http://docs.python.org/library/email-examples.html Mainly because I was unaware of them :( I just read about them and I found all the Subject, From, To classes, but what about Content-T

Re: plain text parsing to html (newbie problem)

2009-12-10 Thread Lie Ryan
On 12/10/2009 11:17 PM, João wrote: Thanks for the output. akean, I've installed ipython and I'm exploring it. Thanks. Terry, from what I've read stringIO allows us to store strings in a 'virtual' file. Can you please write just 2 lines exemplifying a write to and a read from an OS level file?

Re: plain text parsing to html (newbie problem)

2009-12-10 Thread João
Thanks for the output. akean, I've installed ipython and I'm exploring it. Thanks. Terry, from what I've read stringIO allows us to store strings in a 'virtual' file. Can you please write just 2 lines exemplifying a write to and a read from an OS level file? MRAB, that 'mail' object should've bee

Re: plain text parsing to html (newbie problem)

2009-12-10 Thread João
Thanks for the output. akean, I've installed ipython and I'm exploring it. Thanks. Terry, from what I've read stringIO allows us to store strings in a 'virtual' file. Can you please write just 2 lines exemplifying a write to and a read from an OS level file? MRAB, that 'mail' object should've bee

Re: plain text parsing to html (newbie problem)

2009-12-09 Thread akean
On Dec 10, 3:59 am, João wrote: > I apologize for my newbiness but I'm banging my head making this work : > ( ... > How can I see the output run in debug mode like in perl? > One method: install ipython (another python shell, but with some useful extra features) and then run the program inside

Re: plain text parsing to html (newbie problem)

2009-12-09 Thread Terry Reedy
João wrote: I apologize for my newbiness but I'm banging my head making this work : ( What change must I made for the tag enforcement being reflected to the 'mail' file? Am I using the WritableObject class correctly? (I'm getting a blank 'mail' file after running the .py script) How can I see the

Re: plain text parsing to html (newbie problem)

2009-12-09 Thread MRAB
João wrote: I apologize for my newbiness but I'm banging my head making this work : ( What change must I made for the tag enforcement being reflected to the 'mail' file? Am I using the WritableObject class correctly? (I'm getting a blank 'mail' file after running the .py script) How can I see the

plain text parsing to html (newbie problem)

2009-12-09 Thread João
I apologize for my newbiness but I'm banging my head making this work : ( What change must I made for the tag enforcement being reflected to the 'mail' file? Am I using the WritableObject class correctly? (I'm getting a blank 'mail' file after running the .py script) How can I see the output run in