[Zope] Can't use <dtml-in> with <dtml-boundary>
Kelvin Cheong
amoebia@vcn.com.my
Thu, 22 Mar 2001 12:40:15 +0800
Hi all,
Is there anyway to use <dtml-in> tags with <dtml-boundary>??? I'm trying
to allow users to attach multiple files but i can't retrieve the "list"
of files (of course lists indicates an undefined number of files), as it
seems Zope won't allow <dtml-boundary> and <dtml-in> to get along.
My codes are :
<dtml-sendmail mailhost="MailHost">
From: webmaster@vcn.com.my
To: amoebia@vcn.com.my
Subject: attach
<dtml-mime type=text/plain encode=7bit>
<dtml-boundary type=image/jpeg disposition=attachment
encode=base64><dtml-in filelist><dtml-var
"attachLFS[_['sequence-item']].data"></dtml-in>
</dtml-mime>
<!--
#
# I'm really trying to achieve this actually but couldn't cuz Zope won't
allow it : -
# <dtml-in filelist>
# <dtml-boundary type=image/jpeg disposition=attachment
encode=base64><dtml-var attachLFS[_['sequence-item']].data">
# </dtml-in></dtml-mime>
#
#
!-->
</dtml-sendmail>
So say I have files
foo1.jpg
foo2.txt
foo3.gif
I'm trying to generate something lke :
<dtml-sendmail mailhost="MailHost">
From: webmaster@vcn.com.my
To: amoebia@vcn.com.my
Subject: attach
<dtml-mime type=text/plain encode=7bit>
<dtml-var getname>
<dtml-boundary type=image/jpeg disposition=attachment
encode=base64><dtml-var foo1.jpg>
<dtml-boundary type=image/jpeg disposition=attachment
encode=base64><dtml-var foo2.txt>
<dtml-boundary type=image/jpeg disposition=attachment
encode=base64><dtml-var foo3.gif>
</dtml-mime>
</dtml-sendmail>
Anyone done this before? Or perhaps can anyone suggest a workaround?
Thanx in advance dudes and dudettes!!
amoebia.