Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
a7e72cd2
Commit
a7e72cd2
authored
Jan 09, 2001
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup CM dtml
parent
87629023
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
362 additions
and
174 deletions
+362
-174
lib/python/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py
...ucts/StandardCacheManagers/AcceleratedHTTPCacheManager.py
+4
-3
lib/python/Products/StandardCacheManagers/RAMCacheManager.py
lib/python/Products/StandardCacheManagers/RAMCacheManager.py
+3
-3
lib/python/Products/StandardCacheManagers/addAccel.dtml
lib/python/Products/StandardCacheManagers/addAccel.dtml
+0
-14
lib/python/Products/StandardCacheManagers/addRCM.dtml
lib/python/Products/StandardCacheManagers/addRCM.dtml
+0
-14
lib/python/Products/StandardCacheManagers/dtml/addAccel.dtml
lib/python/Products/StandardCacheManagers/dtml/addAccel.dtml
+31
-0
lib/python/Products/StandardCacheManagers/dtml/addRCM.dtml
lib/python/Products/StandardCacheManagers/dtml/addRCM.dtml
+31
-0
lib/python/Products/StandardCacheManagers/dtml/propsAccel.dtml
...ython/Products/StandardCacheManagers/dtml/propsAccel.dtml
+65
-0
lib/python/Products/StandardCacheManagers/dtml/propsRCM.dtml
lib/python/Products/StandardCacheManagers/dtml/propsRCM.dtml
+66
-0
lib/python/Products/StandardCacheManagers/dtml/statsAccel.dtml
...ython/Products/StandardCacheManagers/dtml/statsAccel.dtml
+61
-0
lib/python/Products/StandardCacheManagers/dtml/statsRCM.dtml
lib/python/Products/StandardCacheManagers/dtml/statsRCM.dtml
+100
-0
lib/python/Products/StandardCacheManagers/propsAccel.dtml
lib/python/Products/StandardCacheManagers/propsAccel.dtml
+0
-37
lib/python/Products/StandardCacheManagers/propsRCM.dtml
lib/python/Products/StandardCacheManagers/propsRCM.dtml
+0
-37
lib/python/Products/StandardCacheManagers/statsAccel.dtml
lib/python/Products/StandardCacheManagers/statsAccel.dtml
+0
-28
lib/python/Products/StandardCacheManagers/statsRCM.dtml
lib/python/Products/StandardCacheManagers/statsRCM.dtml
+0
-37
lib/python/Products/StandardCacheManagers/version.txt
lib/python/Products/StandardCacheManagers/version.txt
+1
-1
No files found.
lib/python/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py
View file @
a7e72cd2
...
...
@@ -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
):
' '
...
...
lib/python/Products/StandardCacheManagers/RAMCacheManager.py
View file @
a7e72cd2
...
...
@@ -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.'
...
...
lib/python/Products/StandardCacheManagers/addAccel.dtml
deleted
100644 → 0
View file @
87629023
<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>
lib/python/Products/StandardCacheManagers/addRCM.dtml
deleted
100644 → 0
View file @
87629023
<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>
lib/python/Products/StandardCacheManagers/dtml/addAccel.dtml
0 → 100644
View file @
a7e72cd2
<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>
lib/python/Products/StandardCacheManagers/dtml/addRCM.dtml
0 → 100644
View file @
a7e72cd2
<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>
lib/python/Products/StandardCacheManagers/dtml/propsAccel.dtml
0 → 100644
View file @
a7e72cd2
<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>
lib/python/Products/StandardCacheManagers/dtml/propsRCM.dtml
0 → 100644
View file @
a7e72cd2
<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>
lib/python/Products/StandardCacheManagers/dtml/statsAccel.dtml
0 → 100644
View file @
a7e72cd2
<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>
lib/python/Products/StandardCacheManagers/dtml/statsRCM.dtml
0 → 100644
View file @
a7e72cd2
<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>
lib/python/Products/StandardCacheManagers/propsAccel.dtml
deleted
100644 → 0
View file @
87629023
<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>
lib/python/Products/StandardCacheManagers/propsRCM.dtml
deleted
100644 → 0
View file @
87629023
<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>
lib/python/Products/StandardCacheManagers/statsAccel.dtml
deleted
100644 → 0
View file @
87629023
<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>
lib/python/Products/StandardCacheManagers/statsRCM.dtml
deleted
100644 → 0
View file @
87629023
<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>
lib/python/Products/StandardCacheManagers/version.txt
View file @
a7e72cd2
StandardCacheManagers-
0-1
StandardCacheManagers-
1-0-0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment