[Zope] RE: Zope digest, Vol 1 #753 - 69 msgs

a.wacknitz@francotyp.com a.wacknitz@francotyp.com
Thu, 27 Apr 2000 16:59:19 +0200


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Message: 42
> From: "Jason Wong" <jwong@digitalview.com.hk>
> To: "Send Zope Mailing List" <zope@zope.org>
> Subject: [Zope] Problem in constructing parameter for ZSQL Method
> Date: Thu, 27 Apr 2000 15:43:12 +0800
> charset="iso-8859-1"
> 
> I need to pass this string as a parameter to a ZSQL Method:
> 
> '<a href="details?Controller=' & Model & '">' & Model & 
> '</a>' as ModelLink
> 
> 
> Thus I have:
> 
> <dtml-let recordset=qry(column='\'<a 
> href="details?Controller=\' & Model &
> \'">\' & Model & \'</a>\' as ModelLink')>
> 
> But this gives an invalid parameter error:
> 
> invalid parameter: "& Model & \'">\' & Model & \'\' as 
> ModelLink')"", for
> tag
> <dtml-let XXrecordset="qry_General(column='\'<a
> href="details?Controller=\' & Model & \'">\' & Model & \'</a>\' as
> ModelLink')">, on line 19 of index_html
> 
> 
> Can anyone tell me where my mistake is?
String concatenation is done with a "+" in Python and not with a "&"
as in Visual Basic.
Maybe this is your problem...

Andreas
 

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBOQhIJZrEH3uwEF1BEQIvDACeORz1fUya2Rejd7jT4YZvGek4hHsAoOxp
/okbiy4bi0JxJoyr7UpOlbO5
=iyeF
-----END PGP SIGNATURE-----
**********************************************************************
This email message has been swept by MIMEsweeper for the presence of
computer viruses.

Francotyp-Postalia AG & Co.