Package Peach :: Package Engine :: Module dom
[hide private]

Module dom

source code

Peach 2 DOM. Peach XML files are parsed into an object model using these classes. The document object is Peach and all objects extend from Element.


Author: Michael Eddington

Version: $Id: dom.py 1135 2008-08-16 19:16:51Z meddingt $

Classes [hide private]
  Empty
  Element
Element in our template tree.
  ElementWithChildren
Contains functions that cause Element to act as a hash table and array for children.
  DataElement
Data elements compose the Data Modle.
  Transformer
The Trasnfomer DOM object.
  Fixup
Fixup DOM element.
  Param
  Peach
This is our root node container.
  Test
  Run
  Agent
  Monitor
  Template
Essentially a Block, but is the top level element in a data model.
  Choice
Choice, chooses one or emore sub-elements
  Block
Block or sequence of other data types.
  Number
A numerical field
  String
A string field
  Flags
Set of flags
  Flag
A flag in a flag set
  Blob
A flag in a flag set
  Relation
Specifies relations between data
  Data
Default data container.
  Field
Default bit of data.
  Logger
A logger used to log peach events.
  Namespace
  PythonPath
  Publisher
  StateMachine
  State
  Action
  ActionParam
  ActionResult
  Mutators
  Mutator
  Hint
Hints can be a child of DataElements.
Functions [hide private]
 
PeachDeepCopy(self, memo)
Copying objects in our DOM is a crazy business.
source code
 
BlockToXml(self, parent) source code
 
ToXmlCommonDataElements(element, node) source code
 
NamespaceToXml(self, parent) source code
 
DomPrint(indent, node) source code
Variables [hide private]
  PeachModule = Peach
Function Details [hide private]

PeachDeepCopy(self, memo)

source code 

Copying objects in our DOM is a crazy business. Here we try and help out as much as we can.