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

# Class ZenScriptBase

source code

         object --+
                  |
    CmdBase.CmdBase --+
                      |
                     ZenScriptBase

Known Subclasses:
  - ZenRRD.zentestcommand.TestRunner
  - , EggifyZenPack.Eggify
  - , ZenCheckRRD.ZenCheckRRD
  - , RunCommand.RunCommand
  - , zenpack.ZenPackCmd
  - , CheckRelations.CheckRelations
  - , ZenPackDaemons.ZenPackDaemons
  - , ZenReports.ReportMail.ReportMail
  - , ZenEvents.zenackevents.zenackevents
  - , ZenPackCmd.ZenPackCmd

Instance Methods | [hide private]
__init__(self, noopts=0, app=None, connect=False) | source code
connect(self) | source code
login(self, name='admin', userfolder=None) Logs in. | source code
logout(self) Logs out. | source code
getConnection(self) Return a wrapped app connection from the connection pool. | source code
closeAll(self) Close all connections in both free an inuse pools. | source code
opendb(self) | source code
syncdb(self) | source code
closedb(self) | source code
getDataRoot(self) | source code
getDmdObj(self, path) return an object based on a path starting from the dmd | source code
findDevice(self, name) return a device based on its FQDN | source code
buildOptions(self) basic options setup sub classes can add more options here | source code
Inherited from `CmdBase.CmdBase`: `buildParser`, `checkLogpath`, `generate_configs`, `generate_xml_configs`, `generate_xml_table`, `getConfigFileDefaults`, `getGlobalConfigFileDefaults`, `getParamatersFromConfig`, `loadConfigFile`, `parseOptions`, `pretty_print_config_comment`, `setupLogging`, `validateConfigFile`

Class Variables | [hide private]
Inherited from `CmdBase.CmdBase`: `doesLogging`

Method Details | [hide private]

### __init__(self, noopts=0, app=None, connect=False) (Constructor) | source code
Overrides: CmdBase.CmdBase.__init__

### buildOptions(self) | source code
basic options setup sub classes can add more options here Overrides: CmdBase.CmdBase.buildOptions