Ben Bangert wrote: > You'll need to know a wee bit about the internal structure of the map > object. In this case, the fact that the Routes are in a list off > map.matchlist. But the map.connect does a little more than just > appending to the matchlist. So to be safe: > > map.connect(........) > map.matchlist.insert(0, map.matchlist.pop()) > > This will add the route, then swap its order so its in the front. >
Thanks. I wonder if it is worth formalising and encapsulating this in the Mapper interface, perhaps by adding a different connect function (connect_first()?}. Alternatively and more generically, priority_connect() - which takes a priority param that specifies where you want the route inserted in the existing list? Robert --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss -~----------~----~----~----~------~----~------~--~---
