[Zope-CVS] CVS: Products/RecentItemsIndex/www - addIndex.dtml:1.2
manageIndex.dtml:1.2
Casey Duncan
casey at zope.com
Mon Jul 19 17:16:56 EDT 2004
Update of /cvs-repository/Products/RecentItemsIndex/www
In directory cvs.zope.org:/tmp/cvs-serv15367/www
Modified Files:
addIndex.dtml manageIndex.dtml
Log Message:
Add role/permission guard functionality to pre-filter index objects
=== Products/RecentItemsIndex/www/addIndex.dtml 1.1.1.1 => 1.2 ===
--- Products/RecentItemsIndex/www/addIndex.dtml:1.1.1.1 Mon Jul 19 13:46:21 2004
+++ Products/RecentItemsIndex/www/addIndex.dtml Mon Jul 19 17:16:56 2004
@@ -51,6 +51,31 @@
<tr>
<td align="left" valign="top">
<div class="form-label">
+ Guard
+ </div></td>
+ <td align="left" valign="top">
+ <strong>Roles</strong><br />
+ <select name="extra.guard_roles:list:ignore_empty:record" size="4" multiple>
+ <dtml-in valid_roles>
+ <option value="&dtml-sequence-item;">&dtml-sequence-item;</option>
+ </dtml-in>
+ </select><br />
+ <strong>With Permission</strong><br />
+ <select name="extra.guard_permission:ignore_empty:record">
+ <option value="">(None)</option>
+ <dtml-in possible_permissions sort>
+ <option value="&dtml-sequence-item;">&dtml-sequence-item;</option>
+ </dtml-in>
+ </select>
+ <br /><em class="form-help">Only objects which have the selected
+ permission granted to one or more of the selected roles will
+ be included in the index.</em>
+ </td>
+ </tr>
+
+ <tr>
+ <td align="left" valign="top">
+ <div class="form-label">
Item count limit
</div></td>
<td align="left" valign="top">
=== Products/RecentItemsIndex/www/manageIndex.dtml 1.1.1.1 => 1.2 ===
--- Products/RecentItemsIndex/www/manageIndex.dtml:1.1.1.1 Mon Jul 19 13:46:21 2004
+++ Products/RecentItemsIndex/www/manageIndex.dtml Mon Jul 19 17:16:56 2004
@@ -10,6 +10,12 @@
<p class="form-help">
Max Item Length: &dtml-max_length;
</p>
+<dtml-if guard_permission>
+<p class="form-help">
+ Guard Permission: &dtml-guard_permission;<br/>
+ Guard Roles: <dtml-var expr="', '.join(guard_roles)" html_quote>
+</p>
+</dtml-if>
<p class="form-help">
Item list sizes:
<table>
More information about the Zope-CVS
mailing list