[Zope-es] plantilla de plone
elier
elier en infomed.sld.cu
Jue Dic 13 21:45:17 CET 2007
hola a todos quiero inhabilitar un select si se cumple una condicion pero no me funciona , me da error con la variable country , tiene idea de que pueda ser
<select name="county"
id="county"
tabindex=""
tal:attributes="tabindex tabindex/next;
disabled python:test(request/country == 'CU','','disabled');">
<tal:block tal:repeat="countyList here/availableProvincias">
<option value="None"
tal:content="python:countyList[1]"
tal:attributes="value python:countyList[0];
selected python:test(county==countyList[0], 'selected', None);">
</option>
</tal:block>
</select>
el error es este : name 'country' is not defined
como pudiera poner para que si country no existe no me de el error.
gracias de antemano
saludos...
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: /archivos/zope-es/attachments/20071213/1baaf241/attachment.html
Más información sobre la lista de distribución Zope-es