On 6/26/06, Simon Willison <[EMAIL PROTECTED]> wrote:
> I've been playing around with making the URL resolver accept a
> callable in addition to accepting 'module.blah' strings, and I think
> it's a big improvement.

OK, we've gained this functionality as of
http://code.djangoproject.com/changeset/3554 . The patch turned out to
be a bit more complex due to the reverse() stuff -- the reverse()
stuff now checks the actual view object rather than the string (e.g.
'mysite.views.foo').

I've also added docs:

http://www.djangoproject.com/documentation/url_dispatch/#passing-callable-objects-instead-of-strings

I must say, I'm really excited about this change. I've been converting
my own stuff to it, and it feels more natural.

Adrian

-- 
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to