[Zope-CVS] CVS: Packages/zasync/www - controlAsynchronousCallManagerForm.zpt:1.1

Gary Poster gary at zope.com
Thu Oct 14 12:35:04 EDT 2004


Update of /cvs-repository/Packages/zasync/www
In directory cvs.zope.org:/tmp/cvs-serv22088/www

Added Files:
	controlAsynchronousCallManagerForm.zpt 
Log Message:
Add an overview tab that includes information on the plugins and allows you to ping the zasync client to see if it is active.



=== Added File Packages/zasync/www/controlAsynchronousCallManagerForm.zpt ===
<tal:block replace="structure here/manage_page_header">Header</tal:block>
<tal:block replace="structure here/manage_tabs">Tabs</tal:block>

<p class="form-help">The asynchronous call manager is a
tool that enables a client thread, such as a thread handling a Zope request,
to request that a task be performed asynchronously.  The current version of
this product relies on a ZEO client process that 
could be running on another machine to perform the asynchronous tasks.</p>
<h2>Ping Client</h2>
<p class="form-help">The best way to confirm the status of the zasync client
is to look at the client's log (usually on the file system in 
[installation]/var/zope/log/zasync.log, or similar).  However, you can also 
ping the 
zasync client by clicking the button below.  If the zasync client is active,
you should see a response if you refresh the page after the current poll
interval (<span tal:replace="here/poll_interval"/> seconds) plus a few extra 
seconds,
at most (a bit longer if the client is just starting up).</p>
<tal:block tal:define="ping here/getLastPing;pong here/getLastPong">
<form tal:condition="python: pong or not ping"
  action="ping" method="post"><input type="submit" value="PING" /></form>
<ul>
  <li>Last ping: <strong tal:condition="not: ping">never</strong>
  <strong tal:condition="ping" tal:content="ping/isoformat">datetime</strong>
  </li>
  <li>Last pong (response from zasync): 
    <span tal:condition="not: pong"><strong
      tal:attributes="style python: ping and 'color:red'">not yet</strong>
      <span tal:condition="ping">(<a href="" 
      tal:attributes="href string:${here/absolute_url}/manage_overview">
      refresh to check again</a>)</span></span>
    <strong tal:condition="pong" tal:content="pong/isoformat"
      style="color:green">datetime</strong>
  </li>
</ul>
</tal:block>
<h2>Available Plugins</h2>
<tal:block tal:define="plugins here/listPlugins; names plugins/keys">
<p class="form-help">
The helper process provides plugins that determine what calls can be made.
<span tal:condition="names">The following plugins were available at the time
this page was rendered.</span>
</p>
<dl tal:condition="names">
  <tal:block repeat="name names">
    <dt tal:content="name">plugin name</dt>
    <dd><pre tal:content="python: plugins[name]">plugin description</pre></dd>
  </tal:block>
</dl>
<p class="form-help" tal:condition="not: names">
<strong>The helper has not declared any plugins.  This means that the 
asynchronous call manager cannot perform any useful tasks.  It also typically
means that the zasync helper (the ZEO client) is not active.</strong></p>
</tal:block>
<tal:block replace="structure here/manage_page_footer">Footer</tal:block>



More information about the Zope-CVS mailing list