Package gavo :: Package helpers :: Module testtricks :: Class XSDResolver
[frames] | no frames]

Class XSDResolver

source code

         object --+    
                  |    
lxml.etree.Resolver --+
                      |
                     XSDResolver

A resolver for external entities only returning in-tree files.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
getPathForName(self, name) source code
 
resolve(self, url, pubid, context)
Override this method to resolve an external source by system_url and public_id. The third argument is an opaque context object.
source code

Inherited from lxml.etree.Resolver: __new__, resolve_empty, resolve_file, resolve_filename, resolve_string

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

resolve(self, url, pubid, context)

source code 

Override this method to resolve an external source by system_url and public_id. The third argument is an opaque context object.

Return the result of one of the resolve_*() methods.

Overrides: lxml.etree.Resolver.resolve
(inherited documentation)