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

Class ZCmdBase

source code

CmdBase.CmdBase --+    
                  |    
ZenDaemon.ZenDaemon --+
                      |
                     ZCmdBase
Known Subclasses:
ToManyRebuildKeys.ToManyRebuildKeys, LocationDump.LocationDump, BasicLoader.BasicLoader

Instance Methods [hide private]
 
__init__(self, noopts=0, app=None, keeproot=False) source code
 
zeoConnect(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
 
getContext(self, app) 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 ZenDaemon.ZenDaemon: becomeDaemon, changeUser, setupLogging, sigTerm

Inherited from CmdBase.CmdBase: buildParser, generate_configs, generate_xml_table, parseOptions, pretty_print_config_comment

Class Variables [hide private]

Inherited from ZenDaemon.ZenDaemon: pidfile

Inherited from CmdBase.CmdBase: doesLogging

Method Details [hide private]

__init__(self, noopts=0, app=None, keeproot=False)
(Constructor)

source code 
Overrides: ZenDaemon.ZenDaemon.__init__

buildOptions(self)

source code 
basic options setup sub classes can add more options here
Overrides: ZenDaemon.ZenDaemon.buildOptions