[Zope] thanks for tal:atrributes problem

prabuddha ray buddha_2001 at rediffmail.com
Tue Mar 29 00:39:42 EST 2005


Danke Jürgen,
       Thanks it did work.I guess i've to keep python handy 
always.
       one tip i'm lookin for is how to cal pyhton scripts on any 
form event, ie. like we call javascripts on the onclick or 
onsubmit or onchange events?
  thanks again.



On Wed, 23 Mar 2005 Jürgen Herrmann wrote :
>try something like this:
>
><option tal:content="district/district_name"
>         tal:attributes="selected
>python:test(distname==district.district_name, 'selected',
>'')"></option>
>
>regards, juergen herrmann
>
>[ prabuddha  ray wrote:]
> > sir,
> >      i guess i'm not gettin it. kindly tell me the syntax. 
>wats
> > happeneing is dat its setting the last item as selected.
> > where as i want the item matching the result from 'distname' 
>var
> > sud be selected only.
> > kindly gimme the syntax if possible.




More information about the Zope mailing list