[Zope] Can somebody please help me....
chip johansen
pearlzope@hotmail.com
Fri, 03 Nov 2000 08:56:44 EST
Try
<dtml-call "REQUEST.set('email', _['sequence-item'])">
You must use the _ namespace variable.
>From: "Thomas Søndergaard" <stoonsdesign@hotmail.com>
>To: zope@zope.org
>Subject: [Zope] Can somebody please help me....
>Date: Fri, 03 Nov 2000 11:42:43 CET
>
>I am currently working on a newsletter function, and I am a newbie at this
>EXELLENT ZOPE-Server.....
>
>Therefore can somebody please help me doing this:
>
>******
><dtml-var standard_html_header>
><dtml-in expr="_.string.split(emails.raw,'\n')">
>
><dtml-call "REQUEST.set('first_name', 'none')">
><dtml-call "REQUEST.set('last_name', 'none')">
>
><dtml-call "REQUEST.set('email', <dtml-var sequence-item>)">
><dtml-call "REQUEST.set('title', 'added through list')">
><dtml-with "manage_addProduct['NewsLetter']">
> <dtml-call "newsletter_entry_add(_.None, _, NoRedir=1)">
></dtml-with>
>
></dtml-in>
><dtml-var standard_html_footer>
>******
>
>What i am trying to do here is to add alot of email adresses from a
>dtml-document containing them, one on each line.... But how do I
>REQUEST.set a sequence-item (Sequence-item works perfectly, but not in the
>REQUEST.set line!)
>
>Please Answer me.... = (
>
>Stoonsdesign, Thomas Søndergaard
>
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>Share information about yourself, create your own public profile at
>http://profiles.msn.com.
>
>
>_______________________________________________
>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 )
>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.