[Checkins] SVN: z3c.securitytool/trunk/src/z3c/securitytool/browser/principalinfo.pt Updated principalDetails to use new roleContext display

Daniel Blackburn blackburnd at gmail.com
Fri Feb 15 16:49:38 EST 2008


Log message for revision 83875:
  Updated principalDetails to use new roleContext display

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-15 21:49:02 UTC (rev 83874)
+++ z3c.securitytool/trunk/src/z3c/securitytool/browser/principalinfo.pt	2008-02-15 21:49:37 UTC (rev 83875)
@@ -42,14 +42,19 @@
                   <br tal:condition="permissions">
                   
 
-                  <h3 tal:condition="roleContext">Roles Defined in Context</h3>
+                  <h3 tal:condition="roleContext">Roles Defined in
+                  Context(s) for this user</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>
+                        <span tal:define="curr python:context.values()[0]">
+                            <div class="contextList"
+                  tal:content="python: ' / '.join(curr['parentList'])"/>
+                            <div class="contextListIndent" tal:repeat="role python: curr['roles']">
+                                <div tal:attributes="class  python:role['setting']"
+                                     tal:content="python: role['role']"/>
+                            </div>
+                        </span>
                   </tal:block>
+                  
                   <br tal:condition="roleContext">
 
                   <h3 tal:condition="roles">Permissions provided by roles</h3>



More information about the Checkins mailing list