[Zope] Assigning strings using DTML-LET

Alexander Staubo alex@mop.no
Fri, 31 Mar 2000 12:51:01 +0200


> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On
> Behalf Of Jason
> Wong
> Sent: Friday, March 31, 2000 12:35 PM
> To: Send Zope Mailing List
> Subject: [Zope] Assigning strings using DTML-LET
>
>
>
> I'm trying to assign the string:
>
> 1=1
>
> to the variable criteria using this construct:
>
> <dtml-let criteria='1=1'>
>
> but I can't because Zope complains:

Unlike other tags, the dtml-let tag is quote-sensitive, requiring that
attribute values are quoted. So in the above code, you're trying to
evaluate the expression "1=1", which isn't valid Python code (you're
trying to assign a value to a value). What you want is:

	<dtml-let criteria="'1=1'">

>
> thanks
> -
> Jason Wong

--
    Alexander Staubo  /  http://alex.mop.no/
"The difference between theory and practice is that, in theory,
there is no difference between theory and practice."