Christoph Zwerschke schrieb:
> Thanks a lot. Found two small issues when testing:
> 
> from email.MIMEMultipart import MIMEMultipart
> --> from email.mime.multipart import MIMEMultipart
> from email.MIMEText import MIMEText
> --> from email.mime.text import MIMEText

Yes, I'll change that, the older form still works for me on Python 2.5
though.

> And if TurboMail is installed, but mail.on is not set, then 
> send_exception_email() will crash, because the globals from the email 
> package have note been imported.

Right, this will hit anybody who has TurboMail installed and tries the
example project as-is. I guess I have to import the email classes all
the time, because the configuration might change at run-time, so I can't
just check for config('mail.on') whether to import or not.

Or I define that the TurboMail 'mail.on' setting also enables/disables
mail sending for ErrorCatcher. What do you suggest?

Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to