'Registers a function as URL value preprocessor for this
blueprint.  It\'s called before the view functions are called and
can modify the url values provided.'

def url_value_preprocessor(self, f):

    self.record_once((lambda s: s.app.url_value_preprocessors.setdefault(self.name, []).append(f)))
    return f
