Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
222 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<p class="form-text"> | ||
Names from the DTML namespace to use as cache keys: | ||
</p> | ||
<textarea name="keys:lines" cols="40" rows="5"><dtml-in | ||
getCacheNamespaceKeys>&dtml-sequence-item; | ||
</dtml-in></textarea> | ||
<br> | ||
<div class="form-element"> | ||
<input class="form-element" type="submit" | ||
name="setCacheNamespaceKeys:method" value="Save Changes"> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<dtml-var manage_page_header> | ||
<dtml-var manage_tabs> | ||
|
||
<form action="&dtml-absolute_url;" method="POST"> | ||
|
||
<div class="form-element"> | ||
<span class="form-label"> | ||
Cache this object using: | ||
</span> | ||
|
||
<select name="manager_id"> | ||
<option value="">(None)</option> | ||
<dtml-in ZCacheable_getManagerIds mapping> | ||
<option value="&dtml-id;" <dtml-if | ||
expr="id == ZCacheable_getManagerId()" | ||
>selected="selected"</dtml-if>>&dtml-id; | ||
<dtml-if title>(&dtml-title;)</dtml-if></option> | ||
</dtml-in> | ||
</select> | ||
<br /> | ||
<input class="form-element" type="submit" | ||
name="ZCacheable_setManagerId:method" value="Save Changes"> | ||
</div> | ||
|
||
<dtml-if ZCacheable_getManagerURL> | ||
<p class="form-text"> | ||
<a href="&dtml-ZCacheable_getManagerURL;/manage_main">Cache Settings</a> | ||
</p> | ||
|
||
<div class="form-element"> | ||
<input class="form-element" type="submit" | ||
name="ZCacheable_invalidate:method" value="Invalidate"> | ||
</div> | ||
</dtml-if> | ||
|
||
<dtml-var ZCacheable_configHTML> | ||
|
||
</form> | ||
|
||
<dtml-var manage_page_footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
<dtml-var manage_page_header> | ||
<dtml-var manage_tabs> | ||
|
||
<form action="&dtml-URL1;" name="objectItems" method="POST"> | ||
|
||
<dtml-if show_results> | ||
<dtml-if results> | ||
<p class="form-help"> | ||
Select which objects should be cached using this cache manager. Only | ||
those objects for which you have the "Change cache settings" permission | ||
are shown. | ||
</p> | ||
|
||
<table width="100%" cellspacing="0" cellpadding="2" border="0"> | ||
<dtml-in results mapping sort=sortkey> | ||
<dtml-if sequence-odd> | ||
<tr class="row-normal"> | ||
<dtml-else> | ||
<tr class="row-hilite"> | ||
</dtml-if> | ||
<td align="left" valign="top"> | ||
<input type="checkbox" name="associate_&dtml-path;:int" value="1"<dtml-if | ||
associated> checked="checked"</dtml-if>> | ||
<input type="hidden" name="associate_&dtml-path;:int:default" value="0"> | ||
</td> | ||
<td align="left" valign="top"> | ||
<div class="form-text"> | ||
<a href="../&dtml-path;/manage_main">&dtml-path;</a><dtml-if | ||
title>(&dtml-title;)</dtml-if> | ||
</div> | ||
</td> | ||
</tr> | ||
</dtml-in> | ||
<tr> | ||
<td></td> | ||
<td align="left" valign="top"> | ||
<div class="form-element"> | ||
<input type="submit" name="ZCacheManager_setAssociations:method" | ||
value="Save Changes"> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</form> | ||
|
||
<dtml-else> | ||
<p class="form-text"> | ||
No objects matched your query. | ||
</p> | ||
</dtml-if> | ||
<hr> | ||
</dtml-if> | ||
|
||
<form target="&dtml-URL1;" method="post"> | ||
<table cellspacing="0" cellpadding="2" border="0"> | ||
<tr> | ||
<td align="left" valign="top"> | ||
<div class="form-label"> | ||
Locate cacheable objects: | ||
</div> | ||
</td> | ||
<td align="left" valign="top"> | ||
<div class="form-text"> | ||
<input type="radio" name="require_assoc:int" value="0" | ||
checked="checked"> All | ||
<input type="radio" name="require_assoc:int" value="1"> | ||
Associated with this cache manager | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td align="left" valign="top"> | ||
<div class="form-label"> | ||
Of the type(s): | ||
</div> | ||
</td> | ||
<td align="left" valign="top"> | ||
<div class="form-element"> | ||
<select multiple="multiple" name="meta_types:list" size="5"> | ||
<option value="" selected>All</option> | ||
<dtml-in all_meta_types mapping sort=name> | ||
<option value="&dtml-name;">&dtml-name;</option> | ||
</dtml-in> | ||
</select> | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td align="left" valign="top"> | ||
</td> | ||
<td align="left" valign="top"> | ||
<div class="form-text"> | ||
<input type="checkbox" name="subfolders:int" value="1" checked="checked"> | ||
<input type="hidden" name="subfolders:int" value="0"> | ||
Search subfolders | ||
</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td align="left" valign="top"> | ||
</td> | ||
<td align="left" valign="top"> | ||
<div class="form-element"> | ||
<br> | ||
<input type="submit" name="ZCacheManager_locate:method" value="Locate"> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</form> | ||
|
||
<dtml-var manage_page_footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ def aputrequest(file, content_type): | |
|
||
|
||
class DummyCache(object): | ||
|
||
def __init__(self): | ||
self.clear() | ||
|
||
|