[Zope] tal:atrributes problem

Lennart Regebro regebro at gmail.com
Wed Mar 23 06:48:42 EST 2005


On Wed, 23 Mar 2005 12:11:12 +0100 (CET), Jürgen Herrmann
<Juergen.Herrmann at xlhost.de> wrote:
> try something like this:
> 
> <option tal:content="district/district_name"
>         tal:attributes="selected
> python:test(distname==district.district_name, 'selected',
> '')"></option>

That's a bit overly complicated.  
  tal:attributes="selected python:distname==district.district_name" 
is enough.

-- 
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/


More information about the Zope mailing list