def call_url(url, view_kwargs=None):
 (func_name, func_data) = app.url_map.bind('').match(url)
 if (view_kwargs is not None):
  func_data.update(view_kwargs)
 view_function = view_functions[func_name]
 rv = view_function(**func_data)
 (rv, _, _, _) = unpack(rv)
 if (isinstance(rv, werkzeug.wrappers.BaseResponse) and (rv.status_code in REDIRECT_CODES)):
  redirect_url = rv.headers['Location']
  return call_url(redirect_url)
 return rv

def call_url ( url , view_kwargs = None ) : ( func_name , func_data ) = app . url_map . bind ( '' ) . match ( url ) if ( view_kwargs is not None ) : func_data . update ( view_kwargs ) view_function = view_functions [ func_name ] rv = view_function ( ** func_data ) ( rv , _ , _ , _ ) = unpack ( rv ) if ( isinstance ( rv , werkzeug . wrappers . BaseResponse ) and ( rv . status_code in REDIRECT_CODES ) ) : redirect_url = rv . headers [ 'Location' ] return call_url ( redirect_url ) return rv
look up and call view function by url .