Package lxml :: Module etree :: Class _ResolverRegistry
[hide private]
[frames] | no frames]

Class _ResolverRegistry

object --+
         |
        _ResolverRegistry

Instance Methods [hide private]
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__repr__(x)
repr(x)
 
add(self, resolver)
Register a resolver.
 
copy(self)
 
remove(self, resolver)
 
resolve(self, system_url, public_id, context)

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__repr__(x)
(Representation operator)

 
repr(x)
Overrides: object.__repr__

add(self, resolver)

 

Register a resolver.

For each requested entity, the 'resolve' method of the resolver will be called and the result will be passed to the parser. If this method returns None, the request will be delegated to other resolvers or the default resolver. The resolvers will be tested in an arbitrary order until the first match is found.