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 Thanks for your help, Martin **NOTA DE CONFIDENCIALIDAD** Este correo electrónico, y en su caso los ficheros adjuntos, pueden contener información protegida para el uso exclusivo de su destinatario. Se prohíbe la distribución, reproducción o cualquier otro tipo de transmisión por parte de otra persona que no sea el destinatario. Si usted recibe por error este correo, se ruega comunicarlo al remitente y borrar el mensaje recibido. **CONFIDENTIALITY NOTICE** This email communication and any attachments may contain confidential and privileged information for the sole use of the designated recipient named above. Distribution, reproduction or any other use of this transmission by any party other than the intended recipient is prohibited. If you are not the intended recipient please contact the sender and delete all copies.
-----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
DTML has not changed for ages. What exactly isn't work?...please give a reasonable description of the problem. Andreas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkt5eOAACgkQCJIWIbr9KYwC3QCfbNV2UArrBfYv4z9FZFQCXjfE 0FQAn3XcOuc0HGSyZyc+QipH8Omw+XD2 =koe/ -----END PGP SIGNATURE-----
-----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@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-----
...but why wouldn't the dtml version also work as he has it below? I have hundreds of form uses just like that....and we have never used the entity syntax. -Allen On 2/15/2010 5:17 PM, Tres Seaver wrote:
-----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.
I think that problenm is in the name of formfield - it begins with an "_" ----- Original Message ----- From: "Allen Schmidt Sr." <aschmidt@fredericksburg.com> To: <zope@zope.org> Sent: Monday, February 15, 2010 11:44 PM Subject: Re: [Zope] zope changes : dtml-var
...but why wouldn't the dtml version also work as he has it below? I have hundreds of form uses just like that....and we have never used the entity syntax.
<td> <input name="_valuename" size="20" value="<dtml-var person_name>"> </td>
Ha. Yup, I missed that. Makes sense now. Just did not look at the whole thing, just the dtml-var part. On 2/16/2010 2:10 AM, Jaroslav Lukesh wrote:
I think that problenm is in the name of formfield - it begins with an "_"
----- Original Message ----- From: "Allen Schmidt Sr."<aschmidt@fredericksburg.com> To:<zope@zope.org> Sent: Monday, February 15, 2010 11:44 PM Subject: Re: [Zope] zope changes : dtml-var
...but why wouldn't the dtml version also work as he has it below? I have hundreds of form uses just like that....and we have never used the entity syntax.
<td> <input name="_valuename" size="20" value="<dtml-var person_name>"> </td>
Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
participants (5)
-
Allen Schmidt Sr. -
Andreas Jung -
Jaroslav Lukesh -
Martin Krallinger -
Tres Seaver