Update of
/var/cvs/contributions/didactor2/src/education/config/builders/didactor_education
In directory james.mmbase.org:/tmp/cvs-serv9838
Modified Files:
feedback.xml fillquestions.xml learnblocks.xml pages.xml
Log Message:
See also:
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/education/config/builders/didactor_education
Index: feedback.xml
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/education/config/builders/didactor_education/feedback.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- feedback.xml 24 Jan 2008 09:24:30 -0000 1.1
+++ feedback.xml 26 Jan 2008 12:40:05 -0000 1.2
@@ -70,8 +70,8 @@
<guiname xml:lang="en">Maximal Score</guiname>
</gui>
<datatype base="integer" xmlns="http://www.mmbase.org/xmlns/datatypes" >
- <required value="true" />
<default value="10000" />
+ <required value="true" />
<minInclusive value="0" />
</datatype>
</field>
Index: fillquestions.xml
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/education/config/builders/didactor_education/fillquestions.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- fillquestions.xml 24 Jan 2008 09:24:30 -0000 1.1
+++ fillquestions.xml 26 Jan 2008 12:40:05 -0000 1.2
@@ -29,106 +29,65 @@
<guiname xml:lang="nl">Tekst</guiname>
<guiname xml:lang="en">Text</guiname>
</gui>
- <editor><positions><list>4</list><search>4</search></positions></editor>
- <db>
- <!-- name of the field in the database -->
- <name>textFirst</name>
- <!-- MMBase datatype and demands on it -->
- <type state="persistent" size="65535" notnull="true"
key="false">STRING</type>
- </db>
+ <editor><positions><list>4</list></positions></editor>
+ <datatype base="field" xmlns="http://www.mmbase.org/xmlns/datatypes" >
+ <required value="true" />
+ <maxLength value="65535" />
+ </datatype>
</field>
- <!-- POS 5 : <field> 'text' -->
- <field>
+ <field name="textSecond">
<descriptions>
- <!-- descriptions per language as defined by ISO 639 -->
<description xml:lang="nl">Tekst van de vraag</description>
<description xml:lang="en">Question text</description>
</descriptions>
- <!-- gui related -->
<gui>
<guiname xml:lang="nl">Tekst</guiname>
<guiname xml:lang="en">Text</guiname>
- <guitype>string</guitype>
</gui>
- <!-- editor related -->
- <editor>
- <positions>
- <!-- position in the input area of the editor -->
- <input>5</input>
- <!-- position in list area of the editor -->
- <list>5</list>
- <!-- position in search area of the editor -->
- <search>5</search>
- </positions>
- </editor>
- <!-- database related -->
- <db>
- <!-- name of the field in the database -->
- <name>textSecond</name>
- <!-- MMBase datatype and demands on it -->
- <type state="persistent" size="65535" notnull="true"
key="false">STRING</type>
- </db>
+ <datatype base="field" xmlns="http://www.mmbase.org/xmlns/datatypes" >
+ <required value="true" />
+ <maxLength value="65535" />
+ </datatype>
</field>
- <field>
+ <field name="impos">
<descriptions>
- <!-- descriptions per language as defined by ISO 639 -->
<description xml:lang="nl">Positie afbeelding</description>
<description xml:lang="en">Image position</description>
</descriptions>
- <!-- gui related -->
<gui>
<guiname xml:lang="nl">Positie afbeelding</guiname>
<guiname xml:lang="en">Image position</guiname>
- <guitype>integer</guitype>
</gui>
- <!-- editor related -->
- <editor>
- <positions>
- <!-- position in the input area of the editor -->
- <input>6</input>
- <!-- position in list area of the editor -->
- <list>6</list>
- <!-- position in search area of the editor -->
- <search>6</search>
- </positions>
- </editor>
- <!-- database related -->
- <db>
- <!-- name of the field in the database -->
- <name>impos</name>
- <!-- MMBase datatype and demands on it -->
- <type state="persistent" notnull="true">INTEGER</type>
- </db>
+ <datatype base="integer" xmlns="http://www.mmbase.org/xmlns/datatypes" >
+ <default value="0" />
+ <enumeration>
+ <entry value="0" xml:lang="nl" display="Boven" />
+ <entry value="0" xml:lang="en" display="Above" />
+ <entry value="1" xml:lang="nl" display="Onder" />
+ <entry value="1" xml:lang="en" display="Under" />
+ <entry value="2" xml:lang="nl" display="Naast" />
+ <entry value="2" xml:lang="en" display="Next to" />
+ </enumeration>
+ </datatype>
</field>
- <field>
+ <field name="flashOrText">
<descriptions>
- <!-- descriptions per language as defined by ISO 639 -->
<description xml:lang="nl">Kies flash of tekst</description>
<description xml:lang="en">Choose flash file or text</description>
</descriptions>
- <!-- gui related -->
<gui>
<guiname xml:lang="nl">flashOrText</guiname>
- <guitype>integer</guitype>
</gui>
- <!-- editor related -->
- <editor>
- <positions>
- <!-- position in the input area of the editor -->
- <input>7</input>
- <!-- position in list area of the editor -->
- <list>7</list>
- <!-- position in search area of the editor -->
- <search>7</search>
- </positions>
- </editor>
- <!-- database related -->
- <db>
- <!-- name of the field in the database -->
- <name>flashOrText</name>
- <!-- MMBase datatype and demands on it -->
- <type state="persistent" notnull="true">INTEGER</type>
- </db>
+ <datatype base="integer" xmlns="http://www.mmbase.org/xmlns/datatypes" >
+ <defaul value="1" />
+ <enumeration>
+ <entry value="0" xml:lang="nl" display="Tekst" />
+ <entry value="0" xml:lang="en" display="Text" />
+ <entry value="1" xml:lang="nl" display="Flash" />
+ <entry value="1" xml:lang="en" display="Flash" />
+ </enumeration>
+ </datatype>
</field>
</fieldlist>
</builder>
+
Index: learnblocks.xml
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/education/config/builders/didactor_education/learnblocks.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- learnblocks.xml 24 Jan 2008 09:24:30 -0000 1.1
+++ learnblocks.xml 26 Jan 2008 12:40:05 -0000 1.2
@@ -54,19 +54,7 @@
<list>3</list>
</positions>
</editor>
- <datatype base="integer" xmlns="http://www.mmbase.org/xmlns/datatypes" >
- <default value="0" />
- <enumeration>
- <entry value="0" xml:lang="nl" display="Tekst erboven" />
- <entry value="0" xml:lang="en" display="Text up" />
- <entry value="1" xml:lang="nl" display="Tekst eronder" />
- <entry value="1" xml:lang="en" display="Text down" />
- <entry value="2" xml:lang="nl" display="Tekst links" />
- <entry value="2" xml:lang="en" display="Text left" />
- <entry value="3" xml:lang="nl" display="Tekst rechts" />
- <entry value="3" xml:lang="en" display="Text right" />
- </enumeration>
- </datatype>
+ <datatype base="didactor_layout"
xmlns="http://www.mmbase.org/xmlns/datatypes" />
</field>
<field name="imagelayout">
<descriptions>
@@ -77,15 +65,7 @@
<guiname xml:lang="nl">Layout afbeeldingen</guiname>
<guiname xml:lang="en">Images layout</guiname>
</gui>
- <datatype base="integer" xmlns="http://www.mmbase.org/xmlns/datatypes" >
- <default value="0" />
- <enumeration>
- <entry value="0" xml:lang="nl" display="Horizontaal" />
- <entry value="0" xml:lang="en" display="Horizontal" />
- <entry value="1" xml:lang="nl" display="Vertikaal" />
- <entry value="1" xml:lang="en" display="Vertical" />
- </enumeration>
- </datatype>
+ <datatype base="didactor_imagelayout"
xmlns="http://www.mmbase.org/xmlns/datatypes" />
</field>
Index: pages.xml
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/education/config/builders/didactor_education/pages.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- pages.xml 24 Jan 2008 09:24:30 -0000 1.1
+++ pages.xml 26 Jan 2008 12:40:05 -0000 1.2
@@ -1,95 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE builder PUBLIC "-//MMBase/DTD builder config 1.1//EN"
"http://www.mmbase.org/dtd/builder_1_1.dtd">
-<builder name="pages" maintainer="didactor.nl" version="3"
extends="learnobjects">
- <status>active</status>
- <classfile>nl.didactor.builders.DidactorBuilder</classfile>
+<builder
+ xmlns="http://www.mmbase.org/xmlns/builder"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.mmbase.org/xmlns/builder
http://www.mmbase.org/xmlns/builder.xsd"
+ name="pages" maintainer="didactor.nl" version="3" extends="learnobjects">
+ <class>nl.didactor.builders.DidactorBuilder</class>
<searchage>31</searchage>
-
<names>
- <!-- singles per language as defined by ISO 639 -->
<singular xml:lang="nl">Pagina</singular>
<singular xml:lang="en">Page</singular>
<singular xml:lang="fr">Page</singular>
- <!-- multiple per language as defined by ISO 639 -->
<plural xml:lang="nl">Pagina's</plural>
<plural xml:lang="en">Pages</plural>
<plural xml:lang="fr">Pages</plural>
</names>
<descriptions>
- <!-- descriptions per language as defined by ISO 639 -->
<description xml:lang="nl">Een pagina met cursus-stof</description>
<description xml:lang="en">A page with course material</description>
</descriptions>
- <properties>
- <property name="max-nodes-from-query">99999</property>
- </properties>
-
<fieldlist>
- <!-- POS 3 : <field> 'text' -->
- <field>
+ <field name="text">
<descriptions>
- <!-- descriptions per language as defined by ISO 639 -->
<description xml:lang="nl">Tekst, met eventueel HTML
opmaak</description>
<description xml:lang="en">Text, possibly containt HTML
layout</description>
</descriptions>
- <!-- gui related -->
<gui>
<guiname xml:lang="nl">Tekst</guiname>
<guiname xml:lang="en">Text</guiname>
- <guitype>string</guitype>
</gui>
- <!-- editor related -->
<editor>
<positions>
- <!-- position in the input area of the editor -->
- <input>1</input>
- <!-- position in list area of the editor -->
<list>1</list>
- <!-- position in search area of the editor -->
- <search>1</search>
</positions>
</editor>
- <!-- database related -->
- <db>
- <!-- name of the field in the database -->
- <name>text</name>
- <!-- MMBase datatype and demands on it -->
- <type state="persistent" size="65535" notnull="false"
key="false">STRING</type>
- </db>
+ <datatype base="field" xmlns="http://www.mmbase.org/xmlns/datatypes" >
+ <maxLength value="65535" enforce="never"/>
+ </datatype>
</field>
- <field>
+ <field name="layout">
<descriptions>
- <!-- descriptions per language as defined by ISO 639 -->
<description xml:lang="nl">Layout</description>
<description xml:lang="en">Layout</description>
</descriptions>
- <!-- gui related -->
<gui>
<guiname xml:lang="nl">Layout</guiname>
<guiname xml:lang="en">Layout</guiname>
- <guitype>integer</guitype>
</gui>
- <!-- editor related -->
- <editor>
- <positions>
- <!-- position in the input area of the editor -->
- <input>2</input>
- <!-- position in list area of the editor -->
- <list>2</list>
- <!-- position in search area of the editor -->
- <search>2</search>
- </positions>
- </editor>
- <!-- database related -->
- <db>
- <!-- name of the field in the database -->
- <name>layout</name>
- <!-- MMBase datatype and demands on it -->
- <type state="persistent" notnull="true">INTEGER</type>
- </db>
+ <datatype base="didactor_layout"
xmlns="http://www.mmbase.org/xmlns/datatypes" />
</field>
<field>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs