[Zope] tal:atrributes problem
Lennart Regebro
regebro at gmail.com
Wed Mar 23 08:21:19 EST 2005
On Wed, 23 Mar 2005 13:17:07 +0100 (CET), Jürgen Herrmann
> as far as i remeber the selected attribute should only contain
> 'selected' if you'd like to be xhtml compliant.
>
> but hey, if your version works with the standard browsers, i'll also
> go for this version, cause it's much more readable...
Well, this code:
<option tal:repeat="statusid statuslist"
tal:attributes="value statusid;
selected python:status==statusid"
tal:content="statusid" />
results in this html:
<option selected="selected" value="ACCEPTED">ACCEPTED</option>
<option value="DECLINED">DECLINED</option>
<option value="TENTATIVE">TENTATIVE</option>
<option value="DELEGATED">DELEGATED</option>
So it seems to be fine (For Zope 2.7.4 at least).
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
More information about the Zope
mailing list