4Suite API Documentation

Module amara.binderyxpath

Classes:
Globals:

Classes

class BinderXpathException(Exception)

Methods inherited from class Exception

__init__, __new__

Methods inherited from class BaseException

__delattr__, __getattribute__, __getitem__, __reduce__, __repr__, __setattr__, __setstate__, __str__, __unicode__

Methods inherited from class object

__hash__, __reduce_ex__

Members

__weakref__ = <attribute '__weakref__' of 'BinderXpathException' objects>

Members inherited from class BaseException

__dict__, args, message

Members inherited from class object

__class__
class dummy_node_wrapper(object)

Methods

__cmp__(self, other)
Overrides: __cmp__ from class object

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Members

__dict__ = <attribute '__dict__' of 'dummy_node_wrapper' objects>
__weakref__ = <attribute '__weakref__' of 'dummy_node_wrapper' objects>
childNodes = <property object at 0xb787c4b4>
docIndex = <property object at 0xb76d6a2c>
xpathAttributes = <property object at 0xb787c48c>

Members inherited from class object

__class__
class text_wrapper(dummy_node_wrapper)

Methods

__init__(self, st, parent)
Overrides: __init__ from class dummy_node_wrapper
__unicode__(self)

Methods inherited from class dummy_node_wrapper

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Members

docIndex = <property object at 0xb787c5a4>
nodeType = 3
ownerDocument = <property object at 0xb787c57c>
rootNode = <property object at 0xb787c57c>

Members inherited from class dummy_node_wrapper

Members inherited from class object

__class__
class xpath_attr_wrapper(dummy_node_wrapper)

Methods

__init__(self, qname, ns, value, parent)
Overrides: __init__ from class dummy_node_wrapper
__unicode__(self)

Methods inherited from class dummy_node_wrapper

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Members

nodeType = 2

Members inherited from class dummy_node_wrapper

Members inherited from class object

__class__
class xpath_wrapper_container_mixin(object)

Methods

__cmp__(self, other)
Overrides: __cmp__ from class object
getAttributeNS(self, ns, local)
xml_xpath(self, query)
Execute an XPath query with this object standing in for the context node. The namespace mappings are taken from the root binding object. There are no variable bindings. Most XPath is supported. query - a unicode object expressing an XPath The return value depends on the XPath expression (expr) - If expr reults in an XPath string, the return value is a Python Unicode object - If expr reults in an XPath number, the return value is a Python float - If expr reults in an XPath boolean, the return value is a Python bool object - If expr reults in an XPath node set, the return value is a Python list (always a list, even if empty, or a node with just one entry)

Methods inherited from class object

__delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Members

__dict__ = <attribute '__dict__' of 'xpath_wrapper_container_mixin' objects>
__weakref__ = <attribute '__weakref__' of 'xpath_wrapper_container_mixin' objects>
attributes = <property object at 0xb787c734>
childNodes = <property object at 0xb787c6e4>
docIndex = <property object at 0xb787c75c>
localName = <property object at 0xb787c644>
namespaceURI = <property object at 0xb787c61c>
ownerDocument = <property object at 0xb787c6bc>
parentNode = <property object at 0xb787c694>
prefix = <property object at 0xb787c66c>
rootNode = <property object at 0xb787c6bc>
xpathAttributes = <property object at 0xb787c70c>

Members inherited from class object

__class__

Globals

NO_ATTRIBUTE_SUPPORT = 'You have attempted to use an XPath expression th...le amara.binderytools.preserve_attribute_details.'
NULL_NAMESPACE = None
NULL_PREFIX = None
XML_NS = u'http://www.w3.org/XML/1998/namespace'