[Zope] zope changes : dtml-var

Tres Seaver tseaver at palladion.com
Mon Feb 15 17:17:41 EST 2010


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

Martin Krallinger wrote:
> Hi,
> 
> it seems that there some of the options in zope had been changed. I have 
> been looking
> in the documentation but did not find any explanation on what I am 
> trying to do, which
> results in a formatting error message in new zope version, but worked 
> fine in the older one.
> 
> I have an input form, to which I provided a dtml-var as value,something 
> like:
> 
> <td>
> <input name="_valuename" size="20" value="<dtml-var person_name>">
> </td>
> 
> 
> How can I provide as value now the variable <dtml-var person_name> ? It 
> seems that
> there are substantial changes here. I

You want to use the "entity" syntax for attributes:

  <input name="_valuename" size="20" value="&dtml-person_name;" />

Note that 'person_name' must be available to the template, either in the
request or as an attribute of the "context" of the template.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkt5yAUACgkQ+gerLs4ltQ5whACdEPNtwRsrtbHVVleS+ZsuMksO
aSsAoI7/4hESKVWPKgZaLYoc+vAihvTr
=j9eI
-----END PGP SIGNATURE-----



More information about the Zope mailing list