Update of 
/var/cvs/contributions/didactor2/src/education/config/builders/didactor_education
In directory james.mmbase.org:/tmp/cvs-serv21373

Modified Files:
        givenanswers.xml 
Log Message:
an answers is always given for precisely one question, so that can be a 
(virtual) node field


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/education/config/builders/didactor_education


Index: givenanswers.xml
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/config/builders/didactor_education/givenanswers.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- givenanswers.xml    24 Jan 2008 09:24:30 -0000      1.1
+++ givenanswers.xml    17 Nov 2008 15:01:12 -0000      1.2
@@ -54,5 +54,32 @@
       </editor>
       <datatype base="integer" xmlns="http://www.mmbase.org/xmlns/datatypes";  
/>
     </field>
+
+    <field name="question" state="virtual">
+      <gui>
+        <guiname xml:lang="nl">Vraag</guiname>
+        <guiname xml:lang="en">Question</guiname>
+      </gui>
+      <editor><positions><list>2</list></positions></editor>
+
+      <datatype base="node" xmlns="http://www.mmbase.org/xmlns/datatypes"; >
+        <required value="false" />
+        <enumeration enforce="never">
+          <query type="questions"  
xmlns="http://www.mmbase.org/xmlns/searchquery";>
+            <sortorder field="name" />
+          </query>
+        </enumeration>
+        <setprocessor>
+          <class name="org.mmbase.datatypes.processors.Related$Setter">
+            <param name="type">questions</param>
+          </class>
+        </setprocessor>
+        <getprocessor>
+          <class name="org.mmbase.datatypes.processors.Related$Getter">
+            <param name="type">questions</param>
+          </class>
+        </getprocessor>
+      </datatype>
+    </field>
   </fieldlist>
 </builder>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to