Package Products :: Package ZenUtils :: Module ZenScriptBase :: Class ZenScriptBase
[show private | hide private]
[frames | no frames]

Class ZenScriptBase

CmdBase --+
          |
         ZenScriptBase

Known Subclasses:
Migration, TestRunner, zendmd, ZenPackCmd

Method Summary
  __init__(self, noopts, app, connect)
  buildOptions(self)
basic options setup sub classes can add more options here
  closeAll(self)
Close all connections in both free an inuse pools.
  closedb(self)
  connect(self)
  findDevice(self, name)
return a device based on its FQDN
  getConnection(self)
Return a wrapped app connection from the connection pool.
  getContext(self, app)
  getDataRoot(self)
  getDmdObj(self, path)
return an object based on a path starting from the dmd
  login(self, name, userfolder)
Logs in.
  logout(self)
Logs out.
  opendb(self)
  syncdb(self)
Inherited from CmdBase: buildParser, parseOptions, setupLogging

Class Variable Summary
Inherited from CmdBase: doesLogging

Method Details

buildOptions(self)

basic options setup sub classes can add more options here
Overrides:
Products.ZenUtils.CmdBase.CmdBase.buildOptions

closeAll(self)

Close all connections in both free an inuse pools.

findDevice(self, name)

return a device based on its FQDN

getConnection(self)

Return a wrapped app connection from the connection pool.

getDmdObj(self, path)

return an object based on a path starting from the dmd

login(self, name='admin', userfolder=None)

Logs in.

logout(self)

Logs out.

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