Commit 1f566d63 authored by Xueyun Qian's avatar Xueyun Qian

updated roles for answer

parent db826013
......@@ -9,7 +9,7 @@
<role id='Assignor'>
<property id='title'>Professor</property>
<property id='description'>Professor may modify answer sets from persons which belong to an organisation in which the professor has an assignment.</property>
<property id='condition'>here/getDestinationValue</property>
<property id='condition'>here/getSourceValue</property>
<property id='base_category_script'>ERP5Type_getSourceCareerSubordination</property>
<multi_property id='category'>function/education/professor</multi_property>
<multi_property id='base_category'>destination</multi_property>
......
......@@ -2,12 +2,14 @@
<role id='Owner'>
<property id='title'>Assigned Student</property>
<property id='description'>The source (assigned student) of the answer set can edit the answer.</property>
<property id='condition'>python: context.getParentValue().getSourceValue()</property>
<property id='base_category_script'>ERP5Type_getSecurityCategoryFromParentContent</property>
<multi_property id='base_category'>source</multi_property>
</role>
<role id='Assignor'>
<property id='title'>Professor</property>
<property id='description'>Professor may modify answers belonging to an answer set from persons who belongs to an organisation in which the professor has an assignment.</property>
<property id='condition'>python: context.getParentValue().getSourceValue()</property>
<property id='base_category_script'>ERP5Type_getParentSourceCareerSubordination</property>
<multi_property id='category'>function/education/professor</multi_property>
<multi_property id='base_category'>destination</multi_property>
......@@ -15,7 +17,7 @@
<role id='Auditor'>
<property id='title'>Professor for master template</property>
<property id='description'>A professor may view answer of a master answer set but can not correct master answer sets.</property>
<property id='condition'>python:"master_template" in context.getParentValue().getPattern(context)</property>
<property id='condition'>python:"peer_review/master_template" in context.getPatternList()</property>
<multi_property id='category'>function/education/professor</multi_property>
</role>
<role id='Assignor'>
......@@ -32,13 +34,14 @@
<role id='Assignee'>
<property id='title'>Student as Peer Reviewer</property>
<property id='description'>If a student is assigned as peer reviewer to an answer set, he/she may view and add correction line to answers.</property>
<property id='condition'>python: context.getParentValue().getDestinationDecision</property>
<property id='condition'>python: context.getParentValue().getDestinationDecisionValue()</property>
<property id='base_category_script'>ERP5Type_getSecurityCategoryFromParentContent</property>
<multi_property id='base_category'>destination_decision</multi_property>
</role>
<role id='Assignor'>
<property id='title'>professor for cloned templates</property>
<property id='description'>if the professor cloned templates, he can view the templates</property>
<property id='condition'>python: context.getParentValue().getSourceDecisionValue()</property>
<property id='base_category_script'>ERP5Type_getSecurityCategoryFromParentContent</property>
<multi_property id='base_category'>source_decision</multi_property>
</role>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Category Property" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>9</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Category Property</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Category Property" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>destination_category</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Category Property</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
105
\ No newline at end of file
106
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment