[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security/pt - manage_access.pt:1.1.2.4.10.1 manage_permissionForm.pt:1.1.2.2.12.1 manage_roleForm.pt:1.1.2.1.12.1 principal_permission_edit.pt:1.1.2.1.12.1 principal_role_association.pt:1.1.2.1.12.1

Gary Poster garyposter@earthlink.net
Tue, 2 Apr 2002 21:14:04 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security/pt
In directory cvs.zope.org:/tmp/cvs-serv25583/lib/python/Zope/App/Security/pt

Modified Files:
      Tag: gary-pre_create_views-branch
	manage_access.pt manage_permissionForm.pt manage_roleForm.pt 
	principal_permission_edit.pt principal_role_association.pt 
Log Message:
last commit bombed; trying again.

merged with Zope-3x branch (on my own branch; don't worry) to take advantage of Stephan's new code.  changed licenses with license utility (and thus five million commits).  Made a couple of presentational improvements.  Need to change job  board example to take advantage of this next.



=== Zope3/lib/python/Zope/App/Security/pt/manage_access.pt 1.1.2.4 => 1.1.2.4.10.1 ===
 <p class="form-help">
 a helpful message
-jim was here
 </p>
 
 <p class="form-help">  
@@ -206,7 +205,7 @@
 
 <tr class="row-normal">
   <td></td>
-  <td align="center" tal:repeat="role container/roles">
+  <td align="center" tal:repeat="role view/roles">
     <div class="list-item">
       <a href="manage_roleForm.pt"
         tal:attributes="
@@ -221,7 +220,7 @@
   </td>
 </tr>
 
-<tbody tal:repeat="perm container/permissionRoles">
+<tbody tal:repeat="perm view/permissionRoles">
 <tr class="row-hilite" 
     tal:condition="repeat/perm/odd"
     >


=== Zope3/lib/python/Zope/App/Security/pt/manage_permissionForm.pt 1.1.2.2 => 1.1.2.2.12.1 ===
 <div metal:fill-slot="body">
 <p class="form-help">
-jim hasn't been here (yet!)
+Helpful message.
 </p>
 
-<div tal:define="perm python:container.permissionForID(request.get('permission_to_manage'))">
+<div tal:define="perm python:view.permissionForID(request.get('permission_to_manage'))">
 <p class="form-text">
 Roles assigned to the permission
 <strong tal:content="perm/getTitle">Change DTML Methods</strong>


=== Zope3/lib/python/Zope/App/Security/pt/manage_roleForm.pt 1.1.2.1 => 1.1.2.1.12.1 ===
 <div metal:fill-slot="body">
 <p class="form-help">
-jim hasn't been here to set specific roles (yet!)
+Helpful message explaing about how to set specific roles
 </p>
 
-<div tal:define="role python:container.roleForID(request.get('role_to_manage'))" tal:omit-tag="">
+<div tal:define="role python:view.roleForID(request.get('role_to_manage'))" tal:omit-tag="">
 <p class="form-text">
 Permissions assigned to the role
 <strong tal:content="role/getTitle">Great Master Guru</strong>


=== Zope3/lib/python/Zope/App/Security/pt/principal_permission_edit.pt 1.1.2.1 => 1.1.2.1.12.1 ===
 <div metal:fill-slot="body" tal:define="rprincipal_id python:request['principal_id']">
-<h1>Permission settings for <span tal:replace="python:container.get_principal(rprincipal_id).getTitle()">PrincipalName</span></h1>
+<h1>Permission settings for <span tal:replace="python:view.get_principal(rprincipal_id).getTitle()">PrincipalName</span></h1>
 
 <form action="unsetPermissions.html" method="post">
 <h2>Permission Settings</h2>
@@ -11,7 +11,7 @@
 	<tr>
 	  <th colspan="2" align="center">Allowed Permissions</th>
 	</tr>
-	<tr tal:repeat="perm python:container.get_set_permissions_for_principal(rprincipal_id, 'Allow')">
+	<tr tal:repeat="perm python:view.get_set_permissions_for_principal(rprincipal_id, 'Allow')">
 	  <td><input type="checkbox" tal:attributes="name perm/getId"></td><td tal:content="perm/getTitle">Permission1</td>
 	</tr>
 	<tr tal:replace="nothing">
@@ -30,7 +30,7 @@
 	<tr >
 	  <th colspan="2" align="center">Denied Permissions</th>
 	</tr>
-	<tr tal:repeat="perm python:container.get_set_permissions_for_principal(rprincipal_id, 'Deny')">
+	<tr tal:repeat="perm python:view.get_set_permissions_for_principal(rprincipal_id, 'Deny')">
 	  <td><input type="checkbox" tal:attributes="name perm/getId"></td><td tal:content="perm/getTitle">Permission1</td>
 	</tr>
 	<tr tal:replace="nothing">
@@ -51,7 +51,7 @@
       <td>
 	<select name="permissions" multiple>
 	  <option 
-	    tal:repeat="perm python:container.get_unset_permissions_for_principal(rprincipal_id)" 
+	    tal:repeat="perm python:view.get_unset_permissions_for_principal(rprincipal_id)" 
 	    tal:attributes="value perm/getId"
 	    tal:content="perm/getTitle">Perm1</option>
 	  <option tal:replace="nothing">Perm2</option>
@@ -72,4 +72,4 @@
   </table>
 </form>
 </div>
-</html>
\ No newline at end of file
+</html>


=== Zope3/lib/python/Zope/App/Security/pt/principal_role_association.pt 1.1.2.1 => 1.1.2.1.12.1 ===
         <span class="message"> Apply filter </span>       
         <form method="POST" action="" tal:attributes="action template/getId">
-           <span tal:define="principals container/getAllPrincipals"> 
+           <span tal:define="principals view/getAllPrincipals"> 
            Principal(s): 
             <select name="principals:list" multiple>
              <option tal:repeat="principal principals" tal:attributes="value principal/getId" tal:content="principal/getTitle">my title</option>
             </select>
            </span>
             
-           <span tal:define="roles container/getAllRoles">
+           <span tal:define="roles view/getAllRoles">
            Role(s): 
             <select name="roles:list" multiple>
              <option tal:repeat="role roles" tal:attributes="value role/getId" tal:content="role/getTitle">my title</option>
@@ -28,7 +28,7 @@
       
       <div tal:condition="hasFilter">
         <div class="principalRolesGrid"
-             tal:define="principalRoleGrid python:container.createGrid( request.get('roles', None), request.get('principals', None)); " >
+             tal:define="principalRoleGrid python:view.createGrid( request.get('roles', None), request.get('principals', None)); " >
 
           <span tal:define="global listPrincipals principalRoleGrid/principals;       
                             global listRoles principalRoleGrid/roles;