[Zope-CVS] CVS: Products/FileCacheManager/www - statsFCM.zpt:1.1

Chris McDonough chrism at plope.com
Sun Aug 29 16:50:30 EDT 2004


Update of /cvs-repository/Products/FileCacheManager/www
In directory cvs.zope.org:/tmp/cvs-serv20167/www

Added Files:
	statsFCM.zpt 
Log Message:
Add simple statistics tracking.


=== Added File Products/FileCacheManager/www/statsFCM.zpt ===
<h1 tal:replace="structure here/manage_page_header">Header</h1>
<h1 tal:define="management_view string:File System;
                manage_tabs_message request/manage_tabs_message|options/manage_tabs_message|nothing"
    tal:replace="structure here/manage_tabs">
  Form Title Bar
</h1>

<p class="form-help">
The chart shows the items cached in this file cache manager <b>that have been
recently accessed</b> (there are likely additional items that have been cached
that are not present on this page because they haven't been accessed since
the last time the server was started).  The <em>Path</em>
is the physical path of the object that is cached, the <em>File Path</em> is
the disk file path of the cache, the <em>Size</em> is the size in bytes of
the cached content, and <em>Hits</em> is the number of times the object
has been successfully retrieved from cache during this server process'
lifetime.
</p>

<div tal:define="global report here/getCacheReport" tal:omit-tag="">

<table width="100%" cellspacing="0" cellpadding="2" border="0"
       tal:condition="report">

<tr class="list-header">

  <td align="left" valign="top">
  <div class="list-nav" tal:content="structure python: here.sort_link('Path', 'path')">
   Path
  </div>
  </td>

  <td align="left" valign="top">
  <div class="list-nav" tal:content="structure python: here.sort_link('File Path', 'fpath')">
   Hits
  </div>
  </td>

  <td align="left" valign="top">
  <div class="list-nav" tal:content="structure python: here.sort_link('Size', 'size')">
   Size
  </div>
  </td>

  <td align="left" valign="top">
  <div class="list-nav" tal:content="structure python: here.sort_link('Hits', 'hits')">
  </div>
  </td>

</tr>

<tal:block repeat="item report">
  <tr class="row-normal"
      tal:attributes="class python: test(repeat['item'].even,'row-normal','row-hilite')">

  <td align="left" valign="top">
  <div class="list-item">
  <a href="ZCacheable_manage" tal:attributes="href string:${item/path}/ZCacheable_manage"
     tal:content="item/path">Path</a>
  </div>
  </td>

  <td align="left" valign="top">
  <div class="list-item" tal:content="item/fpath">
   File Path
  </div>
  </td>

  <td align="left" valign="top">
  <div class="list-item" tal:content="item/size">
   Size
  </div>
  </td>

  <td align="left" valign="top">
  <div class="list-item" tal:content="item/hits">
   Hits
  </div>
  </td>

  </tr>

</tal:block>

</table>

</div>

<span tal:condition="not: report">
<p class="form-text">
<strong>Nothing is in the cache.</strong>
</p>
</span>

<h1 tal:replace="structure here/manage_page_footer">Footer</h1>



More information about the Zope-CVS mailing list