On 1/12/06, Lee McFadden <[EMAIL PROTECTED]> wrote:
>
> I'm having some trouble with widgets, and I wanted to double check
> that my methods aren't wrong before submitting a ticket.
>
> ==Controller==
>
> def index(self):
>     page_widgets = [widgets.AutoCompleteField(<snip>),
>                 widgets.CalendarDatePicker(<snip>)]
>
>     return dict(page_widgets=page_widgets)

This is one of those places where resorting to magic maybe wasn't the
best idea. I just haven't thought of a better way to do it.

The values of the returned dictionary are scanned for widgets, and the
CSS/JS refs are pulled from there. By sending in page_widgets, that
code isn't going to spot your widgets... just the list.

Kevin

Reply via email to