Table of Contents

Class: Extension qm/extension.py

A class derived from Extension is a QM extension.

A variety of different classes are derived from Extension. All of these classes can be derived from by users to produce customized QM extensions.

Extension is an abstract class.

Base Classes   
object
Methods   
MakeDomDocument
MakeDomElement
Write
__getattr__
__init__
  MakeDomDocument 
MakeDomDocument ( self )

Create a DOM document for self.

extension_class
A class derived from Extension.
arguments
The arguments to the extension class.
returns
A new DOM document corresponding to an instance of the extension class.
  MakeDomElement 
MakeDomElement (
        self,
        document,
        element=None,
        )

Create a DOM node for self.

document
The DOM document that will contain the new element.
element
If not None the extension element to which items will be added. Otherwise, a new element will be created by this function.
returns
A new DOM element corresponding to an instance of the extension class. The caller is responsible for attaching it to the document.
  Write 
Write ( self,  file )

Write an XML description of self to a file.

file
A file object to which the data should be written.
  __getattr__ 
__getattr__ ( self,  name )

Exceptions   
AttributeError, name
  __init__ 
__init__ ( self,  arguments )

Construct a new Extension.

arguments
A dictionary mapping argument names (as specified in the arguments class variable) to values. The keys are strings; the values should be appropriate for the corresponding fields. The values are converted to values via the Field.ParseFormValue method.

This method will place all of the arguments into this objects instance dictionary.

Derived classes may override this method, but should call this method during their processing.


Table of Contents

This document was automatically generated on Mon Jan 3 09:42:29 2005 by HappyDoc version 2.1