docs update, just as reference
This commit is contained in:
parent
ea8eeaf8e5
commit
33b1ec55f3
59 changed files with 266 additions and 182 deletions
|
|
@ -102,8 +102,8 @@ linspector.lib.core.command.Command linspector.lib.core.command.Command-class.ht
|
|||
linspector.lib.core.command.Command.getError linspector.lib.core.command.Command-class.html#getError
|
||||
linspector.lib.core.command.Command.__str__ linspector.lib.core.command.Command-class.html#__str__
|
||||
linspector.lib.core.command.Command.getOutput linspector.lib.core.command.Command-class.html#getOutput
|
||||
linspector.lib.core.command.Command.hasProcessed linspector.lib.core.command.Command-class.html#hasProcessed
|
||||
linspector.lib.core.command.Command.doProcess linspector.lib.core.command.Command-class.html#doProcess
|
||||
linspector.lib.core.command.Command.call linspector.lib.core.command.Command-class.html#call
|
||||
linspector.lib.core.command.Command.getReturnCode linspector.lib.core.command.Command-class.html#getReturnCode
|
||||
linspector.lib.core.command.Command.__init__ linspector.lib.core.command.Command-class.html#__init__
|
||||
linspector.lib.core.daemon.Daemon linspector.lib.core.daemon.Daemon-class.html
|
||||
linspector.lib.core.daemon.Daemon.delpid linspector.lib.core.daemon.Daemon-class.html#delpid
|
||||
|
|
@ -114,7 +114,9 @@ linspector.lib.core.daemon.Daemon.daemonize linspector.lib.core.daemon.Daemon-cl
|
|||
linspector.lib.core.daemon.Daemon.__init__ linspector.lib.core.daemon.Daemon-class.html#__init__
|
||||
linspector.lib.core.daemon.Daemon.restart linspector.lib.core.daemon.Daemon-class.html#restart
|
||||
linspector.lib.core.job.JobInfo linspector.lib.core.job.JobInfo-class.html
|
||||
linspector.lib.core.job.JobInfo.getNextExecutionTime linspector.lib.core.job.JobInfo-class.html#getNextExecutionTime
|
||||
linspector.lib.core.job.JobInfo.__str__ linspector.lib.core.job.JobInfo-class.html#__str__
|
||||
linspector.lib.core.job.JobInfo.appendJob linspector.lib.core.job.JobInfo-class.html#appendJob
|
||||
linspector.lib.core.job.JobInfo.handleCall linspector.lib.core.job.JobInfo-class.html#handleCall
|
||||
linspector.lib.core.job.JobInfo.setLogger linspector.lib.core.job.JobInfo-class.html#setLogger
|
||||
linspector.lib.core.job.JobInfo.__init__ linspector.lib.core.job.JobInfo-class.html#__init__
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:36 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ page was last updated. </p>
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:36 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@
|
|||
<h1 class="epydoc">Identifier Index</h1>
|
||||
</td><td>
|
||||
[
|
||||
A
|
||||
<a href="#A">A</a>
|
||||
B
|
||||
<a href="#C">C</a>
|
||||
<a href="#D">D</a>
|
||||
|
|
@ -84,6 +84,18 @@
|
|||
]
|
||||
</td></table>
|
||||
<table border="0" width="100%">
|
||||
<tr valign="top"><td valign="top" width="1%"><h2 class="epydoc"><a name="A">A</a></h2></td>
|
||||
<td valign="top">
|
||||
<table class="link-index" width="100%" border="1">
|
||||
<tr>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.job.JobInfo-class.html#appendJob">appendJob()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.job.JobInfo-class.html">JobInfo</a>)</span></td>
|
||||
<td width="33%" class="link-index"> </td>
|
||||
<td width="33%" class="link-index"> </td>
|
||||
</tr>
|
||||
<tr><td class="link-index"> </td><td class="link-index"> </td><td class="link-index"> </td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr valign="top"><td valign="top" width="1%"><h2 class="epydoc"><a name="C">C</a></h2></td>
|
||||
<td valign="top">
|
||||
<table class="link-index" width="100%" border="1">
|
||||
|
|
@ -92,41 +104,47 @@
|
|||
<span class="index-where">(in <a href="linspector.lib.core.logger.Logger-class.html">Logger</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.command.Command-class.html">Command</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.command-module.html">linspector.lib.core.command</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.periods.CronPeriod-class.html#createJob">createJob()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.periods.CronPeriod-class.html">CronPeriod</a>)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.filters.Filter-class.html#clone">clone()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.filters.Filter-class.html">Filter</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config-module.html">config</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib-module.html">linspector.lib</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.periods.DatePeriod-class.html#createJob">createJob()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.periods.DatePeriod-class.html">DatePeriod</a>)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.services.Service-class.html#clone">clone()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.services.Service-class.html">Service</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.config-module.html">config</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config-module.html">linspector.lib.config</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.command.Command-class.html#call">call()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.command.Command-class.html">Command</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config-module.html">config</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib-module.html">linspector.lib</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.periods.IntervalPeriod-class.html#createJob">createJob()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.periods.IntervalPeriod-class.html">IntervalPeriod</a>)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.logger.Logger-class.html#close">close()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.logger.Logger-class.html">Logger</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.config.Config-class.html">Config</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.config-module.html">linspector.lib.config.config</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.filters.Filter-class.html#clone">clone()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.filters.Filter-class.html">Filter</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.config-module.html">config</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config-module.html">linspector.lib.config</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.periods.Period-class.html#createJob">createJob()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.periods.Period-class.html">Period</a>)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.command-module.html">command</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core-module.html">linspector.lib.core</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core-module.html">core</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib-module.html">linspector.lib</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.services.Service-class.html#clone">clone()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.services.Service-class.html">Service</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.config.Config-class.html">Config</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.config-module.html">linspector.lib.config.config</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.periods.CronPeriod-class.html">CronPeriod</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.periods-module.html">linspector.lib.config.periods</a>)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.logger.Logger-class.html#close">close()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.logger.Logger-class.html">Logger</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core-module.html">core</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib-module.html">linspector.lib</a>)</span></td>
|
||||
<td width="33%" class="link-index"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.command-module.html">command</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core-module.html">linspector.lib.core</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.periods.CronPeriod-class.html#createJob">createJob()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.periods.CronPeriod-class.html">CronPeriod</a>)</span></td>
|
||||
<td width="33%" class="link-index"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr valign="top"><td valign="top" width="1%"><h2 class="epydoc"><a name="D">D</a></h2></td>
|
||||
|
|
@ -135,24 +153,18 @@
|
|||
<tr>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.logger.Logger-class.html#d">d()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.logger.Logger-class.html">Logger</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.daemon.Daemon-class.html#daemonize">daemonize()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.daemon.Daemon-class.html">Daemon</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.command.Command-class.html#doProcess">doProcess()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.command.Command-class.html">Command</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.daemon.Daemon-class.html">Daemon</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.daemon-module.html">linspector.lib.core.daemon</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.periods.DatePeriod-class.html">DatePeriod</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.periods-module.html">linspector.lib.config.periods</a>)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.daemon-module.html">daemon</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core-module.html">linspector.lib.core</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.periods.DatePeriod-class.html">DatePeriod</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.periods-module.html">linspector.lib.config.periods</a>)</span></td>
|
||||
<td width="33%" class="link-index"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.daemon.Daemon-class.html">Daemon</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.daemon-module.html">linspector.lib.core.daemon</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.daemon.Daemon-class.html#daemonize">daemonize()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.daemon.Daemon-class.html">Daemon</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.daemon.Daemon-class.html#delpid">delpid()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.daemon.Daemon-class.html">Daemon</a>)</span></td>
|
||||
<td width="33%" class="link-index"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
|
@ -189,14 +201,16 @@
|
|||
<span class="index-where">(in <a href="linspector.lib.config.hosts.HostService-class.html">HostService</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.periods.Period-class.html#getName">getName()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.periods.Period-class.html">Period</a>)</span></td>
|
||||
<td width="33%" class="link-index"> </td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.command.Command-class.html#getOutput">getOutput()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.command.Command-class.html">Command</a>)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.command.Command-class.html#getError">getError()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.command.Command-class.html">Command</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.command.Command-class.html#getOutput">getOutput()</a><br />
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.job.JobInfo-class.html#getNextExecutionTime">getNextExecutionTime()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.job.JobInfo-class.html">JobInfo</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.command.Command-class.html#getReturnCode">getReturnCode()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.command.Command-class.html">Command</a>)</span></td>
|
||||
<td width="33%" class="link-index"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
|
@ -206,14 +220,6 @@
|
|||
<tr>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.job.JobInfo-class.html#handleCall">handleCall()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.job.JobInfo-class.html">JobInfo</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.hostgroups.HostGroup-class.html">HostGroup</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.hostgroups-module.html">linspector.lib.config.hostgroups</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.hosts-module.html">hosts</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config-module.html">linspector.lib.config</a>)</span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.core.command.Command-class.html#hasProcessed">hasProcessed()</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.core.command.Command-class.html">Command</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.hostgroups-module.html">hostgroups</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config-module.html">linspector.lib.config</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.hosts.HostService-class.html">HostService</a><br />
|
||||
|
|
@ -226,6 +232,13 @@
|
|||
<span class="index-where">(in <a href="linspector.lib.config.hostgroups-module.html">linspector.lib.config.hostgroups</a>)</span></td>
|
||||
<td width="33%" class="link-index"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.hostgroups.HostGroup-class.html">HostGroup</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config.hostgroups-module.html">linspector.lib.config.hostgroups</a>)</span></td>
|
||||
<td width="33%" class="link-index"><a href="linspector.lib.config.hosts-module.html">hosts</a><br />
|
||||
<span class="index-where">(in <a href="linspector.lib.config-module.html">linspector.lib.config</a>)</span></td>
|
||||
<td width="33%" class="link-index"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr valign="top"><td valign="top" width="1%"><h2 class="epydoc"><a name="I">I</a></h2></td>
|
||||
|
|
@ -543,7 +556,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:36 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@
|
|||
<li> <strong class="uidlink"><a href="linspector.lib.core.command-module.html">linspector.lib.core.command</a></strong> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.daemon-module.html">linspector.lib.core.daemon</a></strong> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.job-module.html">linspector.lib.core.job</a></strong>: <em class="summary">This is what job_function needs as parameter for each job to
|
||||
succesfully execute.</em> </li>
|
||||
successfully execute.</em> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.linspector_daemon-module.html">linspector.lib.core.linspector_daemon</a></strong> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.logger-module.html">linspector.lib.core.logger</a></strong> </li>
|
||||
</ul>
|
||||
|
|
@ -155,7 +155,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@
|
|||
<li> <strong class="uidlink"><a href="linspector.lib.core.command-module.html">linspector.lib.core.command</a></strong> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.daemon-module.html">linspector.lib.core.daemon</a></strong> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.job-module.html">linspector.lib.core.job</a></strong>: <em class="summary">This is what job_function needs as parameter for each job to
|
||||
succesfully execute.</em> </li>
|
||||
successfully execute.</em> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.linspector_daemon-module.html">linspector.lib.core.linspector_daemon</a></strong> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.logger-module.html">linspector.lib.core.logger</a></strong> </li>
|
||||
</ul>
|
||||
|
|
@ -152,7 +152,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -180,32 +180,33 @@ linspector.lib.core.logger.Logger.__init__" class="py-name" href="#" onclick="re
|
|||
<a name="L66"></a><tt class="py-lineno">66</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">ret</tt> </tt>
|
||||
</div><a name="L67"></a><tt class="py-lineno">67</tt> <tt class="py-line"> </tt>
|
||||
<a name="DatePeriod.createJob"></a><div id="DatePeriod.createJob-def"><a name="L68"></a><tt class="py-lineno">68</tt> <a class="py-toggle" href="#" id="DatePeriod.createJob-toggle" onclick="return toggle('DatePeriod.createJob');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.config.periods.DatePeriod-class.html#createJob">createJob</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">scheduler</tt><tt class="py-op">,</tt> <tt class="py-param">jobInfo</tt><tt class="py-op">,</tt> <tt class="py-param">func</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="DatePeriod.createJob-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="DatePeriod.createJob-expanded"><a name="L69"></a><tt class="py-lineno">69</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">scheduler</tt><tt class="py-op">.</tt><tt class="py-name">add_date_job</tt><tt class="py-op">(</tt><tt class="py-name">func</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">date</tt><tt class="py-op">,</tt> <tt class="py-op">[</tt><tt class="py-name">jobInfo</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
|
||||
</div><div id="DatePeriod.createJob-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="DatePeriod.createJob-expanded"><a name="L69"></a><tt class="py-lineno">69</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">scheduler</tt><tt class="py-op">.</tt><tt class="py-name">add_date_job</tt><tt class="py-op">(</tt><tt class="py-name">func</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">date</tt><tt class="py-op">,</tt> <tt class="py-name">jobInfo</tt><tt class="py-op">)</tt> </tt>
|
||||
</div></div><a name="L70"></a><tt class="py-lineno">70</tt> <tt class="py-line"> </tt>
|
||||
<a name="L71"></a><tt class="py-lineno">71</tt> <tt class="py-line"> </tt>
|
||||
<a name="parsePeriodList"></a><div id="parsePeriodList-def"><a name="L72"></a><tt class="py-lineno">72</tt> <a class="py-toggle" href="#" id="parsePeriodList-toggle" onclick="return toggle('parsePeriodList');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.config.periods-module.html#parsePeriodList">parsePeriodList</a><tt class="py-op">(</tt><tt class="py-param">periodlist</tt><tt class="py-op">,</tt> <tt class="py-param">log</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="parsePeriodList-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="parsePeriodList-expanded"><a name="L73"></a><tt class="py-lineno">73</tt> <tt class="py-line"> <tt id="link-6" class="py-name" targets="Module linspector.lib.config.periods=linspector.lib.config.periods-module.html"><a title="linspector.lib.config.periods" class="py-name" href="#" onclick="return doclink('link-6', 'periods', 'link-6');">periods</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
|
||||
<a name="L74"></a><tt class="py-lineno">74</tt> <tt class="py-line"> <tt class="py-name">log</tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Method linspector.lib.core.logger.Logger.i()=linspector.lib.core.logger.Logger-class.html#i"><a title="linspector.lib.core.logger.Logger.i" class="py-name" href="#" onclick="return doclink('link-7', 'i', 'link-7');">i</a></tt><tt class="py-op">(</tt><tt class="py-name">periodlist</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L74"></a><tt class="py-lineno">74</tt> <tt class="py-line"> <tt class="py-comment">#log.d("values of periodslist: " + str(periodlist.items()))</tt> </tt>
|
||||
<a name="L75"></a><tt class="py-lineno">75</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">name</tt><tt class="py-op">,</tt> <tt class="py-name">values</tt> <tt class="py-keyword">in</tt> <tt class="py-name">periodlist</tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
<a name="L76"></a><tt class="py-lineno">76</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-string">"date"</tt> <tt class="py-keyword">in</tt> <tt class="py-name">values</tt><tt class="py-op">:</tt> </tt>
|
||||
<a name="L77"></a><tt class="py-lineno">77</tt> <tt class="py-line"> <tt id="link-8" class="py-name"><a title="linspector.lib.config.periods" class="py-name" href="#" onclick="return doclink('link-8', 'periods', 'link-6');">periods</a></tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-9" class="py-name"><a title="linspector.lib.config.periods.DatePeriod" class="py-name" href="#" onclick="return doclink('link-9', 'DatePeriod', 'link-4');">DatePeriod</a></tt><tt class="py-op">(</tt><tt class="py-name">name</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-name">values</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L78"></a><tt class="py-lineno">78</tt> <tt class="py-line"> <tt class="py-keyword">continue</tt> </tt>
|
||||
<a name="L79"></a><tt class="py-lineno">79</tt> <tt class="py-line"> </tt>
|
||||
<a name="L80"></a><tt class="py-lineno">80</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt id="link-10" class="py-name"><a title="linspector.lib.core.logger.Logger.i" class="py-name" href="#" onclick="return doclink('link-10', 'i', 'link-7');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-string">"weeks"</tt><tt class="py-op">,</tt> <tt class="py-string">"days"</tt><tt class="py-op">,</tt> <tt class="py-string">"hours"</tt><tt class="py-op">,</tt> <tt class="py-string">"minutes"</tt><tt class="py-op">,</tt> <tt class="py-string">"seconds"</tt><tt class="py-op">,</tt> <tt class="py-string">"start_date"</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
|
||||
<a name="L81"></a><tt class="py-lineno">81</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-11" class="py-name"><a title="linspector.lib.core.logger.Logger.i" class="py-name" href="#" onclick="return doclink('link-11', 'i', 'link-7');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">values</tt><tt class="py-op">:</tt> </tt>
|
||||
<a name="L82"></a><tt class="py-lineno">82</tt> <tt class="py-line"> <tt id="link-12" class="py-name"><a title="linspector.lib.config.periods" class="py-name" href="#" onclick="return doclink('link-12', 'periods', 'link-6');">periods</a></tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-13" class="py-name"><a title="linspector.lib.config.periods.IntervalPeriod" class="py-name" href="#" onclick="return doclink('link-13', 'IntervalPeriod', 'link-0');">IntervalPeriod</a></tt><tt class="py-op">(</tt><tt class="py-name">name</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-name">values</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L83"></a><tt class="py-lineno">83</tt> <tt class="py-line"> <tt class="py-keyword">break</tt> </tt>
|
||||
<a name="L84"></a><tt class="py-lineno">84</tt> <tt class="py-line"> </tt>
|
||||
<a name="L85"></a><tt class="py-lineno">85</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt id="link-14" class="py-name"><a title="linspector.lib.core.logger.Logger.i" class="py-name" href="#" onclick="return doclink('link-14', 'i', 'link-7');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-string">"year"</tt><tt class="py-op">,</tt> <tt class="py-string">"month"</tt><tt class="py-op">,</tt> <tt class="py-string">"day"</tt><tt class="py-op">,</tt> <tt class="py-string">"week"</tt><tt class="py-op">,</tt> <tt class="py-string">"day_of_week"</tt><tt class="py-op">,</tt> <tt class="py-string">"hour"</tt><tt class="py-op">,</tt> <tt class="py-string">"minute"</tt><tt class="py-op">,</tt> <tt class="py-string">"second"</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
|
||||
<a name="L86"></a><tt class="py-lineno">86</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt id="link-15" class="py-name"><a title="linspector.lib.core.logger.Logger.i" class="py-name" href="#" onclick="return doclink('link-15', 'i', 'link-7');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">values</tt><tt class="py-op">:</tt> </tt>
|
||||
<a name="L87"></a><tt class="py-lineno">87</tt> <tt class="py-line"> <tt id="link-16" class="py-name"><a title="linspector.lib.config.periods" class="py-name" href="#" onclick="return doclink('link-16', 'periods', 'link-6');">periods</a></tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-17" class="py-name"><a title="linspector.lib.config.periods.CronPeriod" class="py-name" href="#" onclick="return doclink('link-17', 'CronPeriod', 'link-2');">CronPeriod</a></tt><tt class="py-op">(</tt><tt class="py-name">name</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-name">values</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L88"></a><tt class="py-lineno">88</tt> <tt class="py-line"> <tt class="py-keyword">break</tt> </tt>
|
||||
<a name="L89"></a><tt class="py-lineno">89</tt> <tt class="py-line"> </tt>
|
||||
<a name="L90"></a><tt class="py-lineno">90</tt> <tt class="py-line"> <tt class="py-name">log</tt><tt class="py-op">.</tt><tt id="link-18" class="py-name" targets="Method linspector.lib.core.logger.Logger.w()=linspector.lib.core.logger.Logger-class.html#w"><a title="linspector.lib.core.logger.Logger.w" class="py-name" href="#" onclick="return doclink('link-18', 'w', 'link-18');">w</a></tt><tt class="py-op">(</tt><tt class="py-string">"ignoring Period: "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">name</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L91"></a><tt class="py-lineno">91</tt> <tt class="py-line"> <tt class="py-name">log</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="linspector.lib.core.logger.Logger.w" class="py-name" href="#" onclick="return doclink('link-19', 'w', 'link-18');">w</a></tt><tt class="py-op">(</tt><tt class="py-string">"reason: could not determine PeriodType: "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">values</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L92"></a><tt class="py-lineno">92</tt> <tt class="py-line"> </tt>
|
||||
<a name="L93"></a><tt class="py-lineno">93</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-20" class="py-name"><a title="linspector.lib.config.periods" class="py-name" href="#" onclick="return doclink('link-20', 'periods', 'link-6');">periods</a></tt> </tt>
|
||||
</div><a name="L94"></a><tt class="py-lineno">94</tt> <tt class="py-line"> </tt><script type="text/javascript">
|
||||
<a name="L76"></a><tt class="py-lineno">76</tt> <tt class="py-line"> </tt>
|
||||
<a name="L77"></a><tt class="py-lineno">77</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-string">"date"</tt> <tt class="py-keyword">in</tt> <tt class="py-name">values</tt><tt class="py-op">:</tt> </tt>
|
||||
<a name="L78"></a><tt class="py-lineno">78</tt> <tt class="py-line"> <tt id="link-7" class="py-name"><a title="linspector.lib.config.periods" class="py-name" href="#" onclick="return doclink('link-7', 'periods', 'link-6');">periods</a></tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-8" class="py-name"><a title="linspector.lib.config.periods.DatePeriod" class="py-name" href="#" onclick="return doclink('link-8', 'DatePeriod', 'link-4');">DatePeriod</a></tt><tt class="py-op">(</tt><tt class="py-name">name</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-name">values</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L79"></a><tt class="py-lineno">79</tt> <tt class="py-line"> <tt class="py-keyword">continue</tt> </tt>
|
||||
<a name="L80"></a><tt class="py-lineno">80</tt> <tt class="py-line"> </tt>
|
||||
<a name="L81"></a><tt class="py-lineno">81</tt> <tt class="py-line"> <tt class="py-name">comp</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">"weeks"</tt><tt class="py-op">,</tt> <tt class="py-string">"days"</tt><tt class="py-op">,</tt> <tt class="py-string">"hours"</tt><tt class="py-op">,</tt> <tt class="py-string">"minutes"</tt><tt class="py-op">,</tt> <tt class="py-string">"seconds"</tt><tt class="py-op">,</tt> <tt class="py-string">"start_date"</tt><tt class="py-op">]</tt> </tt>
|
||||
<a name="L82"></a><tt class="py-lineno">82</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt id="link-9" class="py-name" targets="Method linspector.lib.core.logger.Logger.i()=linspector.lib.core.logger.Logger-class.html#i"><a title="linspector.lib.core.logger.Logger.i" class="py-name" href="#" onclick="return doclink('link-9', 'i', 'link-9');">i</a></tt> <tt class="py-keyword">for</tt> <tt id="link-10" class="py-name"><a title="linspector.lib.core.logger.Logger.i" class="py-name" href="#" onclick="return doclink('link-10', 'i', 'link-9');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">comp</tt> <tt class="py-keyword">if</tt> <tt id="link-11" class="py-name"><a title="linspector.lib.core.logger.Logger.i" class="py-name" href="#" onclick="return doclink('link-11', 'i', 'link-9');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">values</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">></tt> <tt class="py-number">0</tt> <tt class="py-op">:</tt> </tt>
|
||||
<a name="L83"></a><tt class="py-lineno">83</tt> <tt class="py-line"> <tt id="link-12" class="py-name"><a title="linspector.lib.config.periods" class="py-name" href="#" onclick="return doclink('link-12', 'periods', 'link-6');">periods</a></tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-13" class="py-name"><a title="linspector.lib.config.periods.IntervalPeriod" class="py-name" href="#" onclick="return doclink('link-13', 'IntervalPeriod', 'link-0');">IntervalPeriod</a></tt><tt class="py-op">(</tt><tt class="py-name">name</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-name">values</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L84"></a><tt class="py-lineno">84</tt> <tt class="py-line"> <tt class="py-keyword">break</tt> </tt>
|
||||
<a name="L85"></a><tt class="py-lineno">85</tt> <tt class="py-line"> </tt>
|
||||
<a name="L86"></a><tt class="py-lineno">86</tt> <tt class="py-line"> <tt class="py-name">comp</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">"year"</tt><tt class="py-op">,</tt> <tt class="py-string">"month"</tt><tt class="py-op">,</tt> <tt class="py-string">"day"</tt><tt class="py-op">,</tt> <tt class="py-string">"week"</tt><tt class="py-op">,</tt> <tt class="py-string">"day_of_week"</tt><tt class="py-op">,</tt> <tt class="py-string">"hour"</tt><tt class="py-op">,</tt> <tt class="py-string">"minute"</tt><tt class="py-op">,</tt> <tt class="py-string">"second"</tt><tt class="py-op">]</tt> </tt>
|
||||
<a name="L87"></a><tt class="py-lineno">87</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt id="link-14" class="py-name"><a title="linspector.lib.core.logger.Logger.i" class="py-name" href="#" onclick="return doclink('link-14', 'i', 'link-9');">i</a></tt> <tt class="py-keyword">for</tt> <tt id="link-15" class="py-name"><a title="linspector.lib.core.logger.Logger.i" class="py-name" href="#" onclick="return doclink('link-15', 'i', 'link-9');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">comp</tt> <tt class="py-keyword">if</tt> <tt id="link-16" class="py-name"><a title="linspector.lib.core.logger.Logger.i" class="py-name" href="#" onclick="return doclink('link-16', 'i', 'link-9');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">values</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">></tt> <tt class="py-number">0</tt> <tt class="py-op">:</tt> </tt>
|
||||
<a name="L88"></a><tt class="py-lineno">88</tt> <tt class="py-line"> <tt id="link-17" class="py-name"><a title="linspector.lib.config.periods" class="py-name" href="#" onclick="return doclink('link-17', 'periods', 'link-6');">periods</a></tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-18" class="py-name"><a title="linspector.lib.config.periods.CronPeriod" class="py-name" href="#" onclick="return doclink('link-18', 'CronPeriod', 'link-2');">CronPeriod</a></tt><tt class="py-op">(</tt><tt class="py-name">name</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-name">values</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L89"></a><tt class="py-lineno">89</tt> <tt class="py-line"> <tt class="py-keyword">break</tt> </tt>
|
||||
<a name="L90"></a><tt class="py-lineno">90</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
|
||||
<a name="L91"></a><tt class="py-lineno">91</tt> <tt class="py-line"> <tt class="py-name">log</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name" targets="Method linspector.lib.core.logger.Logger.w()=linspector.lib.core.logger.Logger-class.html#w"><a title="linspector.lib.core.logger.Logger.w" class="py-name" href="#" onclick="return doclink('link-19', 'w', 'link-19');">w</a></tt><tt class="py-op">(</tt><tt class="py-string">"ignoring Period: "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">name</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L92"></a><tt class="py-lineno">92</tt> <tt class="py-line"> <tt class="py-name">log</tt><tt class="py-op">.</tt><tt id="link-20" class="py-name"><a title="linspector.lib.core.logger.Logger.w" class="py-name" href="#" onclick="return doclink('link-20', 'w', 'link-19');">w</a></tt><tt class="py-op">(</tt><tt class="py-string">"reason: could not determine PeriodType: "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">values</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L93"></a><tt class="py-lineno">93</tt> <tt class="py-line"> </tt>
|
||||
<a name="L94"></a><tt class="py-lineno">94</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt id="link-21" class="py-name"><a title="linspector.lib.config.periods" class="py-name" href="#" onclick="return doclink('link-21', 'periods', 'link-6');">periods</a></tt> </tt>
|
||||
</div><a name="L95"></a><tt class="py-lineno">95</tt> <tt class="py-line"> </tt><script type="text/javascript">
|
||||
<!--
|
||||
expandto(location.href);
|
||||
// -->
|
||||
|
|
@ -238,7 +239,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -324,7 +324,7 @@ object --+
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -308,7 +308,7 @@ object --+
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ object --+
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ object --+
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@
|
|||
<li> <strong class="uidlink"><a href="linspector.lib.core.command-module.html">linspector.lib.core.command</a></strong> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.daemon-module.html">linspector.lib.core.daemon</a></strong> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.job-module.html">linspector.lib.core.job</a></strong>: <em class="summary">This is what job_function needs as parameter for each job to
|
||||
succesfully execute.</em> </li>
|
||||
successfully execute.</em> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.linspector_daemon-module.html">linspector.lib.core.linspector_daemon</a></strong> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.logger-module.html">linspector.lib.core.logger</a></strong> </li>
|
||||
</ul></td></tr>
|
||||
|
|
@ -137,7 +137,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -58,35 +58,46 @@
|
|||
</table>
|
||||
<h1 class="epydoc">Source Code for <a href="linspector.lib.core.command-module.html">Module linspector.lib.core.command</a></h1>
|
||||
<pre class="py-src">
|
||||
<a name="L1"></a><tt class="py-lineno"> 1</tt> <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">subprocess</tt> </tt>
|
||||
<a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"> </tt>
|
||||
<a name="L3"></a><tt class="py-lineno"> 3</tt> <tt class="py-line"> </tt>
|
||||
<a name="Command"></a><div id="Command-def"><a name="L4"></a><tt class="py-lineno"> 4</tt> <a class="py-toggle" href="#" id="Command-toggle" onclick="return toggle('Command');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="linspector.lib.core.command.Command-class.html">Command</a><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="Command-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="Command-expanded"><a name="Command.__init__"></a><div id="Command.__init__-def"><a name="L5"></a><tt class="py-lineno"> 5</tt> <a class="py-toggle" href="#" id="Command.__init__-toggle" onclick="return toggle('Command.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.command.Command-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">command</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="Command.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Command.__init__-expanded"><a name="L6"></a><tt class="py-lineno"> 6</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-0" class="py-name" targets="Module linspector.lib.core.command=linspector.lib.core.command-module.html"><a title="linspector.lib.core.command" class="py-name" href="#" onclick="return doclink('link-0', 'command', 'link-0');">command</a></tt> <tt class="py-op">=</tt> <tt id="link-1" class="py-name"><a title="linspector.lib.core.command" class="py-name" href="#" onclick="return doclink('link-1', 'command', 'link-0');">command</a></tt> </tt>
|
||||
<a name="L7"></a><tt class="py-lineno"> 7</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">output</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt>
|
||||
<a name="L8"></a><tt class="py-lineno"> 8</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">error</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt>
|
||||
</div><a name="L9"></a><tt class="py-lineno"> 9</tt> <tt class="py-line"> </tt>
|
||||
<a name="Command.__str__"></a><div id="Command.__str__-def"><a name="L10"></a><tt class="py-lineno">10</tt> <a class="py-toggle" href="#" id="Command.__str__-toggle" onclick="return toggle('Command.__str__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.command.Command-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="Command.__str__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Command.__str__-expanded"><a name="L11"></a><tt class="py-lineno">11</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-2" class="py-name"><a title="linspector.lib.core.command" class="py-name" href="#" onclick="return doclink('link-2', 'command', 'link-0');">command</a></tt> </tt>
|
||||
<a name="L1"></a><tt class="py-lineno"> 1</tt> <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">subprocess</tt> <tt class="py-keyword">as</tt> <tt class="py-name">sp</tt> </tt>
|
||||
<a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">subprocess</tt> <tt class="py-keyword">import</tt> <tt class="py-name">CalledProcessError</tt> </tt>
|
||||
<a name="L3"></a><tt class="py-lineno"> 3</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">datetime</tt> <tt class="py-keyword">import</tt> <tt class="py-name">datetime</tt> <tt class="py-keyword">as</tt> <tt class="py-name">dt</tt> </tt>
|
||||
<a name="L4"></a><tt class="py-lineno"> 4</tt> <tt class="py-line"> </tt>
|
||||
<a name="Command"></a><div id="Command-def"><a name="L5"></a><tt class="py-lineno"> 5</tt> <a class="py-toggle" href="#" id="Command-toggle" onclick="return toggle('Command');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="linspector.lib.core.command.Command-class.html">Command</a><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="Command-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="Command-expanded"><a name="Command.__init__"></a><div id="Command.__init__-def"><a name="L6"></a><tt class="py-lineno"> 6</tt> <a class="py-toggle" href="#" id="Command.__init__-toggle" onclick="return toggle('Command.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.command.Command-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">command</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="Command.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Command.__init__-expanded"><a name="L7"></a><tt class="py-lineno"> 7</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-0" class="py-name" targets="Module linspector.lib.core.command=linspector.lib.core.command-module.html"><a title="linspector.lib.core.command" class="py-name" href="#" onclick="return doclink('link-0', 'command', 'link-0');">command</a></tt> <tt class="py-op">=</tt> <tt id="link-1" class="py-name"><a title="linspector.lib.core.command" class="py-name" href="#" onclick="return doclink('link-1', 'command', 'link-0');">command</a></tt> </tt>
|
||||
<a name="L8"></a><tt class="py-lineno"> 8</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">output</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt>
|
||||
<a name="L9"></a><tt class="py-lineno"> 9</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">error</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt>
|
||||
<a name="L10"></a><tt class="py-lineno">10</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">retcode</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
|
||||
<a name="L11"></a><tt class="py-lineno">11</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">commandStart</tt><tt class="py-op">=</tt><tt class="py-number">0</tt> </tt>
|
||||
</div><a name="L12"></a><tt class="py-lineno">12</tt> <tt class="py-line"> </tt>
|
||||
<a name="Command.hasProcessed"></a><div id="Command.hasProcessed-def"><a name="L13"></a><tt class="py-lineno">13</tt> <a class="py-toggle" href="#" id="Command.hasProcessed-toggle" onclick="return toggle('Command.hasProcessed');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.command.Command-class.html#hasProcessed">hasProcessed</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="Command.hasProcessed-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Command.hasProcessed-expanded"><a name="L14"></a><tt class="py-lineno">14</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">output</tt> <tt class="py-op">!=</tt> <tt class="py-string">""</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">error</tt> <tt class="py-op">!=</tt> <tt class="py-string">""</tt> </tt>
|
||||
<a name="Command.__str__"></a><div id="Command.__str__-def"><a name="L13"></a><tt class="py-lineno">13</tt> <a class="py-toggle" href="#" id="Command.__str__-toggle" onclick="return toggle('Command.__str__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.command.Command-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="Command.__str__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Command.__str__-expanded"><a name="L14"></a><tt class="py-lineno">14</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-2" class="py-name"><a title="linspector.lib.core.command" class="py-name" href="#" onclick="return doclink('link-2', 'command', 'link-0');">command</a></tt> </tt>
|
||||
</div><a name="L15"></a><tt class="py-lineno">15</tt> <tt class="py-line"> </tt>
|
||||
<a name="Command.doProcess"></a><div id="Command.doProcess-def"><a name="L16"></a><tt class="py-lineno">16</tt> <a class="py-toggle" href="#" id="Command.doProcess-toggle" onclick="return toggle('Command.doProcess');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.command.Command-class.html#doProcess">doProcess</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="Command.doProcess-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Command.doProcess-expanded"><a name="L17"></a><tt class="py-lineno">17</tt> <tt class="py-line"> <tt class="py-name">process</tt> <tt class="py-op">=</tt> <tt class="py-name">subprocess</tt><tt class="py-op">.</tt><tt class="py-name">Popen</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-3" class="py-name"><a title="linspector.lib.core.command" class="py-name" href="#" onclick="return doclink('link-3', 'command', 'link-0');">command</a></tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">stdout</tt><tt class="py-op">=</tt><tt class="py-name">subprocess</tt><tt class="py-op">.</tt><tt class="py-name">PIPE</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L18"></a><tt class="py-lineno">18</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">output</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">error</tt> <tt class="py-op">=</tt> <tt class="py-name">process</tt><tt class="py-op">.</tt><tt class="py-name">communicate</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
|
||||
</div><a name="L19"></a><tt class="py-lineno">19</tt> <tt class="py-line"> </tt>
|
||||
<a name="Command.getOutput"></a><div id="Command.getOutput-def"><a name="L20"></a><tt class="py-lineno">20</tt> <a class="py-toggle" href="#" id="Command.getOutput-toggle" onclick="return toggle('Command.getOutput');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.command.Command-class.html#getOutput">getOutput</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="Command.getOutput-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Command.getOutput-expanded"><a name="L21"></a><tt class="py-lineno">21</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Method linspector.lib.core.command.Command.hasProcessed()=linspector.lib.core.command.Command-class.html#hasProcessed"><a title="linspector.lib.core.command.Command.hasProcessed" class="py-name" href="#" onclick="return doclink('link-4', 'hasProcessed', 'link-4');">hasProcessed</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
<a name="L22"></a><tt class="py-lineno">22</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-5" class="py-name" targets="Method linspector.lib.core.command.Command.doProcess()=linspector.lib.core.command.Command-class.html#doProcess"><a title="linspector.lib.core.command.Command.doProcess" class="py-name" href="#" onclick="return doclink('link-5', 'doProcess', 'link-5');">doProcess</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L23"></a><tt class="py-lineno">23</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">output</tt> </tt>
|
||||
</div><a name="L24"></a><tt class="py-lineno">24</tt> <tt class="py-line"> </tt>
|
||||
<a name="Command.getError"></a><div id="Command.getError-def"><a name="L25"></a><tt class="py-lineno">25</tt> <a class="py-toggle" href="#" id="Command.getError-toggle" onclick="return toggle('Command.getError');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.command.Command-class.html#getError">getError</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="Command.getError-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Command.getError-expanded"><a name="L26"></a><tt class="py-lineno">26</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-6" class="py-name"><a title="linspector.lib.core.command.Command.hasProcessed" class="py-name" href="#" onclick="return doclink('link-6', 'hasProcessed', 'link-4');">hasProcessed</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
<a name="L27"></a><tt class="py-lineno">27</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-7" class="py-name"><a title="linspector.lib.core.command.Command.doProcess" class="py-name" href="#" onclick="return doclink('link-7', 'doProcess', 'link-5');">doProcess</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L28"></a><tt class="py-lineno">28</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">error</tt> </tt>
|
||||
</div></div><a name="L29"></a><tt class="py-lineno">29</tt> <tt class="py-line"> </tt><script type="text/javascript">
|
||||
<a name="Command.call"></a><div id="Command.call-def"><a name="L16"></a><tt class="py-lineno">16</tt> <a class="py-toggle" href="#" id="Command.call-toggle" onclick="return toggle('Command.call');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.command.Command-class.html#call">call</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="Command.call-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Command.call-expanded"><a name="L17"></a><tt class="py-lineno">17</tt> <tt class="py-line"> <tt class="py-docstring">'''</tt> </tt>
|
||||
<a name="L18"></a><tt class="py-lineno">18</tt> <tt class="py-line"><tt class="py-docstring"> self.commandStart = dt.now()</tt> </tt>
|
||||
<a name="L19"></a><tt class="py-lineno">19</tt> <tt class="py-line"><tt class="py-docstring"> "called at: "</tt> </tt>
|
||||
<a name="L20"></a><tt class="py-lineno">20</tt> <tt class="py-line"><tt class="py-docstring"> process = sp.Popen(stdout=PIPE, *popenargs, **kwargs)</tt> </tt>
|
||||
<a name="L21"></a><tt class="py-lineno">21</tt> <tt class="py-line"><tt class="py-docstring"> self.output, self.error = process.communicate()</tt> </tt>
|
||||
<a name="L22"></a><tt class="py-lineno">22</tt> <tt class="py-line"><tt class="py-docstring"> self.retcode = process.poll()</tt> </tt>
|
||||
<a name="L23"></a><tt class="py-lineno">23</tt> <tt class="py-line"><tt class="py-docstring"> '''</tt> </tt>
|
||||
<a name="L24"></a><tt class="py-lineno">24</tt> <tt class="py-line"> <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
|
||||
<a name="L25"></a><tt class="py-lineno">25</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-3" class="py-name"><a title="linspector.lib.core.command" class="py-name" href="#" onclick="return doclink('link-3', 'command', 'link-0');">command</a></tt> </tt>
|
||||
<a name="L26"></a><tt class="py-lineno">26</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">output</tt><tt class="py-op">=</tt><tt class="py-name">sp</tt><tt class="py-op">.</tt><tt class="py-name">check_output</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name"><a title="linspector.lib.core.command" class="py-name" href="#" onclick="return doclink('link-4', 'command', 'link-0');">command</a></tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">stderr</tt><tt class="py-op">=</tt><tt class="py-name">sp</tt><tt class="py-op">.</tt><tt class="py-name">STDOUT</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L27"></a><tt class="py-lineno">27</tt> <tt class="py-line"> </tt>
|
||||
<a name="L28"></a><tt class="py-lineno">28</tt> <tt class="py-line"> <tt class="py-keyword">except</tt> <tt class="py-name">CalledProcessError</tt><tt class="py-op">:</tt> </tt>
|
||||
<a name="L29"></a><tt class="py-lineno">29</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">error</tt><tt class="py-op">=</tt><tt class="py-name">CalledProcessError</tt><tt class="py-op">.</tt><tt class="py-name">output</tt> </tt>
|
||||
<a name="L30"></a><tt class="py-lineno">30</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">retcode</tt> <tt class="py-op">=</tt> <tt class="py-name">CalledProcessError</tt><tt class="py-op">.</tt><tt class="py-name">returncode</tt> </tt>
|
||||
</div><a name="L31"></a><tt class="py-lineno">31</tt> <tt class="py-line"> </tt>
|
||||
<a name="Command.getOutput"></a><div id="Command.getOutput-def"><a name="L32"></a><tt class="py-lineno">32</tt> <a class="py-toggle" href="#" id="Command.getOutput-toggle" onclick="return toggle('Command.getOutput');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.command.Command-class.html#getOutput">getOutput</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="Command.getOutput-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Command.getOutput-expanded"><a name="L33"></a><tt class="py-lineno">33</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">output</tt> </tt>
|
||||
</div><a name="L34"></a><tt class="py-lineno">34</tt> <tt class="py-line"> </tt>
|
||||
<a name="Command.getError"></a><div id="Command.getError-def"><a name="L35"></a><tt class="py-lineno">35</tt> <a class="py-toggle" href="#" id="Command.getError-toggle" onclick="return toggle('Command.getError');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.command.Command-class.html#getError">getError</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="Command.getError-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Command.getError-expanded"><a name="L36"></a><tt class="py-lineno">36</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">error</tt> </tt>
|
||||
</div><a name="L37"></a><tt class="py-lineno">37</tt> <tt class="py-line"> </tt>
|
||||
<a name="Command.getReturnCode"></a><div id="Command.getReturnCode-def"><a name="L38"></a><tt class="py-lineno">38</tt> <a class="py-toggle" href="#" id="Command.getReturnCode-toggle" onclick="return toggle('Command.getReturnCode');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.command.Command-class.html#getReturnCode">getReturnCode</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="Command.getReturnCode-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Command.getReturnCode-expanded"><a name="L39"></a><tt class="py-lineno">39</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">retcode</tt> </tt>
|
||||
</div></div><a name="L40"></a><tt class="py-lineno">40</tt> <tt class="py-line"> </tt><script type="text/javascript">
|
||||
<!--
|
||||
expandto(location.href);
|
||||
// -->
|
||||
|
|
@ -119,7 +130,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -115,25 +115,12 @@
|
|||
</td><td class="summary">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><span class="summary-sig"><a name="hasProcessed"></a><span class="summary-sig-name">hasProcessed</span>(<span class="summary-sig-arg">self</span>)</span></td>
|
||||
<td><span class="summary-sig"><a name="call"></a><span class="summary-sig-name">call</span>(<span class="summary-sig-arg">self</span>)</span><br />
|
||||
self.commandStart = dt.now() "called at: " process =
|
||||
sp.Popen(stdout=PIPE, *popenargs, **kwargs) self.output, self.error =
|
||||
process.communicate() self.retcode = process.poll()</td>
|
||||
<td align="right" valign="top">
|
||||
<span class="codelink"><a href="linspector.lib.core.command-pysrc.html#Command.hasProcessed">source code</a></span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="right" valign="top" class="summary">
|
||||
<span class="summary-type"> </span>
|
||||
</td><td class="summary">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><span class="summary-sig"><a name="doProcess"></a><span class="summary-sig-name">doProcess</span>(<span class="summary-sig-arg">self</span>)</span></td>
|
||||
<td align="right" valign="top">
|
||||
<span class="codelink"><a href="linspector.lib.core.command-pysrc.html#Command.doProcess">source code</a></span>
|
||||
<span class="codelink"><a href="linspector.lib.core.command-pysrc.html#Command.call">source code</a></span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -171,6 +158,22 @@
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="right" valign="top" class="summary">
|
||||
<span class="summary-type"> </span>
|
||||
</td><td class="summary">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><span class="summary-sig"><a name="getReturnCode"></a><span class="summary-sig-name">getReturnCode</span>(<span class="summary-sig-arg">self</span>)</span></td>
|
||||
<td align="right" valign="top">
|
||||
<span class="codelink"><a href="linspector.lib.core.command-pysrc.html#Command.getReturnCode">source code</a></span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -200,7 +203,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -225,7 +225,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:17 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
<!-- ==================== MODULE DESCRIPTION ==================== -->
|
||||
<h1 class="epydoc">Module job</h1><p class="nomargin-top"><span class="codelink"><a href="linspector.lib.core.job-pysrc.html">source code</a></span></p>
|
||||
<p>This is what job_function needs as parameter for each job to
|
||||
succesfully execute.</p>
|
||||
successfully execute.</p>
|
||||
|
||||
<!-- ==================== CLASSES ==================== -->
|
||||
<a name="section-Classes"></a>
|
||||
|
|
@ -107,7 +107,7 @@
|
|||
<td width="15%" align="right" valign="top" class="summary">
|
||||
<span class="summary-type"> </span>
|
||||
</td><td class="summary">
|
||||
<a name="__package__"></a><span class="summary-name">__package__</span> = <code title="None">None</code>
|
||||
<a name="__package__"></a><span class="summary-name">__package__</span> = <code title="'linspector.lib.core'"><code class="variable-quote">'</code><code class="variable-string">linspector.lib.core</code><code class="variable-quote">'</code></code>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -137,7 +137,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -59,29 +59,50 @@
|
|||
<h1 class="epydoc">Source Code for <a href="linspector.lib.core.job-module.html">Module linspector.lib.core.job</a></h1>
|
||||
<pre class="py-src">
|
||||
<a name="L1"></a><tt class="py-lineno"> 1</tt> <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
|
||||
<a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"><tt class="py-docstring">This is what job_function needs as parameter for each job to succesfully </tt> </tt>
|
||||
<a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"><tt class="py-docstring">This is what job_function needs as parameter for each job to successfully</tt> </tt>
|
||||
<a name="L3"></a><tt class="py-lineno"> 3</tt> <tt class="py-line"><tt class="py-docstring">execute.</tt> </tt>
|
||||
<a name="L4"></a><tt class="py-lineno"> 4</tt> <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
|
||||
<a name="L5"></a><tt class="py-lineno"> 5</tt> <tt class="py-line"> </tt>
|
||||
<a name="L6"></a><tt class="py-lineno"> 6</tt> <tt class="py-line"> </tt>
|
||||
<a name="JobInfo"></a><div id="JobInfo-def"><a name="L7"></a><tt class="py-lineno"> 7</tt> <a class="py-toggle" href="#" id="JobInfo-toggle" onclick="return toggle('JobInfo');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="linspector.lib.core.job.JobInfo-class.html">JobInfo</a><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="JobInfo-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="JobInfo-expanded"><a name="JobInfo.__init__"></a><div id="JobInfo.__init__-def"><a name="L8"></a><tt class="py-lineno"> 8</tt> <a class="py-toggle" href="#" id="JobInfo.__init__-toggle" onclick="return toggle('JobInfo.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.job.JobInfo-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">hostgroupname</tt><tt class="py-op">,</tt> <tt class="py-param">members</tt><tt class="py-op">,</tt> <tt class="py-param">hosts</tt><tt class="py-op">,</tt> <tt class="py-param">service</tt><tt class="py-op">,</tt> <tt class="py-param">threshold</tt><tt class="py-op">,</tt> <tt class="py-param">parent</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="JobInfo.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="JobInfo.__init__-expanded"><a name="L9"></a><tt class="py-lineno"> 9</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-0" class="py-name" targets="Module linspector.lib.config.members=linspector.lib.config.members-module.html"><a title="linspector.lib.config.members" class="py-name" href="#" onclick="return doclink('link-0', 'members', 'link-0');">members</a></tt> <tt class="py-op">=</tt> <tt id="link-1" class="py-name"><a title="linspector.lib.config.members" class="py-name" href="#" onclick="return doclink('link-1', 'members', 'link-0');">members</a></tt> </tt>
|
||||
<a name="L10"></a><tt class="py-lineno">10</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Module linspector.lib.config.hosts=linspector.lib.config.hosts-module.html"><a title="linspector.lib.config.hosts" class="py-name" href="#" onclick="return doclink('link-2', 'hosts', 'link-2');">hosts</a></tt> <tt class="py-op">=</tt> <tt id="link-3" class="py-name"><a title="linspector.lib.config.hosts" class="py-name" href="#" onclick="return doclink('link-3', 'hosts', 'link-2');">hosts</a></tt> </tt>
|
||||
<a name="L11"></a><tt class="py-lineno">11</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">service</tt> <tt class="py-op">=</tt> <tt class="py-name">service</tt> </tt>
|
||||
<a name="L12"></a><tt class="py-lineno">12</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">threshold</tt> <tt class="py-op">=</tt> <tt class="py-name">threshold</tt> </tt>
|
||||
<a name="L13"></a><tt class="py-lineno">13</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt> <tt class="py-op">=</tt> <tt class="py-name">parent</tt> </tt>
|
||||
<a name="L14"></a><tt class="py-lineno">14</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">name</tt> <tt class="py-op">=</tt> <tt class="py-name">hostgroupname</tt> <tt class="py-op">+</tt> <tt class="py-string">"_"</tt> <tt class="py-op">+</tt> <tt class="py-name">service</tt><tt class="py-op">.</tt><tt class="py-name">name</tt> </tt>
|
||||
</div><a name="L15"></a><tt class="py-lineno">15</tt> <tt class="py-line"> </tt>
|
||||
<a name="JobInfo.__str__"></a><div id="JobInfo.__str__-def"><a name="L16"></a><tt class="py-lineno">16</tt> <a class="py-toggle" href="#" id="JobInfo.__str__-toggle" onclick="return toggle('JobInfo.__str__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.job.JobInfo-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="JobInfo.__str__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="JobInfo.__str__-expanded"><a name="L17"></a><tt class="py-lineno">17</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">name</tt> </tt>
|
||||
<a name="L6"></a><tt class="py-lineno"> 6</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Module linspector.lib.core.command=linspector.lib.core.command-module.html"><a title="linspector.lib.core.command" class="py-name" href="#" onclick="return doclink('link-0', 'command', 'link-0');">command</a></tt> <tt class="py-keyword">import</tt> <tt id="link-1" class="py-name" targets="Class linspector.lib.core.command.Command=linspector.lib.core.command.Command-class.html"><a title="linspector.lib.core.command.Command" class="py-name" href="#" onclick="return doclink('link-1', 'Command', 'link-1');">Command</a></tt> </tt>
|
||||
<a name="L7"></a><tt class="py-lineno"> 7</tt> <tt class="py-line"> </tt>
|
||||
<a name="L8"></a><tt class="py-lineno"> 8</tt> <tt class="py-line"> </tt>
|
||||
<a name="JobInfo"></a><div id="JobInfo-def"><a name="L9"></a><tt class="py-lineno"> 9</tt> <a class="py-toggle" href="#" id="JobInfo-toggle" onclick="return toggle('JobInfo');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="linspector.lib.core.job.JobInfo-class.html">JobInfo</a><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="JobInfo-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="JobInfo-expanded"><a name="JobInfo.__init__"></a><div id="JobInfo.__init__-def"><a name="L10"></a><tt class="py-lineno">10</tt> <a class="py-toggle" href="#" id="JobInfo.__init__-toggle" onclick="return toggle('JobInfo.__init__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.job.JobInfo-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">hostgroupname</tt><tt class="py-op">,</tt> <tt class="py-param">members</tt><tt class="py-op">,</tt> <tt class="py-param">hosts</tt><tt class="py-op">,</tt> <tt class="py-param">service</tt><tt class="py-op">,</tt> <tt class="py-param">threshold</tt><tt class="py-op">,</tt> <tt class="py-param">parent</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="JobInfo.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="JobInfo.__init__-expanded"><a name="L11"></a><tt class="py-lineno">11</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Module linspector.lib.config.members=linspector.lib.config.members-module.html"><a title="linspector.lib.config.members" class="py-name" href="#" onclick="return doclink('link-2', 'members', 'link-2');">members</a></tt> <tt class="py-op">=</tt> <tt id="link-3" class="py-name"><a title="linspector.lib.config.members" class="py-name" href="#" onclick="return doclink('link-3', 'members', 'link-2');">members</a></tt> </tt>
|
||||
<a name="L12"></a><tt class="py-lineno">12</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Module linspector.lib.config.hosts=linspector.lib.config.hosts-module.html"><a title="linspector.lib.config.hosts" class="py-name" href="#" onclick="return doclink('link-4', 'hosts', 'link-4');">hosts</a></tt> <tt class="py-op">=</tt> <tt id="link-5" class="py-name"><a title="linspector.lib.config.hosts" class="py-name" href="#" onclick="return doclink('link-5', 'hosts', 'link-4');">hosts</a></tt> </tt>
|
||||
<a name="L13"></a><tt class="py-lineno">13</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">service</tt> <tt class="py-op">=</tt> <tt class="py-name">service</tt> </tt>
|
||||
<a name="L14"></a><tt class="py-lineno">14</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">threshold</tt> <tt class="py-op">=</tt> <tt class="py-name">threshold</tt> </tt>
|
||||
<a name="L15"></a><tt class="py-lineno">15</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parent</tt> <tt class="py-op">=</tt> <tt class="py-name">parent</tt> </tt>
|
||||
<a name="L16"></a><tt class="py-lineno">16</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">name</tt> <tt class="py-op">=</tt> <tt class="py-name">hostgroupname</tt> <tt class="py-op">+</tt> <tt class="py-string">"_"</tt> <tt class="py-op">+</tt> <tt class="py-name">service</tt><tt class="py-op">.</tt><tt class="py-name">name</tt> </tt>
|
||||
<a name="L17"></a><tt class="py-lineno">17</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">jobs</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
|
||||
</div><a name="L18"></a><tt class="py-lineno">18</tt> <tt class="py-line"> </tt>
|
||||
<a name="JobInfo.setLogger"></a><div id="JobInfo.setLogger-def"><a name="L19"></a><tt class="py-lineno">19</tt> <a class="py-toggle" href="#" id="JobInfo.setLogger-toggle" onclick="return toggle('JobInfo.setLogger');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.job.JobInfo-class.html#setLogger">setLogger</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">log</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="JobInfo.setLogger-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="JobInfo.setLogger-expanded"><a name="L20"></a><tt class="py-lineno">20</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">log</tt> <tt class="py-op">=</tt> <tt class="py-name">log</tt> </tt>
|
||||
<a name="JobInfo.__str__"></a><div id="JobInfo.__str__-def"><a name="L19"></a><tt class="py-lineno">19</tt> <a class="py-toggle" href="#" id="JobInfo.__str__-toggle" onclick="return toggle('JobInfo.__str__');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.job.JobInfo-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="JobInfo.__str__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="JobInfo.__str__-expanded"><a name="L20"></a><tt class="py-lineno">20</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">name</tt> </tt>
|
||||
</div><a name="L21"></a><tt class="py-lineno">21</tt> <tt class="py-line"> </tt>
|
||||
<a name="JobInfo.handleCall"></a><div id="JobInfo.handleCall-def"><a name="L22"></a><tt class="py-lineno">22</tt> <a class="py-toggle" href="#" id="JobInfo.handleCall-toggle" onclick="return toggle('JobInfo.handleCall');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.job.JobInfo-class.html#handleCall">handleCall</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="JobInfo.handleCall-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="JobInfo.handleCall-expanded"><a name="L23"></a><tt class="py-lineno">23</tt> <tt class="py-line"> <tt class="py-keyword">pass</tt> </tt>
|
||||
</div></div><a name="L24"></a><tt class="py-lineno">24</tt> <tt class="py-line"> </tt><script type="text/javascript">
|
||||
<a name="JobInfo.setLogger"></a><div id="JobInfo.setLogger-def"><a name="L22"></a><tt class="py-lineno">22</tt> <a class="py-toggle" href="#" id="JobInfo.setLogger-toggle" onclick="return toggle('JobInfo.setLogger');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.job.JobInfo-class.html#setLogger">setLogger</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">log</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="JobInfo.setLogger-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="JobInfo.setLogger-expanded"><a name="L23"></a><tt class="py-lineno">23</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">log</tt> <tt class="py-op">=</tt> <tt class="py-name">log</tt> </tt>
|
||||
</div><a name="L24"></a><tt class="py-lineno">24</tt> <tt class="py-line"> </tt>
|
||||
<a name="JobInfo.appendJob"></a><div id="JobInfo.appendJob-def"><a name="L25"></a><tt class="py-lineno">25</tt> <a class="py-toggle" href="#" id="JobInfo.appendJob-toggle" onclick="return toggle('JobInfo.appendJob');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.job.JobInfo-class.html#appendJob">appendJob</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">job</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="JobInfo.appendJob-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="JobInfo.appendJob-expanded"><a name="L26"></a><tt class="py-lineno">26</tt> <tt class="py-line"> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">jobs</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-6" class="py-name" targets="Module linspector.lib.core.job=linspector.lib.core.job-module.html"><a title="linspector.lib.core.job" class="py-name" href="#" onclick="return doclink('link-6', 'job', 'link-6');">job</a></tt><tt class="py-op">)</tt> </tt>
|
||||
</div><a name="L27"></a><tt class="py-lineno">27</tt> <tt class="py-line"> </tt>
|
||||
<a name="JobInfo.getNextExecutionTime"></a><div id="JobInfo.getNextExecutionTime-def"><a name="L28"></a><tt class="py-lineno">28</tt> <a class="py-toggle" href="#" id="JobInfo.getNextExecutionTime-toggle" onclick="return toggle('JobInfo.getNextExecutionTime');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.job.JobInfo-class.html#getNextExecutionTime">getNextExecutionTime</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="JobInfo.getNextExecutionTime-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="JobInfo.getNextExecutionTime-expanded"><a name="L29"></a><tt class="py-lineno">29</tt> <tt class="py-line"> <tt class="py-name">nextExecution</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
|
||||
<a name="L30"></a><tt class="py-lineno">30</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt id="link-7" class="py-name"><a title="linspector.lib.core.job" class="py-name" href="#" onclick="return doclink('link-7', 'job', 'link-6');">job</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">jobs</tt><tt class="py-op">:</tt> </tt>
|
||||
<a name="L31"></a><tt class="py-lineno">31</tt> <tt class="py-line"> <tt class="py-name">jobExec</tt> <tt class="py-op">=</tt> <tt id="link-8" class="py-name"><a title="linspector.lib.core.job" class="py-name" href="#" onclick="return doclink('link-8', 'job', 'link-6');">job</a></tt><tt class="py-op">.</tt><tt class="py-name">trigger</tt><tt class="py-op">.</tt><tt class="py-name">get_next_fire_time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
|
||||
<a name="L32"></a><tt class="py-lineno">32</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">nextExecution</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt> <tt class="py-keyword">or</tt> <tt class="py-name">nextExecution</tt> <tt class="py-op">></tt> <tt class="py-name">jobExec</tt><tt class="py-op">:</tt> </tt>
|
||||
<a name="L33"></a><tt class="py-lineno">33</tt> <tt class="py-line"> <tt class="py-name">nextExecution</tt> <tt class="py-op">=</tt> <tt class="py-name">jobExec</tt> </tt>
|
||||
<a name="L34"></a><tt class="py-lineno">34</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">nextExecution</tt> </tt>
|
||||
</div><a name="L35"></a><tt class="py-lineno">35</tt> <tt class="py-line"> </tt>
|
||||
<a name="JobInfo.handleCall"></a><div id="JobInfo.handleCall-def"><a name="L36"></a><tt class="py-lineno">36</tt> <a class="py-toggle" href="#" id="JobInfo.handleCall-toggle" onclick="return toggle('JobInfo.handleCall');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="linspector.lib.core.job.JobInfo-class.html#handleCall">handleCall</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
|
||||
</div><div id="JobInfo.handleCall-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="JobInfo.handleCall-expanded"><a name="L37"></a><tt class="py-lineno">37</tt> <tt class="py-line"> <tt class="py-keyword">print</tt> <tt class="py-string">"about to call command "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">service</tt><tt class="py-op">.</tt><tt id="link-9" class="py-name"><a title="linspector.lib.core.command" class="py-name" href="#" onclick="return doclink('link-9', 'command', 'link-0');">command</a></tt><tt class="py-op">)</tt> </tt>
|
||||
</div></div><a name="L38"></a><tt class="py-lineno">38</tt> <tt class="py-line"> <tt class="py-comment">#must find real service command stored in hosts...</tt> </tt>
|
||||
<a name="L39"></a><tt class="py-lineno">39</tt> <tt class="py-line"> <tt class="py-comment">#but because of error, mentioned in NOTES,ruff, there is no ping i.e.</tt> </tt>
|
||||
<a name="L40"></a><tt class="py-lineno">40</tt> <tt class="py-line"> </tt>
|
||||
<a name="L41"></a><tt class="py-lineno">41</tt> <tt class="py-line"> <tt class="py-comment">#cmd = Command(service.command)</tt> </tt>
|
||||
<a name="L42"></a><tt class="py-lineno">42</tt> <tt class="py-line"> <tt class="py-comment">#self.log.d("executing command: " + str(command))</tt> </tt>
|
||||
<a name="L43"></a><tt class="py-lineno">43</tt> <tt class="py-line"> <tt class="py-comment">#cmd.call()</tt> </tt>
|
||||
<a name="L44"></a><tt class="py-lineno">44</tt> <tt class="py-line"> <tt class="py-comment">#return cmd</tt> </tt>
|
||||
<a name="L45"></a><tt class="py-lineno">45</tt> <tt class="py-line"> </tt><script type="text/javascript">
|
||||
<!--
|
||||
expandto(location.href);
|
||||
// -->
|
||||
|
|
@ -114,7 +135,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -129,6 +129,39 @@
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="right" valign="top" class="summary">
|
||||
<span class="summary-type"> </span>
|
||||
</td><td class="summary">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><span class="summary-sig"><a name="appendJob"></a><span class="summary-sig-name">appendJob</span>(<span class="summary-sig-arg">self</span>,
|
||||
<span class="summary-sig-arg">job</span>)</span></td>
|
||||
<td align="right" valign="top">
|
||||
<span class="codelink"><a href="linspector.lib.core.job-pysrc.html#JobInfo.appendJob">source code</a></span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" align="right" valign="top" class="summary">
|
||||
<span class="summary-type"> </span>
|
||||
</td><td class="summary">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td><span class="summary-sig"><a name="getNextExecutionTime"></a><span class="summary-sig-name">getNextExecutionTime</span>(<span class="summary-sig-arg">self</span>)</span></td>
|
||||
<td align="right" valign="top">
|
||||
<span class="codelink"><a href="linspector.lib.core.job-pysrc.html#JobInfo.getNextExecutionTime">source code</a></span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -174,7 +207,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ expandto(location.href);
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:37 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@
|
|||
<li> <strong class="uidlink"><a href="linspector.lib.core.command-module.html">linspector.lib.core.command</a></strong> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.daemon-module.html">linspector.lib.core.daemon</a></strong> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.job-module.html">linspector.lib.core.job</a></strong>: <em class="summary">This is what job_function needs as parameter for each job to
|
||||
succesfully execute.</em> </li>
|
||||
successfully execute.</em> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.linspector_daemon-module.html">linspector.lib.core.linspector_daemon</a></strong> </li>
|
||||
<li> <strong class="uidlink"><a href="linspector.lib.core.logger-module.html">linspector.lib.core.logger</a></strong> </li>
|
||||
</ul>
|
||||
|
|
@ -112,7 +112,7 @@
|
|||
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
||||
<tr>
|
||||
<td align="left" class="footer">
|
||||
Generated by Epydoc 3.0.1 on Mon May 27 03:53:16 2013
|
||||
Generated by Epydoc 3.0.1 on Wed May 29 06:07:36 2013
|
||||
</td>
|
||||
<td align="right" class="footer">
|
||||
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue