On 2/6/06, Alberto Valverde <[EMAIL PROTECTED]> wrote:
>
> No, you cannot do that! The new API explicitly forbids changing
> widget attributres once the widget is initialized. You can, however,
> override the template when you initialize your widget:
>
> Bad:
> widget = widgets.TextField()
> widget.template = mytemplate
> ValueError: It is not threadsafe to modify widgets in a request
>
> Good:
> widget = widgets.TextField(template=mytemplate)
> asset widget.template == mytemplate
>

You are correct.  That's what I get for answering questions before my
morning coffee. :)

Reply via email to