def waterbutler_url_for(request_type, provider, path, node_id, token, obj_args=None, **query):
 url = furl.furl(website_settings.WATERBUTLER_URL)
 url.path.segments.append(request_type)
 url.args.update({'path': path, 'nid': node_id, 'provider': provider})
 if (token is not None):
  url.args['cookie'] = token
 if ('view_only' in obj_args):
  url.args['view_only'] = obj_args['view_only']
 url.args.update(query)
 return url.url

def waterbutler_url_for ( request_type , provider , path , node_id , token , obj_args = None , ** query ) : url = furl . furl ( website_settings . WATERBUTLER_URL ) url . path . segments . append ( request_type ) url . args . update ( { 'path' : path , 'nid' : node_id , 'provider' : provider } ) if ( token is not None ) : url . args [ 'cookie' ] = token if ( 'view_only' in obj_args ) : url . args [ 'view_only' ] = obj_args [ 'view_only' ] url . args . update ( query ) return url . url
reverse url lookup for waterbutler routes .