[Zope-Checkins]
SVN: Zope/trunk/lib/python/AccessControl/dtml/reportUserPermissions.dtml
improved UI
Andreas Jung
andreas at andreas-jung.com
Thu Jan 18 02:13:28 EST 2007
Log message for revision 72090:
improved UI
Changed:
U Zope/trunk/lib/python/AccessControl/dtml/reportUserPermissions.dtml
-=-
Modified: Zope/trunk/lib/python/AccessControl/dtml/reportUserPermissions.dtml
===================================================================
--- Zope/trunk/lib/python/AccessControl/dtml/reportUserPermissions.dtml 2007-01-18 01:27:07 UTC (rev 72089)
+++ Zope/trunk/lib/python/AccessControl/dtml/reportUserPermissions.dtml 2007-01-18 07:13:26 UTC (rev 72090)
@@ -3,21 +3,51 @@
<dtml-if manage_tabs><dtml-var manage_tabs></dtml-if>
</dtml-with>
-<h1>Permissions and roles for user &dtml-user_id;</h1>
+<p class="form-help">
+This listing shows the permissions and roles for particular user
+in the context of the current object.
+</p>
-<dtml-let result="manage_getUserRolesAndPermissions(user_id)">
+<dtml-let result="manage_getUserRolesAndPermissions(user)">
-<div>
- <b>Roles</b>: <dtml-var "', '.join(result['roles'])">
- <br/>
- <b>Roles in Context</b>: <dtml-var "', ' .join(result['roles_in_context'])">
- <br/>
- <b>User account defined in</b>: <dtml-var "result['user_defined_in']">
-</div>
+<b>User account </b>: &dtml-user;
+<br/>
+<b>User account defined in</b>: <dtml-var "result['user_defined_in']">
+<br/>
+<br/>
-<table>
+<table width="50%" cellspacing="0" cellpadding="4" border="1" nowrap>
<thead>
<tr>
+ <th>Roles</th>
+ <th>Roles in context</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td valign="top">
+ <ul>
+ <dtml-in "result['roles']">
+ <li>&dtml-sequence-item;
+ </dtml-in>
+ </ul>
+ </td>
+ <td valign="top">
+ <ul>
+ <dtml-in "result['roles_in_context']">
+ <li>&dtml-sequence-item;
+ </dtml-in>
+ </ul>
+ </td>
+ </tr>
+ </tbody>
+</table>
+
+<br/>
+
+<table width="50%" cellspacing="0" cellpadding="4" border="1" nowrap>
+ <thead>
+ <tr>
<th>Allowed permissions</th>
<th>Disallowed permissions</th>
</tr>
More information about the Zope-Checkins
mailing list