On Dec 11, 2006, at 6:12 PM, juxstapose wrote:

>
> Hello,
>
> I am trying to disable the autocomplete widget's text field in the
> controller.
> I have tried disabled = True and disabled = 'disabled' as values.
> Am
>
> #controller
> return dict(value=dict(text=textvalue,attrs=dict(disabled=disabled)))
>
> #kid template
> ${acfield.display(value=value)}
>
> Thanks,
> -Mike

Try this:

#controller
return dict(value=dict(text=textvalue), opts=dict(attrs=dict(text=dict 
(disabled="disabled"))))


#kid template
${acfield.display(value=value, **opts)}

Alberto

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to