Package twisted :: Package web :: Module domhelpers
[show private | hide private]
[frames | no frames]

Module twisted.web.domhelpers

Classes
RawText This is an evil and horrible speed hack.

Exceptions
NodeLookupError  

Function Summary
  clearNode(node)
Remove all children from the given node.
  findElements(parent, matcher)
  findElementsWithAttribute(parent, attribute, value)
  findNodes(parent, matcher, accum)
  findNodesNamed(parent, name)
  gatherTextNodes(iNode)
  get(node, nodeId)
Get a node with the specified nodeId as any of the class, id or patternattributes.
  getAndClear(node, nodeId)
Get a node with the specified nodeId as any of the class, id or patternattributes.
  getElementsByTagName(iNode, name)
  getIfExists(node, nodeId)
Get a node with the specified nodeId as any of the class, id or patternattributes.
  getNodeText(node)
  getParents(node)
  locateNodes(nodeList, key, value, noNesting)
Find subnodes in the given node where the given attribute has the given value.
  substitute(request, node, subs)
Look through the given node's children for strings, and attempt to do string substitution with the given parameter.
  superAppendAttribute(node, key, value)
  superPrependAttribute(node, key, value)
  superSetAttribute(node, key, value)
  writeNodeData(node, oldio)
  _get(node, nodeId, nodeAttrs)
(internal) Get a node with the specified nodeId as any of the class, id or patternattributes.

Function Details

clearNode(node)

Remove all children from the given node.

get(node, nodeId)

Get a node with the specified nodeId as any of the class, id or pattern attributes. If there is no such node, raise NodeLookupError.

getAndClear(node, nodeId)

Get a node with the specified nodeId as any of the class, id or pattern attributes. If there is no such node, raise NodeLookupError. Remove all child nodes before returning.

getIfExists(node, nodeId)

Get a node with the specified nodeId as any of the class, id or pattern attributes. If there is no such node, return None.

locateNodes(nodeList, key, value, noNesting=1)

Find subnodes in the given node where the given attribute has the given value.

substitute(request, node, subs)

Look through the given node's children for strings, and attempt to do string substitution with the given parameter.

_get(node, nodeId, nodeAttrs=('id', 'class', 'model', 'pattern'))

(internal) Get a node with the specified nodeId as any of the class, id or pattern attributes.

Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:29:11 2003 http://epydoc.sf.net