my problem is that i would prefer to pass my widgets in a dictionary
to keep the number of arguments being passed to the template down, so
instead of passing

return dict(widget1=widget1,
widget2=widget2,widget3=widget3,widget1data=widget1data,widget2data=widget2data,widget3data=widget3data)

I would prefer to do this:

return dict(widgets=widgets,data=data)

Unfortunately if a widget needs to insert a JS or CSS link, the link
doesn't get inserted unless the widget itself is one of the arguments
being passed to the template.  I'm sure there's a better way to do
this - maybe by inserting the JS/CSS link when widgets are displayed,
or at least by searching dictionaries lists and tuples to see if they
contain widgets.  maybe a reserved parameter like
'tg_has_nested_widgets' or something could be defined.

is there a way to do this that i'm simply not aware of?


--~--~---------~--~----~------------~-------~--~----~
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