Commit a7e72cd2 authored by 's avatar

fixup CM dtml

parent 87629023
......@@ -230,7 +230,7 @@ class AcceleratedHTTPCacheManager (CacheManager, SimpleItem):
' '
return self._settings.copy() # Don't let DTML modify it.
manage_main = HTMLFile('propsAccel', globals())
manage_main = HTMLFile('dtml/propsAccel', globals())
def manage_editProps(self, title, settings=None, REQUEST=None):
' '
......@@ -247,7 +247,7 @@ class AcceleratedHTTPCacheManager (CacheManager, SimpleItem):
return self.manage_main(
self, REQUEST, manage_tabs_message='Properties changed.')
manage_stats = HTMLFile('statsAccel', globals())
manage_stats = HTMLFile('dtml/statsAccel', globals())
def _getSortInfo(self):
"""
......@@ -295,7 +295,8 @@ class AcceleratedHTTPCacheManager (CacheManager, SimpleItem):
Globals.default__class_init__(AcceleratedHTTPCacheManager)
manage_addAcceleratedHTTPCacheManagerForm = HTMLFile('addAccel', globals())
manage_addAcceleratedHTTPCacheManagerForm = HTMLFile('dtml/addAccel',
globals())
def manage_addAcceleratedHTTPCacheManager(self, id, REQUEST=None):
' '
......
......@@ -412,7 +412,7 @@ class RAMCacheManager (CacheManager, SimpleItem):
'Returns the current cache settings.'
return self._settings.copy()
manage_main = HTMLFile('propsRCM', globals())
manage_main = HTMLFile('dtml/propsRCM', globals())
def manage_editProps(self, title, settings=None, REQUEST=None):
'Changes the cache settings.'
......@@ -431,7 +431,7 @@ class RAMCacheManager (CacheManager, SimpleItem):
return self.manage_main(
self, REQUEST, manage_tabs_message='Properties changed.')
manage_stats = HTMLFile('statsRCM', globals())
manage_stats = HTMLFile('dtml/statsRCM', globals())
def _getSortInfo(self):
"""
......@@ -473,7 +473,7 @@ class RAMCacheManager (CacheManager, SimpleItem):
Globals.default__class_init__(RAMCacheManager)
manage_addRAMCacheManagerForm = HTMLFile('addRCM', globals())
manage_addRAMCacheManagerForm = HTMLFile('dtml/addRCM', globals())
def manage_addRAMCacheManager(self, id, REQUEST=None):
'Adds a RAM cache manager to the folder.'
......
<html><head><title>Add Accelerated HTTP Cache Manager</title></head>
<body bgcolor="#ffffff">
<h2>Add Accelerated HTTP Cache Manager</h2>
<form action="manage_addAcceleratedHTTPCacheManager" method="POST">
<table>
<tr>
<th>Id</th>
<td><input type="text" name="id"></td>
</tr>
</table>
<input type="submit" name="submit" value="Add">
</form>
</body>
</html>
<html><head><title>Add RAM Cache Manager</title></head>
<body bgcolor="#ffffff">
<h2>Add RAM Cache Manager</h2>
<form action="manage_addRAMCacheManager" method="POST">
<table>
<tr>
<th>Id</th>
<td><input type="text" name="id"></td>
</tr>
</table>
<input type="submit" name="submit" value="Add">
</form>
</body>
</html>
<dtml-var manage_page_header>
<dtml-var "manage_form_title(this(), _,
form_title='Add Accelerated HTTP Cache Manager',
)">
<form action="manage_addAcceleratedHTTPCacheManager" method="POST">
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="left" valign="top">
<div class="form-label">
Id
</div>
</td>
<td align="left" valign="top">
<input type="text" name="id" size="40" />
</td>
</tr>
<tr>
<td align="left" valign="top">
</td>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit" name="submit"
value=" Add " />
</div>
</td>
</tr>
</table>
</form>
<dtml-var manage_page_footer>
<dtml-var manage_page_header>
<dtml-var "manage_form_title(this(), _,
form_title='Add RAM Cache Manager',
)">
<form action="manage_addRAMCacheManager" method="POST">
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="left" valign="top">
<div class="form-label">
Id
</div>
</td>
<td align="left" valign="top">
<input type="text" name="id" size="40" />
</td>
</tr>
<tr>
<td align="left" valign="top">
</td>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit" name="submit"
value=" Add " />
</div>
</td>
</tr>
</table>
</form>
<dtml-var manage_page_footer>
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<form action="manage_editProps" method="POST">
<dtml-with getSettings mapping>
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="left" valign="top">
<div class="form-optional">
Title
</div>
</td>
<td align="left" valign="top">
<input type="text" name="title" size="40"
value="&dtml-title;" />
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Interval (seconds)
</div>
</td>
<td align="left" valign="top">
<input type="text" name="interval" size="40"
value="&dtml-interval;" />
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Cache anonymous <br />connections only?
</div>
</td>
<td align="left" valign="top">
<input type="checkbox" name="anonymous_only" value="1"<dtml-if
anonymous_only> checked="checked"</dtml-if> />
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Notify URLs (via PURGE)
</div>
</td>
<td align="left" valign="top">
<textarea name="notify_urls:lines" rows="5" cols="30"><dtml-in
notify_urls>&dtml-sequence-item;</dtml-in></textarea>
</td>
</tr>
<tr>
<td align="left" valign="top">
</td>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit" name="submit"
value="Save Changes" />
</div>
</td>
</tr>
</table>
</dtml-with>
</form>
<dtml-var manage_page_footer>
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<form action="manage_editProps" method="POST">
<dtml-with getSettings mapping>
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="left" valign="top">
<div class="form-optional">
Title
</div>
</td>
<td align="left" valign="top">
<input type="text" name="title" size="40"
value="&dtml-title;" />
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
REQUEST Variables
</div>
</td>
<td align="left" valign="top">
<textarea name="request_vars:lines" rows="5" cols="30"><dtml-in
request_vars>&dtml-sequence-item;</dtml-in></textarea>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Threshold Entries
</div>
</td>
<td align="left" valign="top">
<input type="text" name="threshold" size="40"
value="&dtml-threshold;" />
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Cleanup Interval (Seconds)
</div>
</td>
<td align="left" valign="top">
<input type="text" name="cleanup_interval" size="40"
value="&dtml-cleanup_interval;" />
</td>
</tr>
<tr>
<td align="left" valign="top">
</td>
<td align="left" valign="top">
<div class="form-element">
<input class="form-element" type="submit" name="submit"
value="Save Changes" />
</div>
</td>
</tr>
</table>
</dtml-with>
</form>
<dtml-var manage_page_footer>
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<p class="form-help">
Cache manager hits generally correspond to HTTP accelerator misses.
A hit is counted in the "authenticated hits" column even if headers
are only set for anonymous requests.
</p>
<dtml-if getCacheReport>
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr class="list-header">
<td align="left" valign="top">
<div class="list-nav">
<dtml-var expr="sort_link('Path', 'path')">
</div>
</td>
<td align="left" valign="top">
<div class="list-nav">
<dtml-var expr="sort_link('Anonymous hits', 'anon')">
</div>
</td>
<td align="left" valign="top">
<div class="list-nav">
<dtml-var expr="sort_link('Authenticated hits', 'auth')">
</div>
</td>
</tr>
<dtml-in getCacheReport mapping>
<dtml-if sequence-odd>
<tr class="row-normal">
<dtml-else>
<tr class="row-hilite">
</dtml-if>
<td align="left" valign="top">
<div class="list-item">
<a href="&dtml-path;/ZCacheable_manage">&dtml-path;</a>
</div>
</td>
<td align="left" valign="top">
<div class="list-item">
&dtml-anon;
</div>
</td>
<td align="left" valign="top">
<div class="list-item">
&dtml-auth;
</div>
</td>
</tr>
</dtml-in>
</table>
<dtml-else>
<p class="form-text">
<strong>Nothing is in the cache.</strong>
</p>
</dtml-if>
<dtml-var manage_page_footer>
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<p class="form-help">
Memory usage is approximate. It is based on the pickled value of the
cached data. The cache is cleaned up by removing the least frequently
accessed entries since the last cleanup operation. The determination
is made using the <em>recent hits</em> counter.
</p>
<dtml-if getCacheReport>
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr class="list-header">
<td align="left" valign="top">
<div class="list-nav">
<dtml-var expr="sort_link('Path', 'path')">
</div>
</td>
<td align="left" valign="top">
<div class="list-nav">
<dtml-var expr="sort_link('Hits', 'hits')">
</div>
</td>
<td align="left" valign="top">
<div class="list-nav">
<dtml-var expr="sort_link('Recent Hits', 'counter')">
</div>
</td>
<td align="left" valign="top">
<div class="list-nav">
<dtml-var expr="sort_link('Misses', 'misses')">
</div>
</td>
<td align="left" valign="top">
<div class="list-nav">
<dtml-var expr="sort_link('Memory', 'size')">
</div>
</td>
<td align="left" valign="top">
<div class="list-nav">
<dtml-var expr="sort_link('Views', 'views')">
</div>
</td>
<td align="left" valign="top">
<div class="list-nav">
<dtml-var expr="sort_link('Entries', 'entries')">
</div>
</td>
</tr>
<dtml-in getCacheReport mapping>
<dtml-if sequence-odd>
<tr class="row-normal">
<dtml-else>
<tr class="row-hilite">
</dtml-if>
<td align="left" valign="top">
<div class="list-item">
<a href="&dtml-path;/ZCacheable_manage">&dtml-path;</a>
</div>
</td>
<td align="left" valign="top">
<div class="list-item">
&dtml-hits;
</div>
</td>
<td align="left" valign="top">
<div class="list-item">
&dtml-counter;
</div>
</td>
<td align="left" valign="top">
<div class="list-item">
&dtml-misses;
</div>
</td>
<td align="left" valign="top">
<div class="list-item">
&dtml-size;
</div>
</td>
<td align="left" valign="top">
<div class="list-item">
<dtml-var expr="_.string.join(views, ', ')" html_quote>
</div>
</td>
<td align="left" valign="top">
<div class="list-item">
&dtml-entries;
</div>
</td>
</dtml-in>
</table>
<dtml-else>
<p class="form-text">
<strong>Nothing is in the cache.</strong>
</p>
</dtml-if>
<dtml-var manage_page_footer>
<html><head><title>Accelerated HTTP Cache Manager properties</title></head>
<body bgcolor="#ffffff">
<dtml-var manage_tabs>
<h2>Properties</h2>
<form action="manage_editProps" method="POST">
<dtml-with getSettings mapping>
<table>
<tr>
<th valign="top" align="left">Id</th>
<td>&dtml-id;</td>
</tr>
<tr>
<th valign="top" align="left">Title</th>
<td><input type="text" name="title" value="&dtml-title;"></td>
</tr>
<tr>
<th valign="top" align="left">Interval (seconds)</th>
<td><input type="text" name="interval"
value="&dtml-interval;"></td>
</tr>
<tr>
<th valign="top" align="left">Cache anonymous connections only</th>
<td><input type="checkbox" name="anonymous_only" value="1"
<dtml-if anonymous_only>checked="checked"</dtml-if>></td>
</tr>
<tr>
<th valign="top" align="left">Notify URLs (via PURGE)</th>
<td><textarea name="notify_urls:lines" rows="5" cols="30"
><dtml-in notify_urls>&dtml-sequence-item;
</dtml-in></textarea></td>
</tr>
</table>
</dtml-with>
<input type="submit" name="submit" value="Save">
</form>
</body>
</html>
<html><head><title>RAMCacheManager properties</title></head>
<body bgcolor="#ffffff">
<dtml-var manage_tabs>
<h2>Properties</h2>
<form action="manage_editProps" method="POST">
<dtml-with getSettings mapping>
<table>
<tr>
<th valign="top" align="left">Id</th>
<td>&dtml-id;</td>
</tr>
<tr>
<th valign="top" align="left">Title</th>
<td><input type="text" name="title" value="&dtml-title;"></td>
</tr>
<tr>
<th valign="top" align="left">REQUEST variables</th>
<td><textarea name="request_vars:lines" rows="5" cols="30"><dtml-in
request_vars>&dtml-sequence-item;
</dtml-in></textarea></td>
</tr>
<tr>
<th valign="top" align="left">Threshold entries</th>
<td><input type="text" name="threshold"
value="&dtml-threshold;"></td>
</tr>
<tr>
<th valign="top" align="left">Cleanup interval (seconds)</th>
<td><input type="text" name="cleanup_interval"
value="&dtml-cleanup_interval;"></td>
</tr>
</table>
</dtml-with>
<input type="submit" name="submit" value="Save">
</form>
</body>
</html>
<html><head><title>AcceleratedHTTPCacheManager statistics</title></head>
<body bgcolor="#ffffff">
<dtml-var manage_tabs>
<h2>Statistics</h2>
<table>
<tr>
<td><dtml-var expr="sort_link('Path', 'path')"></td>
<td><dtml-var expr="sort_link('Anonymous hits', 'anon')"></td>
<td><dtml-var expr="sort_link('Authenticated hits', 'auth')"></td>
</tr>
<dtml-in getCacheReport mapping>
<tr>
<td><a href="&dtml-path;/ZCacheable_manage">&dtml-path;</a></td>
<td>&dtml-anon;</td>
<td>&dtml-auth;</td>
</tr>
<dtml-else>
<tr><td colspan="3"><i>Nothing is in the cache.</i></td></tr>
</dtml-in>
</table>
<p><i>Notes</i></p>
<ul>
<li>Cache manager hits generally correspond to HTTP accelerator misses.</li>
<li>A hit is counted in the "authenticated hits" column even if
headers are only set for anonymous requests.</li>
</ul>
</body>
</html>
<html><head><title>RAMCacheManager statistics</title></head>
<body bgcolor="#ffffff">
<dtml-var manage_tabs>
<h2>Statistics</h2>
<table>
<tr>
<td><dtml-var expr="sort_link('Path', 'path')"></td>
<td><dtml-var expr="sort_link('Hits', 'hits')"></td>
<td><dtml-var expr="sort_link('Recent hits', 'counter')"></td>
<td><dtml-var expr="sort_link('Misses', 'misses')"></td>
<td><dtml-var expr="sort_link('Memory', 'size')"></td>
<td><dtml-var expr="sort_link('Views', 'views')"></td>
<td><dtml-var expr="sort_link('Entries', 'entries')"></td>
</tr>
<dtml-in getCacheReport mapping>
<tr>
<td><a href="&dtml-path;/ZCacheable_manage">&dtml-path;</a></td>
<td>&dtml-hits;</td>
<td>&dtml-counter;</td>
<td>&dtml-misses;</td>
<td>&dtml-size;</td>
<td><dtml-var expr="_.string.join(views, ', ')" html_quote></td>
<td>&dtml-entries;</td>
</tr>
<dtml-else>
<tr><td colspan="7"><i>Nothing is in the cache.</i></td></tr>
</dtml-in>
</table>
<ul>
<li>Memory usage is approximate. It is based on the pickled value of the
cached data.</li>
<li>The cache is cleaned up by removing the least frequently accessed
entries since the last cleanup operation. The determination is made using
the <i>Recent hits</i> counter.</li>
</ul>
</body>
</html>
StandardCacheManagers-0-1
StandardCacheManagers-1-0-0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment