Module zigo :: Class Controller
[show private | hide private]
[frames | no frames]

Class Controller


Uses a Handler stack and walks through trees of directories.
Method Summary
  __init__(self, configDict, suffix)
Constructor that uses a configuration dictionary.
  __repr__(self)
String representation of the state of the object.
  getHandlerByIndex(self, hndlrIndex)
Get a handler in the stack by its index.
  run(self)
Executes the entire traversal of the tree.
  setConfig(self, configDict, suffix)
Configure the stack based on a configuration dictionary.
  walk(self, topDir)
Generator that walks through the tree.

Method Details

__init__(self, configDict=None, suffix=None)
(Constructor)

Constructor that uses a configuration dictionary.

Creates and configures the Handler stack.

__repr__(self)
(Representation operator)

String representation of the state of the object. Gives the top of the tree and the present position in the tree.

getHandlerByIndex(self, hndlrIndex)

Get a handler in the stack by its index.

run(self)

Executes the entire traversal of the tree. Invokes walk.

setConfig(self, configDict=None, suffix=None)

Configure the stack based on a configuration dictionary.

walk(self, topDir)

Generator that walks through the tree.

It handles all the sub-directories and all the files in each directory that is walked through. Modeled after the code in os.walk.

Generated by Epydoc 2.1 on Wed Dec 22 15:47:44 2004 http://epydoc.sf.net