Home | Trees | Indices | Help |
|
---|
|
object --+ | ElementClassLookup --+ | FallbackElementClassLookup --+ | ElementNamespaceClassLookup
ElementNamespaceClassLookup(self, fallback=None)
Element class lookup scheme that searches the Element class in the Namespace registry.
Usage:
>>> lookup = ElementNamespaceClassLookup() >>> ns_elements = lookup.get_namespace("http://schema.org/Movie")
>>> @ns_elements ... class movie(ElementBase): ... "Element implementation for 'movie' tag (using class name) in schema namespace."
>>> @ns_elements("movie") ... class MovieElement(ElementBase): ... "Element implementation for 'movie' tag (explicit tag name) in schema namespace."
|
|||
|
|||
a new object with type S, a subtype of T |
|
||
|
|||
Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
|
|
Retrieve the namespace object associated with the given URI. Pass None for the empty namespace. Creates a new namespace object if it does not yet exist. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Oct 13 15:46:58 2017 | http://epydoc.sourceforge.net |