commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r135 - in gnue-pim: . schema scripts


From: kilo
Subject: r135 - in gnue-pim: . schema scripts
Date: Wed, 24 Nov 2004 16:21:40 -0600 (CST)

Author: kilo
Date: 2004-11-24 16:21:39 -0600 (Wed, 24 Nov 2004)
New Revision: 135

Added:
   gnue-pim/INSTALL
   gnue-pim/NEWS
   gnue-pim/TODO
   gnue-pim/reports/
   gnue-pim/scripts/
   gnue-pim/scripts/setup-db.sh
   gnue-pim/scripts/start-appserver.sh
Removed:
   gnue-pim/schema/setup-db.sh
   gnue-pim/start-appserver.sh
Modified:
   gnue-pim/README
   gnue-pim/schema/gnue.gsd
Log:
GNUe PIM.
Set up 'standard' files and directories.

Added: gnue-pim/INSTALL
===================================================================
--- gnue-pim/INSTALL    2004-11-24 13:56:16 UTC (rev 134)
+++ gnue-pim/INSTALL    2004-11-24 22:21:39 UTC (rev 135)
@@ -0,0 +1,29 @@
+First, you must set up your connections.conf file (usually found in
+~/gnue/etc). It should contain a section like:
+
+[pim-backend]
+comment = GNUe-contrib GNUe-PIM project's backend DB
+provider = postgresql.psycopg
+host = your-machine-name
+dbname = pim
+
+(if using PostgreSQL) or (if using FirebirdSQL):
+
+[pim-backend]
+comment = GNUe-contrib GNUe-PIM project's backend DB
+provider = interbase
+host = localhost
+dbname = /home/your-username/pim.fdb
+
+Then (for any DB you use) there should be an entry like this:
+
+[pim]
+comment = GNUe-contrib GNUe-PIM project
+provider = appserver
+rpctype = xmlrpc
+port = 8765
+host = localhost
+transport = http
+
+In the directory ./schema run setup-db.sh, it will create the
+GNUe AppServer database backend automagically.

Added: gnue-pim/NEWS
===================================================================

Modified: gnue-pim/README
===================================================================
--- gnue-pim/README     2004-11-24 13:56:16 UTC (rev 134)
+++ gnue-pim/README     2004-11-24 22:21:39 UTC (rev 135)
@@ -1,46 +1,15 @@
-This is sample project is in a quite 'dirty' state.
+This sample project is in a quite 'dirty' state.
 
 There are the following issues at the moment:
 
-Notes on setup:
----------------
-
-First, you must set up your connections.conf file (usually found in
-~/gnue/etc). It should contain a section like:
-
-[pim-backend]
-comment = GNUe-contrib GNUe-PIM project's backend DB
-provider = postgresql.psycopg
-host = your-machine-name
-dbname = hotline
-
-(if using PostgreSQL) or (if using FirebirdSQL):
-
-[pim-backend]
-comment = GNUe-contrib GNUe-PIM project's backend DB
-provider = interbase
-host = localhost
-dbname = /home/your-username/pim.fdb
-
-Then (for any DB you use) there should be an entry like this:
-
-[pim]
-comment = GNUe-contrib GNUe-PIM project
-provider = appserver
-rpctype = xmlrpc
-port = 8765
-host = localhost
-transport = http
-
-In the directory ./schema run setup-db.sh, it will create the
-GNUe AppServer database backend automagically.
+First, follow the setup instructions.
 Then you should run GNUe AppServer in a terminal with the option
 '--database pim-backend', ie:
 gacvs --database pim-backend -Z
-('start-appserver.sh' is provided to do that).
+('scripts/start-appserver.sh' is provided to do that).
 Open another terminal and use GNUe Forms to open the file
 gnue-pim.gfd.
 
 The GNUe-PIM project is known to be running on GNUe AppServer version
-0.2.0, as of 29/09/2004, SVN version:6423. 'gnue.gsd' in the /schema directory
+0.3.0, as of 15/10/2004, SVN version:6501. 'gnue.gsd' in the /schema directory
 is an exact copy of that found in GNUe AppServer's /share directory.

Added: gnue-pim/TODO
===================================================================

Modified: gnue-pim/schema/gnue.gsd
===================================================================
--- gnue-pim/schema/gnue.gsd    2004-11-24 13:56:16 UTC (rev 134)
+++ gnue-pim/schema/gnue.gsd    2004-11-24 22:21:39 UTC (rev 135)
@@ -22,7 +22,7 @@
   write to the Free Software Foundation, Inc., 59 Temple Place
   - Suite 330, Boston, MA 02111-1307, USA.
  
-  $Id: gnue.gsd 6406 2004-09-27 19:29:30Z johannes $
+  $Id: gnue.gsd 6590 2004-11-01 08:43:14Z johannes $
 
   Run this file through gnue-schema to create and populate the database -->
 
@@ -65,8 +65,8 @@
                description="Module that defined this class" />
         <field name="gnue_name" type="string" length="35" nullable="N"
                description="Classname without modulename" />
-        <field name="gnue_filter" type="string" length="35"
-               description="Master-Class of the class" />
+        <field name="gnue_filter" type="string" length="32"
+               description="Filter-Class of the class" />
       </fields>
       <indexes/>
       <constraints>
@@ -74,6 +74,10 @@
           <constraintfield name="gnue_module"/>
           <constraintref name="gnue_id" table="gnue_module"/>
         </constraint>
+        <constraint name="fk_gnue_class_gnue_filter" type="foreignkey">
+          <constraintfield name="gnue_filter"/>
+          <constraintref name="gnue_id" table="gnue_class"/>
+        </constraint>
       </constraints>
       <primarykey name="pk_gnue_class">
         <pkfield name="gnue_id"/>
@@ -264,49 +268,6 @@
       </primarykey>
     </table>
 
-    <!-- ============================================================ -->
-    <!-- Company                                                      -->
-    <!-- ============================================================ -->
-    <table name="gnue_company">
-      <fields>
-        <field name="gnue_id" type="string" length="32" nullable="N"
-               description="Object ID"/>
-        <field name="gnue_code" type="string" length="8" nullable="N" 
-               description="Code of the company"/>
-        <field name="gnue_name" type="string" length="35" nullable="N"
-               description="Name of the company"/>
-      </fields>
-      <indexes/>
-      <constraints/>
-      <primarykey name="pk_gnue_company">
-        <pkfield name="gnue_id"/>
-      </primarykey>
-    </table>
-
-    <!-- ============================================================ -->
-    <!-- Year                                                         -->
-    <!-- ============================================================ -->
-    <table name="gnue_year">
-      <fields>
-        <field name="gnue_id" type="string" length="32" nullable="N"
-               description="Object ID"/>
-        <field name="gnue_company" type="string" length="32" nullable="N" 
-               description="Company this year is assigned to"/>
-        <field name="gnue_code" type="string" length="8" nullable="N" 
-               description="Code of the year"/>
-      </fields>
-      <indexes/>
-      <constraints>
-        <constraint name="fk_gnue_year_gnue_company" type="foreignkey">
-          <constraintfield name="gnue_company"/>
-          <constraintref name="gnue_id" table="gnue_company"/>
-        </constraint>
-      </constraints>
-      <primarykey name="pk_gnue_year">
-        <pkfield name="gnue_id"/>
-      </primarykey>
-    </table>
-
   </tables>
   <data>
 
@@ -383,19 +344,6 @@
           <value field="gnue_module">00000000000000000000000000000000</value>
           <value field="gnue_name">message</value>
         </row>
-        <row>
-          <value field="gnue_comment">GNU Enterprise Company</value>
-          <value field="gnue_id">00000000000000000000000000000090</value>
-          <value field="gnue_module">00000000000000000000000000000000</value>
-          <value field="gnue_name">company</value>
-        </row>
-        <row>
-          <value field="gnue_comment">GNU Enterprise Year</value>
-          <value field="gnue_id">000000000000000000000000000000A0</value>
-          <value field="gnue_module">00000000000000000000000000000000</value>
-          <value field="gnue_name">year</value>
-          <value field="gnue_filter">gnue_company</value>
-        </row>
       </rows>
     </tabledata>
 
@@ -495,11 +443,10 @@
           <value field="gnue_module">00000000000000000000000000000000</value>
           <value field="gnue_class">00000000000000000000000000000020</value>
           <value field="gnue_id">00000000000000000000000000000025</value>
-          <value field="gnue_comment">Master-Class of the class</value>
-          <value field="gnue_length">35</value>
+          <value field="gnue_comment">Filter-Class of the class</value>
           <value field="gnue_name">filter</value>
           <value field="gnue_nullable">TRUE</value>
-          <value field="gnue_type">string</value>
+          <value field="gnue_type">gnue_class</value>
         </row>
 
         <!-- ============================================================ -->
@@ -915,70 +862,6 @@
           <value field="gnue_nullable">TRUE</value>
         </row>
 
-        <!-- ============================================================ -->
-        <!-- Properties of gnue_company                                   -->
-        <!-- ============================================================ -->
-        <row>
-          <value field="gnue_module">00000000000000000000000000000000</value>
-          <value field="gnue_class">00000000000000000000000000000090</value>
-          <value field="gnue_id">00000000000000000000000000000091</value>
-          <value field="gnue_comment">Object ID</value>
-          <value field="gnue_name">id</value>
-          <value field="gnue_nullable">FALSE</value>
-          <value field="gnue_type">id</value>
-        </row>
-        <row>
-          <value field="gnue_module">00000000000000000000000000000000</value>
-          <value field="gnue_class">00000000000000000000000000000090</value>
-          <value field="gnue_id">00000000000000000000000000000092</value>
-          <value field="gnue_comment">Code of the company</value>
-          <value field="gnue_name">code</value>
-          <value field="gnue_nullable">FALSE</value>
-          <value field="gnue_type">string</value>
-          <value field="gnue_length">8</value>
-        </row>
-        <row>
-          <value field="gnue_module">00000000000000000000000000000000</value>
-          <value field="gnue_class">00000000000000000000000000000090</value>
-          <value field="gnue_id">00000000000000000000000000000093</value>
-          <value field="gnue_comment">Name of the company</value>
-          <value field="gnue_name">name</value>
-          <value field="gnue_nullable">FALSE</value>
-          <value field="gnue_type">string</value>
-          <value field="gnue_length">35</value>
-        </row>
-
-        <!-- ============================================================ -->
-        <!-- Properties of gnue_year                                      -->
-        <!-- ============================================================ -->
-        <row>
-          <value field="gnue_module">00000000000000000000000000000000</value>
-          <value field="gnue_class">000000000000000000000000000000A0</value>
-          <value field="gnue_id">000000000000000000000000000000A1</value>
-          <value field="gnue_comment">Object ID</value>
-          <value field="gnue_name">id</value>
-          <value field="gnue_nullable">FALSE</value>
-          <value field="gnue_type">id</value>
-        </row>
-        <row>
-          <value field="gnue_module">00000000000000000000000000000000</value>
-          <value field="gnue_class">000000000000000000000000000000A0</value>
-          <value field="gnue_id">000000000000000000000000000000A2</value>
-          <value field="gnue_comment">Code of the year</value>
-          <value field="gnue_name">code</value>
-          <value field="gnue_nullable">FALSE</value>
-          <value field="gnue_type">string</value>
-          <value field="gnue_length">8</value>
-        </row>
-        <row>
-          <value field="gnue_module">00000000000000000000000000000000</value>
-          <value field="gnue_class">000000000000000000000000000000A0</value>
-          <value field="gnue_id">000000000000000000000000000000A3</value>
-          <value field="gnue_comment">Company this year is assigned to</value>
-          <value field="gnue_name">company</value>
-          <value field="gnue_nullable">FALSE</value>
-          <value field="gnue_type">gnue_company</value>
-        </row>
       </rows>
     </tabledata>
 
@@ -1010,12 +893,10 @@
           <value field="gnue_nullable">TRUE</value>
           <value field="gnue_type">string</value>
           <value field="gnue_code">
-            from gnue.appserver import labels
-            labels.find  = find
-            labels.abort = abort
-            formGen = labels.FormGenerator (self, language, connection,
-                                            formwidth, formheight)
-            return formGen.generateForm ()
+            from gnue.appserver.generator.form import FormGenerator
+            formGen = FormGenerator (session, self, language, connection,
+                                     formwidth, formheight)
+            return formGen.run ()
           </value>
         </row>
       </rows>

Deleted: gnue-pim/schema/setup-db.sh
===================================================================
--- gnue-pim/schema/setup-db.sh 2004-11-24 13:56:16 UTC (rev 134)
+++ gnue-pim/schema/setup-db.sh 2004-11-24 22:21:39 UTC (rev 135)
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-gsscvs --connection=pim-backend --createdb gnue.gsd
-
-gcdcvs --connection=pim-backend addr.gcd
-gcdcvs --connection=pim-backend comm.gcd
-gcdcvs --connection=pim-backend person.gcd
-gcdcvs --connection=pim-backend party.gcd
-gcdcvs --connection=pim-backend pim.gcd
-
-#gsscvs --connection=pim-backend pim.gsd

Copied: gnue-pim/scripts/setup-db.sh (from rev 134, gnue-pim/schema/setup-db.sh)

Copied: gnue-pim/scripts/start-appserver.sh (from rev 134, 
gnue-pim/start-appserver.sh)

Deleted: gnue-pim/start-appserver.sh
===================================================================
--- gnue-pim/start-appserver.sh 2004-11-24 13:56:16 UTC (rev 134)
+++ gnue-pim/start-appserver.sh 2004-11-24 22:21:39 UTC (rev 135)
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-gacvs --database pim-backend -Z





reply via email to

[Prev in Thread] Current Thread [Next in Thread]