[Zope] Passing a list through a url

Menard.Jean-Francois@hydro.qc.ca Menard.Jean-Francois@hydro.qc.ca
Wed, 18 Apr 2001 12:41:50 -0400


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0C826.77B44830
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

You can pass each item in the Querystring like (untested):

<dtml-call "REQUEST.set('redirectURL', 'Destination?')">
<dtml-in myListe>
  <dtml-call "REQUEST.set('redirectURL', redirectURL + "myList=3D" +
_['sequence-item'] + '&')">
</dtml-in>
<dtml-call "RESPONSE.redirect(redirectURL)">=20

Hope this help!
Jean-Fran=E7ois M=E9nard
Intranet DPAS
Pratiques d'affaires et orientations
*        (514) 840-3000  poste 3939
*  (514) 840-5585
*  menard.jean-francois@hydro.qc.ca
*         855 Ste-Catherine est, 6e =E9tage
              Montr=E9al, Qu=E9. H2L 4P5


-----Message d'origine-----
De : belen@netcom.no [mailto:belen@netcom.no]
Envoy=E9 : mercredi 18 avril 2001 12:32
=C0 : zope@zope.org
Objet : [Zope] Passing a list through a url


I need to pass a list through a url. Is there anyway to do it?

 I receive a list from a DTML document and I need to pass it again to a =

method. I have verified that the intermediate document receives a list=20
but when the last method retrieves it the type is string. I can cast it =

to be a list by :

<dtml-call "RESPONSE.redirect('Destination?myList:list'+`myList`)">=20

but  <dtml-var mylist> renders ["[x]"] where I have a list containing a =

string.

Any ideas?

Thanks

Belen



_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -=20
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

------_=_NextPart_001_01C0C826.77B44830
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Zope] Passing a list through a url</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>You can pass each item in the Querystring like =
(untested):</FONT>
</P>

<P><FONT SIZE=3D2>&lt;dtml-call &quot;REQUEST.set('redirectURL', =
'Destination?')&quot;&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;dtml-in myListe&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp; &lt;dtml-call =
&quot;REQUEST.set('redirectURL', redirectURL + &quot;myList=3D&quot; + =
_['sequence-item'] + '&amp;')&quot;&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;/dtml-in&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;dtml-call =
&quot;RESPONSE.redirect(redirectURL)&quot;&gt; </FONT>
</P>

<P><FONT SIZE=3D2>Hope this help!</FONT>
<BR><FONT SIZE=3D2>Jean-Fran=E7ois M=E9nard</FONT>
<BR><FONT SIZE=3D2>Intranet DPAS</FONT>
<BR><FONT SIZE=3D2>Pratiques d'affaires et orientations</FONT>
<BR><FONT SIZE=3D2>*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (514) =
840-3000&nbsp; poste 3939</FONT>
<BR><FONT SIZE=3D2>*&nbsp; (514) 840-5585</FONT>
<BR><FONT SIZE=3D2>*&nbsp; menard.jean-francois@hydro.qc.ca</FONT>
<BR><FONT SIZE=3D2>*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
855 Ste-Catherine est, 6e =E9tage</FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; Montr=E9al, Qu=E9. H2L 4P5</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Message d'origine-----</FONT>
<BR><FONT SIZE=3D2>De : belen@netcom.no [<A =
HREF=3D"mailto:belen@netcom.no">mailto:belen@netcom.no</A>]</FONT>
<BR><FONT SIZE=3D2>Envoy=E9 : mercredi 18 avril 2001 12:32</FONT>
<BR><FONT SIZE=3D2>=C0 : zope@zope.org</FONT>
<BR><FONT SIZE=3D2>Objet : [Zope] Passing a list through a url</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>I need to pass a list through a url. Is there anyway =
to do it?</FONT>
</P>

<P><FONT SIZE=3D2>&nbsp;I receive a list from a DTML document and I =
need to pass it again to a </FONT>
<BR><FONT SIZE=3D2>method. I have verified that the intermediate =
document receives a list </FONT>
<BR><FONT SIZE=3D2>but when the last method retrieves it the type is =
string. I can cast it </FONT>
<BR><FONT SIZE=3D2>to be a list by :</FONT>
</P>

<P><FONT SIZE=3D2>&lt;dtml-call =
&quot;RESPONSE.redirect('Destination?myList:list'+`myList`)&quot;&gt; =
</FONT>
</P>

<P><FONT SIZE=3D2>but&nbsp; &lt;dtml-var mylist&gt; renders =
[&quot;[x]&quot;] where I have a list containing a </FONT>
<BR><FONT SIZE=3D2>string.</FONT>
</P>

<P><FONT SIZE=3D2>Any ideas?</FONT>
</P>

<P><FONT SIZE=3D2>Thanks</FONT>
</P>

<P><FONT SIZE=3D2>Belen</FONT>
</P>
<BR>
<BR>

<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>Zope maillist&nbsp; -&nbsp; Zope@zope.org</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://lists.zope.org/mailman/listinfo/zope" =
TARGET=3D"_blank">http://lists.zope.org/mailman/listinfo/zope</A></FONT>=

<BR><FONT SIZE=3D2>**&nbsp;&nbsp; No cross posts or HTML =
encoding!&nbsp; **</FONT>
<BR><FONT SIZE=3D2>(Related lists - </FONT>
<BR><FONT SIZE=3D2>&nbsp;<A =
HREF=3D"http://lists.zope.org/mailman/listinfo/zope-announce" =
TARGET=3D"_blank">http://lists.zope.org/mailman/listinfo/zope-announce</=
A></FONT>
<BR><FONT SIZE=3D2>&nbsp;<A =
HREF=3D"http://lists.zope.org/mailman/listinfo/zope-dev" =
TARGET=3D"_blank">http://lists.zope.org/mailman/listinfo/zope-dev</A> =
)</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C0C826.77B44830--