Re: URL Resolvers: a little refactoring goes a long way

2008-06-26 Thread SmileyChris
I know that a URL resolver refactor is on Malcolm's neverending todo list. When he starts getting back into it, feel free to remind him of it. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" gro

Re: URL Resolvers: a little refactoring goes a long way

2008-06-25 Thread Ken Arnold
Okay, I've submitted #7537 with three patches. I manually split out sub-changes from a previous version, so some things may be broken, but hopefully in simple ways. The first patch at least could go in almost as-is (one little design- decision FIXME) and would be immediately helpful. The second i

Re: URL Resolvers: a little refactoring goes a long way

2008-06-25 Thread Gary Wilson Jr.
Ken Arnold wrote: > I wanted to get any feedback on this change before submitting a > ticket, but if people think it's a good idea, I can clean up the patch > and make a ticket. Anything that gets REST projects and nfa off the ad-hoc dispatchers sounds like a good idea to me. Along with a ticke

Re: URL Resolvers: a little refactoring goes a long way

2008-06-24 Thread David Larlet
Ken, It looks interesting but are there any examples of your urlresolver usage? David Le 24 juin 08 à 21:35, Ken Arnold a écrit : > > newforms-admin has a special-cased URL dispatcher in site.py. (see > #6470) > > Various REST-ish frameworks have a '.*' url mapping and a similar > hacky disp

URL Resolvers: a little refactoring goes a long way

2008-06-24 Thread Ken Arnold
newforms-admin has a special-cased URL dispatcher in site.py. (see #6470) Various REST-ish frameworks have a '.*' url mapping and a similar hacky dispatcher. Django has a nice URL dispatcher in core/urlresolvers.py, which could drop in and replace those ad-hoc dispatchers. Only it takes the name