'Injects the URL defaults for the given endpoint directly into
the values dictionary passed.  This is used internally and
automatically called on URL building.
.. versionadded:: 0.7'

def inject_url_defaults(self, endpoint, values):

    funcs = self.url_default_functions.get(None, ())
    if ('.' in endpoint):
        bp = endpoint.rsplit('.', 1)[0]
        funcs = chain(funcs, self.url_default_functions.get(bp, ()))
    for func in funcs:
        func(endpoint, values)
