On Fri, Jul 4, 2008 at 1:19 PM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
>
> any chance of patching routes/base.py with this:
>
> 671,672d670
> <         if not routename and 'name' in kargs:
> <             routename = kargs['name']
>
> it just sets the routename to the karg 'name' if its supplied and
> there's no name already specified
>
> why?
>
> personally, i like to manage my routing.py by looking at the url paths

A lot of the problem is caused by the path changing position depending
on whether a name is present.  Routes 2 is planning a
    map.connect(name, path, variables=None, ...options...)
syntax, which would fix their positions.  Nameless routes would then
have None in first position, if nameless routes are allowed at all.

Given that and other changes, and the fact that Routes' syntax is
already unwieldly complex, I'm afraid a 'name' karg would be too much
disruption.  You could subclass the mapper and add a connect methods
that arranges the args as you prefer.

-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to