[CMF-checkins] CVS: CMF/DCWorkflow/dtml - state_groups.pt:1.2
workflow_groups.pt:1.2
Shane Hathaway
shane at zope.com
Thu Jan 15 11:15:05 EST 2004
Update of /cvs-repository/CMF/DCWorkflow/dtml
In directory cvs.zope.org:/tmp/cvs-serv9798/dtml
Modified Files:
state_groups.pt workflow_groups.pt
Log Message:
Management of group/role mappings is now functional.
=== CMF/DCWorkflow/dtml/state_groups.pt 1.1 => 1.2 ===
--- CMF/DCWorkflow/dtml/state_groups.pt:1.1 Wed Jan 14 17:39:23 2004
+++ CMF/DCWorkflow/dtml/state_groups.pt Thu Jan 15 11:15:04 2004
@@ -33,13 +33,13 @@
<tr tal:repeat="group wf/getGroups" tal:attributes="class
python: repeat['group'].odd and 'row-normal' or 'row-hilite'">
-<td tal:content="group/getSecurityMoniker" class="list-item">
+<td tal:content="group" class="list-item">
(Group) Everyone
</td>
-<tal:block tal:define="group_roles python: here.getGroupInfo(group.getId())">
+<tal:block tal:define="group_roles python: here.getGroupInfo(group)">
<td tal:repeat="role roles">
<input type="checkbox"
- tal:attributes="name python: '%s|%s' % (group.getId(), role);
+ tal:attributes="name python: '%s|%s' % (group, role);
checked python: role in group_roles" />
</td>
</tal:block>
=== CMF/DCWorkflow/dtml/workflow_groups.pt 1.1 => 1.2 ===
--- CMF/DCWorkflow/dtml/workflow_groups.pt:1.1 Wed Jan 14 17:39:23 2004
+++ CMF/DCWorkflow/dtml/workflow_groups.pt Thu Jan 15 11:15:04 2004
@@ -14,8 +14,8 @@
from group to role depend on the workflow state.
</div>
<div tal:repeat="group groups">
-<input type="checkbox" name="gids:list" tal:attributes="value group/getId" />
-<span tal:replace="group/getSecurityMoniker">Everyone</span>
+<input type="checkbox" name="groups:list" tal:attributes="value group" />
+<span tal:replace="group">Everyone</span>
</div>
<div tal:condition="not:groups">
<em>No groups are managed by this workflow.</em>
@@ -28,9 +28,9 @@
<hr />
<h3>Add a managed group</h3>
-<select name="gid">
+<select name="group">
<option tal:repeat="group here/getAvailableGroups"
- tal:attributes="value group/getId" tal:content="group/getSecurityMoniker" />
+ tal:attributes="value group" tal:content="group" />
</select>
<input type="submit" name="addGroup:method" value="Add" />
</form>
@@ -58,4 +58,3 @@
</table>
<h1 tal:replace="structure here/manage_page_footer">Footer</h1>
-
More information about the CMF-checkins
mailing list