Update of 
/var/cvs/contributions/didactor2/src/core/config/builders/didactor_core
In directory james.mmbase.org:/tmp/cvs-serv12350

Modified Files:
        rolerel.xml 
Log Message:
dramatically cleaned up


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


Index: rolerel.xml
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/core/config/builders/didactor_core/rolerel.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- rolerel.xml 28 Sep 2007 12:06:08 -0000      1.1
+++ rolerel.xml 24 Jan 2008 17:34:23 -0000      1.2
@@ -1,225 +1,32 @@
-<?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 extends="insrel" maintainer="mmbase.org" name="rolerel" version="0">
-  <!-- Builder configuration for rolerel -->
-  <!-- Status of the builder: active or inactive -->
-  <status>active</status>
-  <!-- Classname of the builder.
-This is a optional tag, it names the classfile to use for this builder
-Providing an alternate buidler class allows you to add or change support 
routines. -->
-  <classfile>RoleRel</classfile>
-  <!-- The default maximum age of objects in a search
-used by some MMBase editors to limit the results of a search -->
+<?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="rolerel" maintainer="mmbase.org" version="0" extends="insrel">
+
+  <class>RoleRel</class>
   <searchage>14</searchage>
-  <!-- Names defines the different names used in user visible parts
-Singular names are used when talking about one object (Url,Person) and plurar 
when talking about multiple objects (Urls, people).
-Names can be provided in various languages. -->
   <names>
-    <!-- singular names per language as defined by ISO 639 -->
-    <singular xml:lang="us">Rol</singular>
-    <!-- plural names per language as defined by ISO 639 -->
-    <plural xml:lang="us">Rol</plural>
+    <singular xml:lang="en">Role</singular>
+    <plural xml:lang="en">Roles</plural>
   </names>
-  <!-- Descriptions are ment to provide some additional clarification to an 
object.
-They are useful for GUI editors to provide helptexts.
-Descriptions can be provided in various languages. -->
   <descriptions>
-    <description xml:lang="us">Role relation, defines what role a person for 
example performs for a company</description>
+    <description xml:lang="en">Role relation, defines what role a person for 
example performs for a company</description>
   </descriptions>
-  <!-- decsription per language as defined by ISO 639 -->
-  <!-- You can define properties to be used by the classfile.
-Properties are entered using name/value pairs.
-The actual properties available differ by class. -->
-  <properties/>
-  <!-- defines the different fields in this object
-Depending on the database, the order of the fields may be important.
-Once defined, it is a good practice to keep the same order.
-This counts especially when you convert buidler configurations using builder 
inheritance. -->
   <fieldlist>
-    <!-- field definition for field 1 : number -->
-    <field>
-      <!-- gui related -->
+    <field name="role">
       <gui>
-        <guiname xml:lang="us">Object</guiname>
-        <guitype>integer</guitype>
+        <guiname xml:lang="en">Role</guiname>
+        <guiname xml:lang="nl">Rol</guiname>
       </gui>
-      <!-- editor related -->
       <editor>
-        <positions>
-          <!-- position in the input area of the editor -->
-          <input>-1</input>
-          <!-- position in the list area of the editor -->
-          <list>10</list>
-          <!-- position in the search area of the editor -->
-          <search>10</search>
-        </positions>
+        <positions><list>4</list></positions>
       </editor>
-      <!-- database related -->
-      <db>
-        <!-- name of the field in the database -->
-        <name xml:lang="us">number</name>
-        <!-- MMBase datatype and demands on it -->
-        <type key="true" notnull="true" state="persistent">INTEGER</type>
-      </db>
-    </field>
-    <!-- field definition for field 3 : owner -->
-    <field>
-      <!-- gui related -->
-      <gui>
-        <guiname xml:lang="us">Eigenaar</guiname>
-        <guitype>string</guitype>
-      </gui>
-      <!-- editor related -->
-      <editor>
-        <positions>
-          <!-- position in the input area of the editor -->
-          <input>-1</input>
-          <!-- position in the list area of the editor -->
-          <list>11</list>
-          <!-- position in the search area of the editor -->
-          <search>11</search>
-        </positions>
-      </editor>
-      <!-- database related -->
-      <db>
-        <!-- name of the field in the database -->
-        <name xml:lang="us">owner</name>
-        <!-- MMBase datatype and demands on it -->
-        <type key="false" notnull="false" size="12" 
state="persistent">STRING</type>
-      </db>
-    </field>
-    <!-- field definition for field 4 : snumber -->
-    <field>
-      <!-- gui related -->
-      <gui>
-        <guiname xml:lang="us">Src</guiname>
-        <guitype>integer</guitype>
-      </gui>
-      <!-- editor related -->
-      <editor>
-        <positions>
-          <!-- position in the input area of the editor -->
-          <input>-1</input>
-          <!-- position in the list area of the editor -->
-          <list>1</list>
-          <!-- position in the search area of the editor -->
-          <search>1</search>
-        </positions>
-      </editor>
-      <!-- database related -->
-      <db>
-        <!-- name of the field in the database -->
-        <name xml:lang="us">snumber</name>
-        <!-- MMBase datatype and demands on it -->
-        <type key="false" notnull="false" state="persistent">INTEGER</type>
-      </db>
-    </field>
-    <!-- field definition for field 5 : dnumber -->
-    <field>
-      <!-- gui related -->
-      <gui>
-        <guiname xml:lang="us">Dst</guiname>
-        <guitype>integer</guitype>
-      </gui>
-      <!-- editor related -->
-      <editor>
-        <positions>
-          <!-- position in the input area of the editor -->
-          <input>-1</input>
-          <!-- position in the list area of the editor -->
-          <list>2</list>
-          <!-- position in the search area of the editor -->
-          <search>2</search>
-        </positions>
-      </editor>
-      <!-- database related -->
-      <db>
-        <!-- name of the field in the database -->
-        <name xml:lang="us">dnumber</name>
-        <!-- MMBase datatype and demands on it -->
-        <type key="false" notnull="false" state="persistent">INTEGER</type>
-      </db>
-    </field>
-    <!-- field definition for field 6 : rnumber -->
-    <field>
-      <!-- gui related -->
-      <gui>
-        <guiname xml:lang="us">Rel</guiname>
-        <guitype>integer</guitype>
-      </gui>
-      <!-- editor related -->
-      <editor>
-        <positions>
-          <!-- position in the input area of the editor -->
-          <input>-1</input>
-          <!-- position in the list area of the editor -->
-          <list>3</list>
-          <!-- position in the search area of the editor -->
-          <search>3</search>
-        </positions>
-      </editor>
-      <!-- database related -->
-      <db>
-        <!-- name of the field in the database -->
-        <name xml:lang="us">rnumber</name>
-        <!-- MMBase datatype and demands on it -->
-        <type key="false" notnull="false" state="persistent">INTEGER</type>
-      </db>
-    </field>
-    <!-- field definition for field 7 : dir -->
-    <field>
-      <!-- gui related -->
-      <gui>
-        <guiname xml:lang="nl">Richting</guiname>
-        <guiname xml:lang="fr">Direction</guiname>
-        <guiname xml:lang="en">Direction</guiname>
-        <guiname xml:lang="us">Direction</guiname>
-        <guitype>dirs</guitype>
-      </gui>
-      <!-- editor related -->
-      <editor>
-        <positions>
-          <!-- position in the input area of the editor -->
-          <input>-1</input>
-          <!-- position in the list area of the editor -->
-          <list>-1</list>
-          <!-- position in the search area of the editor -->
-          <search>-1</search>
-        </positions>
-      </editor>
-      <!-- database related -->
-      <db>
-        <!-- name of the field in the database -->
-        <name xml:lang="us">dir</name>
-        <!-- MMBase datatype and demands on it -->
-        <type key="false" notnull="false" state="persistent">INTEGER</type>
-      </db>
-    </field>
-    <!-- field definition for field 8 : role -->
-    <field>
-      <!-- gui related -->
-      <gui>
-        <guiname xml:lang="us">Rol</guiname>
-        <guitype>string</guitype>
-      </gui>
-      <!-- editor related -->
-      <editor>
-        <positions>
-          <!-- position in the input area of the editor -->
-          <input>1</input>
-          <!-- position in the list area of the editor -->
-          <list>4</list>
-          <!-- position in the search area of the editor -->
-          <search>4</search>
-        </positions>
-      </editor>
-      <!-- database related -->
-      <db>
-        <!-- name of the field in the database -->
-        <name xml:lang="us">role</name>
-        <!-- MMBase datatype and demands on it -->
-        <type key="false" notnull="false" size="255" 
state="persistent">STRING</type>
-      </db>
+      <datatype base="eline" xmlns="http://www.mmbase.org/xmlns/datatypes";>
+        <required value="true" />
+        <maxLength value="255" />
+      </datatype>
     </field>
   </fieldlist>
 </builder>
\ No newline at end of file
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to