Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 28bf0025be
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (11 sloc) 0.549 kb
def url_for(request, *elements, **kw):
handler = kw.pop('handler')
# do what with handler?
# find all routes registered with handler=somehandler
# iterate over them finding the "best match" (guessy)
# retrieve any routes that were registered via "add_handler"
# that routed to the handler class, do some *waves hands*
# iteration through them to do a "best guess" match from
# the union of all of the routes based on the other provided
# url_for parameters.
return route_url(request, *elements, **kw)
Jump to Line
Something went wrong with that request. Please try again.