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__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __str__, __unicode__

Methods inherited from class object

__format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

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)

Methods inherited from class object

__delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Members

__dict__ = <attribute '__dict__' of 'dummy_node_wrapper' objects>
__weakref__ = <attribute '__weakref__' of 'dummy_node_wrapper' objects>
childNodes = <property object>
docIndex = <property object>
xpathAttributes = <property object>

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__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Members

docIndex = <property object>
nodeType = 3
ownerDocument = <property object>
rootNode = <property object>

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)
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 dummy_node_wrapper

Methods inherited from class object

__delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

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)
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__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Members

__dict__ = <attribute '__dict__' of 'xpath_wrapper_container_mixin' objects>
__weakref__ = <attribute '__weakref__' of 'xpath_wrapper_container_mixin' objects>
attributes = <property object>
childNodes = <property object>
docIndex = <property object>
localName = <property object>
namespaceURI = <property object>
ownerDocument = <property object>
parentNode = <property object>
prefix = <property object>
rootNode = <property object>
xpathAttributes = <property object>

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'