You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tdk-dev@turbine.apache.org by mp...@apache.org on 2001/07/13 22:55:56 UTC
cvs commit: jakarta-turbine-tdk/src/share/sample30/scripts helloWorld.py
mpoeschl 01/07/13 13:55:56
Added: src/share/sample30/conf project-intake.xml
project-schema.xml
src/share/sample30/images tdm.jpg
src/share/sample30/resources/ui/skins/default skin.props
src/share/sample30/resources/ui/skins/default/images
alert1.gif alter2.gif line.gif
src/share/sample30/scripts helloWorld.py
Log:
add updated sample-app for turbine-3.0
Revision Changes Path
1.1 jakarta-turbine-tdk/src/share/sample30/conf/project-intake.xml
Index: project-intake.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE input-data SYSTEM
"http://jakarta.apache.org/turbine/dtd/intake.dtd">
<!-- PUBLIC "-//Apache//Apache-Turbine-Intake Application Data//EN" -->
<!-- ==================================================================== -->
<!-- -->
<!-- P R O J E C T I N P U T S -->
<!-- -->
<!-- ==================================================================== -->
<!-- This is an example. . -->
<!-- ==================================================================== -->
<input-data basePackage="org.tigris.scarab.">
<group class="Attribute" key="att" mapToObject="om.Attribute">
<field name="Id" key="id" type="NumberKey" mapToProperty="PrimaryKey">
<rule mask="[0-9]+">badIdMessage</rule>
</field>
<field name="TypeId" key="typeid" type="NumberKey">
<rule mask="[0-9]+">badIdMessage</rule>
</field>
<field name="Name" key="name" type="String" />
<field name="Deleted" key="del" type="boolean" />
</group>
<group class="AttributeValue" key="attv" mapToObject="om.AttributeValue">
<field name="Id" key="id" type="ComboKey" mapToProperty="PrimaryKey">
<rule mask="([0-9]|:)+">badIdMessage</rule>
</field>
<field name="OptionId" key="optionid" type="NumberKey">
<rule mask="^$|[0-9]+">Please select a valid choice</rule>
<required-message>
This module requires that you select an option for this attribute.
</required-message>
</field>
<field name="UserId" key="visid" type="NumberKey">
<rule mask="[0-9]+">badIdMessage</rule>
</field>
<field name="Value" key="val" type="String">
<rule maxLength="255">Value length cannot be > 255</rule>
<required-message>
This module requires data for this attribute.
</required-message>
</field>
<field name="Url" key="url" type="String" mapToProperty="Value">
<rule maxLength="255">Url length cannot be > 255</rule>
<rule mask="^$|http.+">Please enter an url starting with "http"</rule>
<required-message>This module requires a valid url.</required-message>
</field>
<field name="Deleted" key="del" type="boolean" />
</group>
<group class="Issue" key="issue" mapToObject="om.Issue">
<field name="Id" key="id" type="NumberKey" mapToProperty="PrimaryKey">
<rule mask="[0-9]+">badIdMessage</rule>
</field>
<field name="ModuleId" key="modid" type="NumberKey">
<rule mask="[0-9]+">badIdMessage</rule>
</field>
<field name="Deleted" key="del" type="boolean" />
</group>
<group class="Module" key="mod" mapToObject="om.Module">
<field name="Id" key="o" type="NumberKey" mapToProperty="PrimaryKey">
<rule mask="[0-9]+">badIdMessage</rule>
</field>
<field name="Name" key="name" type="String">
<rule maxLength="255"/>
</field>
<field name="Description" key="desc" type="String">
<rule maxLength="1024"/>
</field>
<field name="URL" key="url" type="String">
<rule maxLength="255"/>
</field>
<field name="ParentId" key="parentid" type="NumberKey">
<rule mask="[0-9]+">badIdMessage</rule>
</field>
<field name="OwnerId" key="ownerid" type="NumberKey">
<rule mask="[0-9]+">badIdMessage</rule>
</field>
<field name="Deleted" key="del" type="boolean" />
</group>
<group class="Login" key="login" mapToObject="om.ScarabUser">
<field name="Username" key="u" type="String" mapToProperty="Username">
<rule minLength="1">Please enter an email address</rule>
<rule mask=".+@.+\..+">Please enter a valid email address</rule>
</field>
<field name="Password" key="p" type="String">
<rule minLength="1">Please enter a password</rule>
</field>
</group>
</input-data>
1.1 jakarta-turbine-tdk/src/share/sample30/conf/project-schema.xml
Index: project-schema.xml
===================================================================
<!-- ==================================================================== -->
<!-- -->
<!-- T U R B I N E P R O J E C T S C H E M A -->
<!-- -->
<!-- ==================================================================== -->
<!-- This is an example Turbine project schema. -->
<!-- ==================================================================== -->
<app-data>
<database>
<table name="RDF" idMethod="idbroker">
<column name="RDF_ID" required="true" primaryKey="true" type="INTEGER"/>
<column name="TITLE" size="255" type="VARCHAR"/>
<column name="BODY" size="255" type="VARCHAR"/>
<column name="URL" size="255" type="VARCHAR"/>
<column name="AUTHOR" size="255" type="VARCHAR"/>
<column name="DEPT" size="255" type="VARCHAR"/>
</table>
</database>
</app-data>
1.1 jakarta-turbine-tdk/src/share/sample30/images/tdm.jpg
<<Binary file>>
1.1 jakarta-turbine-tdk/src/share/sample30/resources/ui/skins/default/skin.props
Index: skin.props
===================================================================
# These are the default properties
bgcolor = #ffffff
sansSerifFonts = verdana,geneva,helvetica
formLabelColor = #b3cc99
formFieldColor = #b3bb99
labelColor = #b3cc99
dataColor = #b3bb99
vlink = #00ff00
alink = #0000ff
tableCellSpacing = 0
tableCellPadding = 0
menuColor = #000000
buttonAlignment = left
buttonColor = #DDDDDD
# Images
alertImage = alert1.gif
logo = tambora.gif
poweredByImage = powered_by_tambora.gif
line = line.gif
darkColor = #000088
lightColor = #DDDDDD
tableColor = #AAAAAA
1.1 jakarta-turbine-tdk/src/share/sample30/resources/ui/skins/default/images/alert1.gif
<<Binary file>>
1.1 jakarta-turbine-tdk/src/share/sample30/resources/ui/skins/default/images/alter2.gif
<<Binary file>>
1.1 jakarta-turbine-tdk/src/share/sample30/resources/ui/skins/default/images/line.gif
<<Binary file>>
1.1 jakarta-turbine-tdk/src/share/sample30/scripts/helloWorld.py
Index: helloWorld.py
===================================================================
print 'hello world!'
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-tdk-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-tdk-dev-help@jakarta.apache.org