[Checkins] SVN: z3c.securitytool/trunk/src/z3c/securitytool/browser/ Cleanup of page-template and css for principalDetails

Daniel Blackburn blackburnd at gmail.com
Mon Feb 18 19:20:16 EST 2008


Log message for revision 84038:
  Cleanup of page-template and css for principalDetails

Changed:
  U   z3c.securitytool/trunk/src/z3c/securitytool/browser/principalinfo.pt
  U   z3c.securitytool/trunk/src/z3c/securitytool/browser/securitytool.css

-=-
Modified: z3c.securitytool/trunk/src/z3c/securitytool/browser/principalinfo.pt
===================================================================
--- z3c.securitytool/trunk/src/z3c/securitytool/browser/principalinfo.pt	2008-02-19 00:01:21 UTC (rev 84037)
+++ z3c.securitytool/trunk/src/z3c/securitytool/browser/principalinfo.pt	2008-02-19 00:20:15 UTC (rev 84038)
@@ -14,7 +14,10 @@
          all the settings applied to the principal in the system
          with respect to the context or view. The settings Allow or Deny
          are also listed next to each permission.You can go back to
-         the matrix page by selecting the `Security Matrix` link above.
+         the matrix page by selecting the `Security Matrix` link
+         above. <i>Anything listed in the `global settings` is either in
+         the zcml or programatically added permissions and roles.</i>
+
        </p>
        <div class="matrix_body">
            <h1 class="just_border">&nbsp</h1>
@@ -31,6 +34,12 @@
                       <h3 tal:condition="permissions"
                       tal:define="junk python:permissions.sort()"> Directly provided
                       permissions in effect at this context</h3>
+                      <p class="sectionInfo"  tal:condition="permissions"> This section lists all
+                      permissions directly assigned to the user at
+                      <br> all contexts in the current traversal path
+                      </p>
+                      <br>
+
                       <div tal:repeat="permissionItem permissions" >
                          <div class="contextListIndent">
                          <div   tal:attributes="class python: permissionItem['setting']"
@@ -43,6 +52,11 @@
 
 
                       <h3 tal:condition="roles">Permissions provided by roles</h3>
+                      <p class="sectionInfo"  tal:condition="roles"> This section lists all
+                      the roles assigned to this user and the <br> 
+                      permissions they provide.<br>
+                      </p>
+                      <br>
                       <div tal:condition="roles">
                         <div tal:repeat="role python: sorted(roles)">
                           <div class="contextList"
@@ -65,6 +79,13 @@
                   <div class="tree">
                       <h3 tal:condition="permissionTree">Permissions Defined in
                       Context(s) for this user</h3>
+                      <p class="sectionInfo"  tal:condition="permissionTree"> This section lists all
+                      the permissions assigned to this <br>user and the
+                      context level assigned. The same settings <br>
+                      can be found in the @@grant.html view on each context.
+                      </p>
+                      <br>
+
                       <tal:block tal:repeat="context permissionTree">
                             <span tal:define="curr python:context.values()[0]">
                                 <div class="contextList"
@@ -82,6 +103,13 @@
 
                       <h3 tal:condition="roleTree">Roles Defined in
                       Context(s) for this user</h3>
+                      <p class="sectionInfo"  tal:condition="permissionTree"> This section lists all
+                      the roles assigned to this user and <br>the
+                      context level assigned. The same settings 
+                      can be <br>found in the @@grant.html view on each context.
+                      </p>
+                      <br>
+
                       <tal:block tal:repeat="context roleTree">
                             <span tal:define="curr python:context.values()[0]">
                                 <div class="contextList"

Modified: z3c.securitytool/trunk/src/z3c/securitytool/browser/securitytool.css
===================================================================
--- z3c.securitytool/trunk/src/z3c/securitytool/browser/securitytool.css	2008-02-19 00:01:21 UTC (rev 84037)
+++ z3c.securitytool/trunk/src/z3c/securitytool/browser/securitytool.css	2008-02-19 00:20:15 UTC (rev 84038)
@@ -131,11 +131,19 @@
     margin-left: 3em;
 }
 
+
 .contextListIndent {
 
     margin-left: 5em;
 }
 
+.sectionInfo {
+    margin-left: 4em;    
+    font-size: 85%;
+    font-style:italic;
+    color: grey;
+}
+
 .contentRoleList {
     margin-left: 4em;
 }



More information about the Checkins mailing list