Update of
/var/cvs/contributions/didactor2/src/core/config/builders/didactor_resources
In directory james.mmbase.org:/tmp/cvs-serv23362
Modified Files:
audiotapes.xml videotapes.xml
Log Message:
added some properties which can be used to generate links to wizards
See also:
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/config/builders/didactor_resources
Index: audiotapes.xml
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/core/config/builders/didactor_resources/audiotapes.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- audiotapes.xml 28 Sep 2007 12:07:24 -0000 1.1
+++ audiotapes.xml 31 Jan 2008 13:15:53 -0000 1.2
@@ -1,246 +1,109 @@
-<?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="audiotapes" maintainer="mmbase.org" version="0"
extends="object">
-<status>active</status>
-<classfile>Dummy</classfile>
+<?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="audiotapes" maintainer="mmbase.org" version="0" extends="object">
+ <searchage>7</searchage>
-<searchage>7</searchage>
-
-<names>
- <!-- singles per language as defined by ISO 639 -->
+ <names>
<singular xml:lang="nl">AudioTape</singular>
<singular xml:lang="en">AudioTape</singular>
- <!-- multiple per language as defined by ISO 639 -->
<plural xml:lang="nl">AudioTape</plural>
<plural xml:lang="en">AudioTapes</plural>
-</names>
+ </names>
-<descriptions>
-<!-- descriptions per language as defined by ISO 639 -->
+ <descriptions>
<description xml:lang="nl">
AudioTape bevat metagegevens en een verwijzing (url) van een
audioopname(fragment) dat beschikbaar wordt gesteld op een externe locatie
(bijv. streams.omroep.nl)
</description>
<description xml:lang="en">
AudioTape contains metadata and an url of an audio(fragment)
that is available from an external source (eg. streams.omroep.nl)
</description>
-</descriptions>
+ </descriptions>
+
+ <properties>
+ <property name="wizard">config/audiotape/audiotapes</property>
+ <property name="orderby">title</property>
+ </properties>
-<!-- <properties>
-you can define properties to be used by the classfile (if used) it uses
-a key/value system. Its a optional tag.
--->
-<properties>
-</properties>
-
-<!-- <fieldlist>
- defines the different fields in this object, be carefull the order is
important
- once defined keep them in the same order.
- If you use number and owner (the 2 default fields, please check the
docs for this)
--->
-<fieldlist>
- <!-- POS 3 : <field> 'title' -->
- <field>
- <!-- gui related -->
+ <fieldlist>
+ <field name="title">
<gui>
<guiname xml:lang="nl">Titel</guiname>
<guiname xml:lang="en">Title</guiname>
- <guiname xml:lang="us">Title</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>title</name>
- <!-- MMBase datatype and demands on it -->
- <type state="persistent" size="255" notnull="false"
key="false">STRING</type>
- </db>
+ <datatype base="line" xmlns="http://www.mmbase.org/xmlns/datatypes">
+ <maxLength value="255" />
+ </datatype>
</field>
- <!-- POS 4 : <field> 'subtitle' -->
- <field>
- <!-- gui related -->
+ <field name="subtitle">
<gui>
<guiname xml:lang="nl">SubTitel</guiname>
<guiname xml:lang="en">SubTitle</guiname>
- <guiname xml:lang="us">SubTitle</guiname>
- <guitype>string</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>subtitle</name>
- <!-- MMBase datatype and demands on it -->
- <type state="persistent" size="255" notnull="false"
key="false">STRING</type>
- </db>
+ <datatype base="line" xmlns="http://www.mmbase.org/xmlns/datatypes">
+ <maxLength value="255" />
+ </datatype>
</field>
- <!-- POS 5 : <field> 'playtime' -->
- <field>
- <!-- gui related -->
+ <field name="playtime">
<gui>
<guiname xml:lang="nl">Lengte</guiname>
<guiname xml:lang="en">Length</guiname>
- <guiname xml:lang="us">Length</guiname>
- <guitype>lengtestartstop</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>-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>playtime</name>
- <!-- MMBase datatype and demands on it -->
- <type state="persistent" notnull="false"
key="false">INTEGER</type>
- </db>
+ <datatype base="integer" xmlns="http://www.mmbase.org/xmlns/datatypes" />
</field>
- <!-- POS 6 : <field> 'intro' -->
- <field>
- <!-- gui related -->
+ <field name="intro">
<gui>
<guiname xml:lang="nl">Samenvatting</guiname>
<guiname xml:lang="en">Intro</guiname>
- <guiname xml:lang="us">Intro</guiname>
- <guitype>field</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>-1</list>
- <!-- position in search area of the editor -->
- <search>4</search>
- </positions>
- </editor>
- <!-- database related -->
- <db>
- <!-- name of the field in the database -->
- <name>intro</name>
- <!-- MMBase datatype and demands on it -->
- <type state="persistent" size="2048" notnull="false"
key="false">STRING</type>
- </db>
- </field>
-
- <!-- POS 7 : <field> 'url' -->
- <field>
- <!-- gui related -->
- <gui>
- <guiname xml:lang="us">url</guiname>
- <guitype>eovideo</guitype>
- </gui>
- <!-- editor related -->
- <editor>
- <positions>
- <!-- position in the input area of the editor
-->
- <input>8</input>
- <!-- position in list area of the editor -->
- <list>-1</list>
- <!-- position in search area of the editor -->
- <search>8</search>
- </positions>
- </editor>
- <!-- database related -->
- <db>
- <!-- name of the field in the database -->
- <name>url</name>
- <!-- MMBase datatype and demands on it -->
- <type state="persistent" size="255" notnull="false"
key="false">STRING</type>
- </db>
+ <datatype base="field" xmlns="http://www.mmbase.org/xmlns/datatypes">
+ <maxLength value="2048" />
+ </datatype>
</field>
- <!-- POS 8 : <field> 'body' -->
- <field>
- <!-- gui related -->
+ <field name="url">
+ <datatype base="eline" xmlns="http://www.mmbase.org/xmlns/datatypes">
+ <maxLength value="255" />
+ </datatype>
+ </field>
+ <field name="body">
<gui>
<guiname xml:lang="nl">Tekst</guiname>
<guiname xml:lang="en">Text</guiname>
- <guiname xml:lang="us">Text</guiname>
- <guitype>field</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>-1</list>
- <!-- position in search area of the editor -->
- <search>5</search>
- </positions>
- </editor>
- <!-- database related -->
- <db>
- <!-- name of the field in the database -->
- <name>body</name>
- <!-- MMBase datatype and demands on it -->
- <type state="persistent" size="16000" notnull="false"
key="false">STRING</type>
- </db>
+ <datatype base="field" xmlns="http://www.mmbase.org/xmlns/datatypes">
+ <maxLength value="1600" />
+ </datatype>
</field>
- <!-- POS 9 : <field> 'showtitle' -->
- <field>
- <!-- field descriptions (help texts) -->
+ <field name="showtitle">
<descriptions>
<description xml:lang="nl">Titel laten zien</description>
<description xml:lang="en">Show the title</description>
</descriptions>
- <!-- gui related -->
<gui>
<guiname xml:lang="nl">ToonTitel</guiname>
<guiname xml:lang="en">ShowTitle</guiname>
<guitype>string</guitype>
</gui>
- <!-- editor related -->
- <editor>
- <positions>
- <!-- position in the input area of the editor -->
- <input>7</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>showtitle</name>
- <!-- MMBase datatype and demands on it -->
- <type key="false" notnull="false" size="255"
state="persistent">STRING</type>
- </db>
+ <datatype base="boolean" xmlns="http://www.mmbase.org/xmlns/datatypes" />
</field>
</fieldlist>
Index: videotapes.xml
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/core/config/builders/didactor_resources/videotapes.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- videotapes.xml 28 Sep 2007 12:07:24 -0000 1.1
+++ videotapes.xml 31 Jan 2008 13:15:53 -0000 1.2
@@ -18,6 +18,12 @@
<description xml:lang="en">Video part does not define format thats done by
rawvideos</description>
</descriptions>
+ <properties>
+ <property name="wizard">config/videotape/videotapes</property>
+ <property name="orderby">title</property>
+ </properties>
+
+
<fieldlist>
<field name="title">
<gui>
@@ -29,10 +35,9 @@
<list>1</list>
</positions>
</editor>
- <datatype base="line" xmlns="http://www.mmbase.org/xmlns/datatypes" />
- <db>
- <type state="persistent" size="255" notnull="false"
key="false">STRING</type>
- </db>
+ <datatype base="line" xmlns="http://www.mmbase.org/xmlns/datatypes">
+ <maxLength value="255" />
+ </datatype>
</field>
<field name="subtitle">
<gui>
@@ -44,10 +49,9 @@
<list>2</list>
</positions>
</editor>
- <datatype base="line" xmlns="http://www.mmbase.org/xmlns/datatypes" />
- <db>
- <type state="persistent" size="255" notnull="false"
key="false">STRING</type>
- </db>
+ <datatype base="line" xmlns="http://www.mmbase.org/xmlns/datatypes">
+ <maxLength value="255" />
+ </datatype>
</field>
<field name="playtime">
<gui>
@@ -61,20 +65,18 @@
<guiname xml:lang="nl">Samenvatting</guiname>
<guiname xml:lang="en">Intro</guiname>
</gui>
- <datatype base="field" xmlns="http://www.mmbase.org/xmlns/datatypes" />
- <db>
- <type state="persistent" size="2048" notnull="false"
key="false">STRING</type>
- </db>
+ <datatype base="field" xmlns="http://www.mmbase.org/xmlns/datatypes">
+ <maxLength value="2048" />
+ </datatype>
</field>
<field name="url">
<gui>
<guiname xml:lang="en">url</guiname>
</gui>
- <datatype base="eline" xmlns="http://www.mmbase.org/xmlns/datatypes" />
- <db>
- <type state="persistent" size="255" notnull="true"
key="false">STRING</type>
- </db>
+ <datatype base="eline" xmlns="http://www.mmbase.org/xmlns/datatypes">
+ <maxLength value="255" />
+ </datatype>
</field>
<field name="body">
@@ -82,10 +84,9 @@
<guiname xml:lang="nl">Tekst</guiname>
<guiname xml:lang="en">Text</guiname>
</gui>
- <datatype base="field" xmlns="http://www.mmbase.org/xmlns/datatypes" />
- <db>
- <type state="persistent" size="4000" notnull="false"
key="false">STRING</type>
- </db>
+ <datatype base="field" xmlns="http://www.mmbase.org/xmlns/datatypes">
+ <maxLength value="4000" />
+ </datatype>
</field>
<field name="showtitle">
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs