def web_url_for(view_name, _absolute=False, _guid=False, *args, **kwargs):
 url = url_for('OsfWebRenderer__{0}'.format(view_name), *args, **kwargs)
 if _guid:
  url = _get_guid_url_for(url)
 if _absolute:
  return urlparse.urljoin(website_settings.DOMAIN, url)
 return url

def web_url_for ( view_name , _absolute = False , _guid = False , * args , ** kwargs ) : url = url_for ( 'OsfWebRenderer__{0}' . format ( view_name ) , * args , ** kwargs ) if _guid : url = _get_guid_url_for ( url ) if _absolute : return urlparse . urljoin ( website_settings . DOMAIN , url ) return url
reverse url lookup for web routes .