[Zope] attaching files from a folder

3205 5361 1215 9784 keo@goa.hu
29 Nov 2002 11:52:15 +0100


On Tue, 2002-11-26 at 20:12, Dylan Reinhardt wrote:
> Last I checked, you can't have any space between <dtml-boundary> and 
> </dtml-mime>.  That </dtml-in> counts as a space.

so what should i do? how can the tag be counted as space?

> As a practical matter, I'm pretty sure you need one mime tag per 
> attachment, though they can be nested.  Be careful about allowing any extra 
> space to creep in to your DTML... it will be inserted into the MIME output, 
> which is probably not what you want.

what is the solution? i dont understand this nesting ... if i make an
attachment, which contains more attachments, then i got the same
problem. adding multiple attachments from a folder requires <dtml-in>,
and there is the space problem again.


- jonatan

> 
> HTH,
> 
> Dylan
> 
> 
> At 10:50 AM 11/26/2002, you wrote:
> >hi!
> >
> >
> >i would like to attach files in a folder named 'attach'
> >
> >here is a very basic dtml:
> >
> ><dtml-mime type="text/plain; charset=iso-8859-2"
> >encode="quoted-printable">
> ><dtml-in "attach.objectValues()">
> ><dtml-boundary encode="base64" disposition="attachment">
> ></dtml-in>
> ></dtml-mime>
> >
> >
> >zope doesnt permit saving this:
> >
> >Error Type: Document Template Parse Error
> >Error Value: Unexpected tag, for tag <dtml-boundary encode="base64"
> >disposition="attachment">, on line 37 of send_welcome_mail
> >
> >if i get <dtml-boundary> out of <dtml-in>, then it works. but how can i
> >loop over some sequence to be included within <dtml-boundary>?
> >
> >
> >one more question: i would like "8bit" for content-transfer encoding.
> >isnt there a way to use that?
> >
> >thanks,
> >
> >
> >jonatan
> >
> >
> >
> >_______________________________________________
> >Zope maillist  -  Zope@zope.org
> >http://lists.zope.org/mailman/listinfo/zope
> >**   No cross posts or HTML encoding!  **
> >(Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>