[Checkins] 
	SVN: z3c.securitytool/trunk/src/z3c/securitytool/browser/principalinfo.pt
	Added roleContext to principalInfo
    Daniel Blackburn 
    blackburnd at gmail.com
       
    Tue Feb 12 19:33:01 EST 2008
    
    
  
Log message for revision 83770:
  Added roleContext to principalInfo
Changed:
  U   z3c.securitytool/trunk/src/z3c/securitytool/browser/principalinfo.pt
-=-
Modified: z3c.securitytool/trunk/src/z3c/securitytool/browser/principalinfo.pt
===================================================================
--- z3c.securitytool/trunk/src/z3c/securitytool/browser/principalinfo.pt	2008-02-13 00:28:21 UTC (rev 83769)
+++ z3c.securitytool/trunk/src/z3c/securitytool/browser/principalinfo.pt	2008-02-13 00:33:00 UTC (rev 83770)
@@ -14,15 +14,16 @@
          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.
        </p>
        <div class="matrix_body">
            <h1 class="just_border"> </h1>
            <div class="sub_heading">Permission settings for principal <em tal:content="view/principal"></em></div>
            <div class="legend" tal:condition="view/legend" tal:content="structure view/legend"/>
-            <metal:block define-macro="user-details" 
+            <metal:block define-macro="user-details"
                          tal:define="permissions view/principalPermissions/permissions;
                                      roles view/principalPermissions/roles;
+                                     roleContext view/principalPermissions/roleContext;
                                      groups view/principalPermissions/groups">
 
                   <h3 tal:condition="permissions"> Directly provided
@@ -39,7 +40,18 @@
                       </tal:block>
                   </div>
                   <br tal:condition="permissions">
+                  
 
+                  <h3 tal:condition="roleContext">Roles Defined in Context</h3>
+                  <tal:block tal:repeat="context roleContext">
+                        <div class="contextList" tal:content="context"/>
+                        <div class="contextListIndent" tal:repeat="val python: roleContext[context]">
+                          <div tal:attributes="class python: val['setting']"
+                               tal:content="python: val['role']"/>
+                        </div>
+                  </tal:block>
+                  <br tal:condition="roleContext">
+
                   <h3 tal:condition="roles">Permissions provided by roles</h3>
                   <div class="contentList"  tal:condition="roles">
                     <div tal:repeat="role roles">
    
    
More information about the Checkins
mailing list