Package Peach :: Package Engine :: Module parser :: Class PeachResolver
[hide private]

Class PeachResolver

source code


Instance Methods [hide private]
 
__init__(self)
handlers - a Python dictionary with scheme names as keys (e.g.
source code
 
resolve(self, uri, base=None)
This function takes a URI or a URI reference plus a base URI, produces a normalized URI using the normalize function if a base URI was given, then attempts to obtain access to an entity representing the resource identified by the resulting URI, returning the entity as a stream (a Python file-like object).
source code

Inherited from Ft.Lib.Uri.FtUriResolver: normalize

Inherited from Ft.Lib.Uri.UriResolverBase: generate

Method Details [hide private]

__init__(self)
(Constructor)

source code 

handlers - a Python dictionary with scheme names as keys (e.g. "http") and callable objects as values

Overrides: Ft.Lib.Uri.UriResolverBase.__init__

resolve(self, uri, base=None)

source code 

This function takes a URI or a URI reference plus a base URI, produces a normalized URI using the normalize function if a base URI was given, then attempts to obtain access to an entity representing the resource identified by the resulting URI, returning the entity as a stream (a Python file-like object).

Raises a UriException if the URI scheme is unsupported or if a stream could not be obtained for any reason.

Overrides: Ft.Lib.Uri.UriResolverBase.resolve
(inherited documentation)