On Thu, Jan 12, 2006 at 05:06:07PM +0000, Lee McFadden wrote:
> 
> On 1/12/06, Kevin Dangoor <[EMAIL PROTECTED]> wrote:
> >
> > 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.
> >
> 
> Is there a way for me to manually make the JS and CSS get inserted? 
> Or would that take a container widget that Does The Right Thing (tm)
> and aggregates all the JS/CSS link widgets of the widgets it contains?

This is going to sound kind of silly and probably not what you want, but if
you pass the widgets as items in the dictionary as well (even though you
use them from the list) it will add the JS and CSS.

Something like this (untested and written in mail client):

newdict = {}
for i, v in enumerate(list_of_widgets):
  newdict['widget%s' % i] = v
return dict(<your values>, **newdict)

Other than doing that, a container widget sounds about right (they're
really not that bad/hard to do).

Jason

-- 
If you understand, things are just as they are.  If you do not understand,
things are just as they are.

Attachment: pgppOB5foKIWU.pgp
Description: PGP signature

Reply via email to