Package ZenModel :: Package migrate :: Module Migrate :: Class Migration
[show private | hide private]
[frames | no frames]

Class Migration

  CmdBase --+    
            |    
ZenScriptBase --+
                |
               Migration


main driver for migration: walks the steps and performs commit/abort
Method Summary
  __init__(self)
  backup(self)
  buildOptions(self)
basic options setup sub classes can add more options here
  cutover(self)
perform the migration, applying all the new steps, recovering on error
  error(self, msg)
  list(self)
  main(self)
  message(self, msg)
  migrate(self)
walk the steps and apply them
  orderedSteps(self)
  parseOptions(self)
  recover(self)
  success(self)
Inherited from ZenScriptBase: closeAll, closedb, connect, findDevice, getConnection, getContext, getDataRoot, getDmdObj, login, logout, opendb, syncdb
Inherited from CmdBase: buildParser, setupLogging

Class Variable Summary
bool useDatabaseVersion = True
Inherited from CmdBase: doesLogging

Method Details

buildOptions(self)

basic options setup sub classes can add more options here
Overrides:
Products.ZenUtils.ZenScriptBase.ZenScriptBase.buildOptions (inherited documentation)

cutover(self)

perform the migration, applying all the new steps, recovering on error

migrate(self)

walk the steps and apply them

Class Variable Details

useDatabaseVersion

Type:
bool
Value:
True                                                                   

Generated by Epydoc 2.1 on Thu Aug 16 09:55:11 2007 http://epydoc.sf.net