Update of /var/cvs/contributions/didactor2/src/faq/config/builders/faq
In directory james.mmbase.org:/tmp/cvs-serv22828

Modified Files:
        faqcontainers.xml faqitems.xml faqnodes.xml 
Log Message:
modernized


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


Index: faqcontainers.xml
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/faq/config/builders/faq/faqcontainers.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- faqcontainers.xml   21 Nov 2005 08:26:04 -0000      1.1
+++ faqcontainers.xml   5 Jun 2008 14:48:57 -0000       1.2
@@ -1,59 +1,36 @@
-???<?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="faqcontainers" maintainer="didactor.nl" version="3" 
extends="object">
-  <status>active</status>
+<?xml version="1.0" ?>
+<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="faqcontainers" maintainer="didactor.nl" version="3" extends="object">
 
-  <classfile>org.mmbase.module.builders.Dummy</classfile>
   <searchage>1000</searchage>
 
   <names>
-    <!-- singles per language as defined by ISO 639 -->
     <singular xml:lang="en">Faqcontainer</singular>
     <singular xml:lang="nl">Faqcontainer</singular>
-  
-    <!-- multiple per language as defined by ISO 639 -->
     <plural xml:lang="en">Faqcontainers</plural>
     <plural xml:lang="nl">Faqcontainers</plural>
   </names>
 
   <descriptions>
-    <!-- descriptions per language as defined by ISO 639  -->
-    <description xml:lang="en">Faq Container</description>
+    <description xml:lang="en">It would not have hurt to have written here 
something which actually describes the freaking builder.</description>
     <description xml:lang="nl">Faq Container</description>
   </descriptions>
 
   <fieldlist>
-    <!-- POS 3 : <field> 'name'  -->
-    <field>
-      <descriptions>
-        <!-- descriptions per language as defined by ISO 639  -->
-        <description xml:lang="en">Name</description>
-        <description xml:lang="nl">Naam</description>
-      </descriptions>
-      <!-- gui related -->
+    <field name="name">
       <gui>
         <guiname xml:lang="en">Name</guiname>
         <guiname xml:lang="nl">Naam</guiname>
-        <guitype>string</guitype>
       </gui>
-      <!-- editor related  -->
-      <editor>
-        <positions>
-          <!-- position in the input area of the editor -->
-          <input>3</input>
-          <!-- position in list area of the editor -->
-          <list>3</list>
-          <!-- position in search area of the editor -->
-          <search>3</search>
-        </positions>
-      </editor>
-      <!-- database related  -->
-      <db>
-        <!-- name of the field in the database -->
-        <name>name</name>
-        <!-- MMBase datatype and demands on it -->
-        <type state="persistent" size="55" notnull="false" 
key="false">STRING</type>
-      </db>
+      <editor><positions><list>1</list></positions></editor>
+      <datatype base="line" xmlns="http://www.mmbase.org/xmlns/datatypes";>
+        <required value="true" />
+        <minLength value="1" enforce="onchange" />
+        <maxLength value="255" />
+      </datatype>
     </field>          
  </fieldlist>
 </builder>


Index: faqitems.xml
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/faq/config/builders/faq/faqitems.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- faqitems.xml        4 Jan 2006 16:24:51 -0000       1.2
+++ faqitems.xml        5 Jun 2008 14:48:57 -0000       1.3
@@ -1,158 +1,73 @@
-???<?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="faqitems" maintainer="didactor.nl" version="3" extends="object">
-  <status>active</status>
+<?xml version="1.0" ?>
+<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="faqitems" maintainer="didactor.nl" version="3" extends="object">
 
-  <classfile>org.mmbase.module.builders.Dummy</classfile>
   <searchage>1000</searchage>
 
   <names>
-    <!-- singles per language as defined by ISO 639 -->
     <singular xml:lang="en">Faqitem</singular>
-    <singular xml:lang="nl">Faqitem</singular>
-  
-    <!-- multiple per language as defined by ISO 639 -->
+    <singular xml:lang="nl">Faqitem</singular> <!-- I don't understand what is 
dutch about 'Faqitem' -->
     <plural xml:lang="en">Faqitems</plural>
     <plural xml:lang="nl">Faqitems</plural>
   </names>
 
   <descriptions>
-    <!-- descriptions per language as defined by ISO 639  -->
-    <description xml:lang="en">Faq Items</description>
+    <description xml:lang="en">WTF, please don't describe, or type something 
informative. Please.</description>
     <description xml:lang="nl">Faq Items</description>
   </descriptions>
 
   <fieldlist>
-    <!-- POS 3 : <field> 'question'  -->
-    <field>
-      <descriptions>
-        <!-- descriptions per language as defined by ISO 639  -->
-        <description xml:lang="en">Question</description>
-        <description xml:lang="nl">Vraag</description>
-      </descriptions>
-      <!-- gui related -->
+    <field name="question">
       <gui>
         <guiname xml:lang="en">Question</guiname>
         <guiname xml:lang="nl">Vraag</guiname>
-        <guitype>string</guitype>
       </gui>
-      <!-- editor related  -->
-      <editor>
-        <positions>
-          <!-- position in the input area of the editor -->
-          <input>3</input>
-          <!-- position in list area of the editor -->
-          <list>3</list>
-          <!-- position in search area of the editor -->
-          <search>3</search>
-        </positions>
-      </editor>
-      <!-- database related  -->
-      <db>
-        <!-- name of the field in the database -->
-        <name>question</name>
-        <!-- MMBase datatype and demands on it -->
-        <type state="persistent" size="255" notnull="false" 
key="false">STRING</type>
-      </db>
+      <editor><positions><list>1</list></positions></editor>
+      <datatype base="line" xmlns="http://www.mmbase.org/xmlns/datatypes";>
+        <required value="true" />
+        <minLength value="1" enforce="onchange" />
+        <maxLength value="255" />
+      </datatype>
     </field>
 
-
-    <!-- POS 4 : <field> 'answer'  -->
-    <field>
-      <descriptions>
-        <!-- descriptions per language as defined by ISO 639  -->
-        <description xml:lang="en">Answer</description>
-        <description xml:lang="nl">Antwoord</description>
-      </descriptions>
-      <!-- gui related -->
+    <field name="answer">
       <gui>
         <guiname xml:lang="en">Answer</guiname>
         <guiname xml:lang="nl">Antwoord</guiname>  
-        <guitype>field</guitype>
       </gui>
-      <!-- editor related  -->
-      <editor>
-        <positions>
-          <!-- position in the input area of the editor -->
-          <input>4</input>
-          <!-- position in list area of the editor -->
-          <list>4</list>
-          <!-- position in search area of the editor -->
-          <search>4</search>
-        </positions>
-      </editor>
-      <!-- database related  -->
-      <db>
-        <!-- name of the field in the database -->
-        <name>answer</name>
-        <!-- MMBase datatype and demands on it -->
-        <type state="persistent" size="512" notnull="false" 
key="false">STRING</type>
-      </db>
+      <editor><positions><list>2</list></positions></editor>
+      <datatype base="field" xmlns="http://www.mmbase.org/xmlns/datatypes";>
+        <required value="false" />
+        <minLength value="1" enforce="onchange" />
+        <maxLength value="512" />
+      </datatype>
     </field>
 
-    <!-- POS 5 : <field> 'active'  -->
-    <field>
-      <descriptions>
-        <!-- descriptions per language as defined by ISO 639  -->
-        <description xml:lang="en">Active</description>
-        <description xml:lang="nl">Item zichtbaar maken</description>
-      </descriptions>
-      <!-- gui related -->
+    <field name="active">
       <gui>
         <guiname xml:lang="en">Active</guiname>
         <guiname xml:lang="nl">Item zichtbaar maken</guiname>
-        <guitype>integer</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>active</name>
-        <!-- MMBase datatype and demands on it -->
-        <type state="persistent" notnull="false" key="false">INTEGER</type>
-      </db>
+      <datatype base="boolean" xmlns="http://www.mmbase.org/xmlns/datatypes"; />
     </field>
- <!-- POS 6 : <field> 'order_number'  -->
-    <field>
-      <descriptions>
-        <!-- descriptions per language as defined by ISO 639  -->
-        <description xml:lang="en">Order Number</description>
-        <description xml:lang="nl">Positie</description>
-      </descriptions>
-      <!-- gui related -->
+
+    <!-- WTF is order_number. Perhaps the same as pos in posrel?
+         Why then is it a string???
+         Why not use posrel?
+         -->
+    <field name="order_number">
       <gui>
         <guiname xml:lang="en">Order Number</guiname>
         <guiname xml:lang="nl">Positie</guiname>
-        <guitype>string</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>order_number</name>
-        <!-- MMBase datatype and demands on it -->
-        <type state="persistent"  notnull="false" size="255" 
key="false">STRING</type>
-      </db>
+      <datatype base="line" xmlns="http://www.mmbase.org/xmlns/datatypes";>
+        <required value="true" />
+        <minLength value="1" enforce="onchange" />
+        <maxLength value="255" />
+      </datatype>
     </field>          
  </fieldlist>
 </builder>


Index: faqnodes.xml
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/faq/config/builders/faq/faqnodes.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- faqnodes.xml        21 Nov 2005 08:26:04 -0000      1.1
+++ faqnodes.xml        5 Jun 2008 14:48:57 -0000       1.2
@@ -1,23 +1,20 @@
-???<?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="faqnodes" maintainer="didactor.nl" version="3" 
extends="navigationnodes">
-  <status>active</status>
+<?xml version="1.0" ?>
+<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="faqnodes" maintainer="didactor.nl" version="3" 
extends="navigationnodes">
 
-  <classfile>org.mmbase.module.builders.Dummy</classfile>
   <searchage>1000</searchage>
 
   <names>
-    <!-- singles per language as defined by ISO 639 -->
     <singular xml:lang="en">Faqnode</singular>
     <singular xml:lang="nl">Faqnode</singular>
-  
-    <!-- multiple per language as defined by ISO 639 -->
     <plural xml:lang="en">Faqnodes</plural>
     <plural xml:lang="nl">Faqnodes</plural>
   </names>
 
   <descriptions>
-    <!-- descriptions per language as defined by ISO 639  -->
     <description xml:lang="en">Faq Node</description>
     <description xml:lang="nl">Faq Node</description>
   </descriptions>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to