Package openid :: Package yadis :: Module xrires :: Class ProxyResolver
[frames | no frames]

Type ProxyResolver

object --+
         |
        ProxyResolver


Python interface to a remote XRI proxy resolver.
Method Summary
  __init__(self, proxy_url)
(unicode, list of ElementTree.Elements) query(self, xri, service_types)
Resolve some services for an XRI.
str queryURL(self, xri, service_type)
Build a URL to query the proxy resolver.
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Method Details

query(self, xri, service_types)

Resolve some services for an XRI.

Note: I don't implement any service endpoint selection beyond what the resolver I'm querying does, so the Services I return may well include Services that were not of the types you asked for.

May raise fetchers.HTTPFetchingError or etxrd.XRDSError if the fetching or parsing don't go so well.
Parameters:
xri - An XRI to resolve.
           (type=unicode)
service_types - A list of services types to query for. Service types are URIs.
           (type=list of str)
Returns:
tuple of (CanonicalID, Service elements)
           (type=(unicode, list of ElementTree.Elements))

queryURL(self, xri, service_type=None)

Build a URL to query the proxy resolver.
Parameters:
xri - An XRI to resolve.
           (type=unicode)
service_type - The service type to resolve, if you desire service endpoint selection. A service type is a URI.
           (type=str)
Returns:
a URL
           (type=str)

Generated by Epydoc 2.1 on Fri Jun 27 15:48:22 2008 http://epydoc.sf.net