[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security/pt - manage_roleForm.pt:1.1.2.1 manage_access.pt:1.1.2.3 manage_permissionForm.pt:1.1.2.2
Casey Duncan
casey_duncan@yahoo.com
Fri, 1 Feb 2002 12:34:04 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Security/pt
In directory cvs.zope.org:/tmp/cvs-serv31380/pt
Modified Files:
Tag: Zope-3x-branch
manage_access.pt manage_permissionForm.pt
Added Files:
Tag: Zope-3x-branch
manage_roleForm.pt
Log Message:
Added RolePermission Managment form
Added Unittests
=== Added File Zope3/lib/python/Zope/App/Security/pt/manage_roleForm.pt ===
<html metal:use-macro="views/standard_macros/page">
<head>
<style metal:fill-slot="headers" type="text/css" ></style>
</head>
<body bgcolor="#ffffff" link="#000099" alink="#000099" vlink="#000099">
<div metal:fill-slot="body">
<p class="form-help">
jim hasn't been here to set specific roles (yet!)
</p>
<div tal:define="role python:container.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>
(id: <strong tal:content="role/getId">Zope.Some.Role</strong>)
</p>
<form action="update_role" method="get">
<input type="hidden" name="role_id" value="Role ID"
tal:attributes="value role/getId" />
<div class="form-element">
<select name="permissions:list" multiple size="20">
<option tal:repeat="permission role/permissionsInfo"
tal:content="permission/title"
tal:attributes="selected permission/checked;
value permission/id"
>Sample Permission</option>
</select>
</div>
<div class="form-element">
<input class="form-element" type="submit" name="submit" value="Save Changes" />
</div>
</form>
</div>
</div>
</body>
</html>
=== Zope3/lib/python/Zope/App/Security/pt/manage_access.pt 1.1.2.2 => 1.1.2.3 ===
</p>
-<form action="action" method="post">
+<form action="action/" method="post">
<table width="100%" cellspacing="0" cellpadding="2" border="0" nowrap>
<tr class="list-header">
@@ -210,7 +210,7 @@
<div class="list-item">
<a href="manage_roleForm.pt"
tal:attributes="
- href string:manage_roleForm?role_to_manage=$role/getId"
+ href string:manage_roleForm?role_to_manage=${role/getId}"
tal:content="role/getTitle">Anonymous</a>
<input type="hidden" name="r0" value=""
tal:attributes="
=== Zope3/lib/python/Zope/App/Security/pt/manage_permissionForm.pt 1.1.2.1 => 1.1.2.2 ===
<head>
-<style metal:fill-slot="headers" type="text/css" />
+<style metal:fill-slot="headers" type="text/css" ></style>
</head>
<body bgcolor="#ffffff" link="#000099" alink="#000099" vlink="#000099">
<div metal:fill-slot="body">
@@ -16,11 +16,12 @@
</p>
-<form action="manage_permission" method="post">
-<input type="hidden" name="permission_to_manage" value="Change DTML Methods" />
+<form action="update_permission" method="post">
+<input type="hidden" name="permission_id" value="Permission Name"
+ tal:attributes="value perm/getId" />
<div class="form-element">
<select name="roles:list" multiple size="10">
-<option tal:repeat="role perm/rolesinfo"
+<option tal:repeat="role perm/rolesInfo"
tal:content="role/title"
tal:attributes="selected role/checked;
value role/id"