Package openid :: Package yadis :: Module services
[frames] | no frames]

Module services

source code

Functions
(str, [endpoint])
getServiceEndpoints(input_url, flt=None)
Perform the Yadis protocol on the input URL and return an iterable of resulting endpoint objects.
source code
 
applyFilter(normalized_uri, xrd_data, flt=None)
Generate an iterable of endpoint objects given this input data, presumably from the result of performing the Yadis protocol.
source code
Function Details

getServiceEndpoints(input_url, flt=None)

source code 

Perform the Yadis protocol on the input URL and return an iterable of resulting endpoint objects.

Parameters:
  • flt - A filter object or something that is convertable to a filter object (using mkFilter) that will be used to generate endpoint objects. This defaults to generating BasicEndpoint objects.
  • input_url - The URL on which to perform the Yadis protocol
Returns: (str, [endpoint])
The normalized identity URL and an iterable of endpoint objects generated by the filter function.
Raises:

applyFilter(normalized_uri, xrd_data, flt=None)

source code 

Generate an iterable of endpoint objects given this input data, presumably from the result of performing the Yadis protocol.

Parameters:
  • normalized_uri - The input URL, after following redirects, as in the Yadis protocol.
  • xrd_data (str) - The XML text the XRDS file fetched from the normalized URI.