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

Module openid.yadis.services

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

Function Details

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.
Parameters:
normalized_uri - The input URL, after following redirects, as in the Yadis protocol.
xrd_data - The XML text the XRDS file fetched from the normalized URI.
           (type=str)

getServiceEndpoints(input_url, flt=None)

Perform the Yadis protocol on the input URL and return an iterable of resulting endpoint objects.
Parameters:
input_url - The URL on which to perform the Yadis protocol
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.
Returns:
The normalized identity URL and an iterable of endpoint objects generated by the filter function.
           (type=(str, [endpoint]))
Raises:
DiscoveryFailure - when Yadis fails to obtain an XRDS document.

Generated by Epydoc 2.1 on Fri Dec 14 16:10:52 2007 http://epydoc.sf.net