On Dec 8, 2006, at 3:09 PM, Christopher Arndt wrote:
> > Alberto schrieb: >> 2) If you must make sure some JS/CSS gets included before another >> there's no easy way yo do it because the code that retrieves >> resources >> iterates a dict (it's order is undefined). >> >> Regarding 2), the 1.0 svn branch makes sure widgets listed there get >> included in the same order as defined. > > I checked out and had a look at the 1.0 branch just now, and AFAICS > the 'js' > variable in turbogears.controllers._process_output is still a dict. > How would > that preserve order? I should have made clearer that the order irs preserved for the tg.include_widgets *list*, not the dict returned by controllers (which is impossible to guarantee an order unless something like http://preview.tinyurl.com/yg622t is used). The js variable is a dict keyed by resource location (head, bodytop, bodybottom). Each value is a turbogears.util.setlike which is an ordered set object which preserves order for each location and makes sure no dups get in. > > Where is the fix you mentioned? Is it already included in 1.0b2? http://tinyurl.com/yfoflc. Yep, it's included in 1.0b2 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 -~----------~----~----~----~------~----~------~--~---

