Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-11 Thread Chris Withers
Tom Von Lahndorff wrote: How is dtml more "error-prone" than python? I'd imagine that all depends on who's authoring it. In this particular example, python's email package has a very OO approach to generating emails. The DTML approach relies on you remembering to put in the right statements

Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-11 Thread Chris Withers
Tom Von Lahndorff wrote: The email library should be available to use with a Script (Python) and can be done all within the ZMI. Yes, I wish it was. I believe that was one of the things I did in the MailTemplates product: just make the standard python email package bits available in Zope prot

Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-10 Thread Tom Von Lahndorff
How is dtml more "error-prone" than python? I'd imagine that all depends on who's authoring it. > On Wed, Apr 9, 2008 at 11:59 PM, Andreas Jung <[EMAIL PROTECTED]> wrote: > > > > > > > --On 9. April 2008 22:40:01 +0200 Josef Meile <[EMAIL PROTECTED]> > > wrote: > > > > Dear list > > > > > > I'm

Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-10 Thread Tom Von Lahndorff
The email library should be available to use with a Script (Python) and can be done all within the ZMI. Otherwise maybe use dtml-try? On Wed, Apr 9, 2008 at 4:40 PM, Josef Meile <[EMAIL PROTECTED]> wrote: > Dear list > > I'm trying to send a multi-part email after having submitted a > form. In th

Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-10 Thread Chris Withers
Andreas Jung wrote: I started shivering while reading your code. We would have written such code five or six years ago - because we had no other choice. Please use the standard 'email' module of Python...this just works and you don't need to write such ugly and error-prone DTML code. There's

Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-09 Thread Andreas Jung
--On 9. April 2008 22:40:01 +0200 Josef Meile <[EMAIL PROTECTED]> wrote: Dear list I'm trying to send a multi-part email after having submitted a form. In that form, the user will give some basic information from him, then he will be able to send at most three files. I started shivering whi