commit-gnue
[Top][All Lists]
Advanced

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

r5314 - in trunk: gnue-common gnue-common/src/datasources/drivers/adodba


From: jcater
Subject: r5314 - in trunk: gnue-common gnue-common/src/datasources/drivers/adodbapi gnue-common/src/datasources/drivers/adodbapi/adodbapi gnue-common/src/datasources/drivers/appserver gnue-common/src/datasources/drivers/appserver/appserver gnue-common/src/datasources/drivers/csv gnue-common/src/datasources/drivers/csv/csv gnue-common/src/datasources/drivers/db2 gnue-common/src/datasources/drivers/db2/db2 gnue-common/src/datasources/drivers/dbf gnue-common/src/datasources/drivers/dbf/dbf gnue-common/src/datasources/drivers/gadfly gnue-common/src/datasources/drivers/gadfly/gadfly gnue-common/src/datasources/drivers/informix gnue-common/src/datasources/drivers/informix/informix gnue-common/src/datasources/drivers/ingres gnue-common/src/datasources/drivers/ingres/ingres gnue-common/src/datasources/drivers/interbase gnue-common/src/datasources/drivers/interbase/interbase gnue-common/src/datasources/drivers/mysql gnue-common/src/datasources/drivers/mysql/mysql gnue-common/src/datas ources/drivers/odbc gnue-common/src/datasources/drivers/odbc/wodbc gnue-common/src/datasources/drivers/oracle gnue-common/src/datasources/drivers/oracle/cxoracle gnue-common/src/datasources/drivers/oracle/dcoracle gnue-common/src/datasources/drivers/postgresql gnue-common/src/datasources/drivers/postgresql/popy gnue-common/src/datasources/drivers/postgresql/psycopg gnue-common/src/datasources/drivers/postgresql/pygresql gnue-common/src/datasources/drivers/postgresql/pypgsql gnue-common/src/datasources/drivers/sapdb gnue-common/src/datasources/drivers/sapdb/sapdb gnue-common/src/datasources/drivers/sqlite gnue-common/src/datasources/drivers/sqlite/sqlite gnue-common/src/datasources/drivers/sqlrelay gnue-common/src/datasources/drivers/sqlrelay/sqlrelay gnue-common/src/datasources/drivers/sybase gnue-common/src/datasources/drivers/sybase/sybase gnue-common/utils/helpers www/utils
Date: Fri, 12 Mar 2004 17:16:11 -0600 (CST)

Author: jcater
Date: 2004-03-12 17:16:09 -0600 (Fri, 12 Mar 2004)
New Revision: 5314

Added:
   trunk/gnue-common/utils/helpers/info.py
Modified:
   trunk/gnue-common/README.databases
   trunk/gnue-common/src/datasources/drivers/adodbapi/Info.py
   trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/Info.py
   trunk/gnue-common/src/datasources/drivers/appserver/Info.py
   trunk/gnue-common/src/datasources/drivers/appserver/appserver/Info.py
   trunk/gnue-common/src/datasources/drivers/csv/Info.py
   trunk/gnue-common/src/datasources/drivers/csv/csv/Info.py
   trunk/gnue-common/src/datasources/drivers/db2/Info.py
   trunk/gnue-common/src/datasources/drivers/db2/db2/Info.py
   trunk/gnue-common/src/datasources/drivers/dbf/Info.py
   trunk/gnue-common/src/datasources/drivers/dbf/dbf/Info.py
   trunk/gnue-common/src/datasources/drivers/gadfly/Info.py
   trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/Info.py
   trunk/gnue-common/src/datasources/drivers/informix/Info.py
   trunk/gnue-common/src/datasources/drivers/informix/informix/Info.py
   trunk/gnue-common/src/datasources/drivers/ingres/Info.py
   trunk/gnue-common/src/datasources/drivers/ingres/ingres/Info.py
   trunk/gnue-common/src/datasources/drivers/interbase/Info.py
   trunk/gnue-common/src/datasources/drivers/interbase/interbase/Info.py
   trunk/gnue-common/src/datasources/drivers/mysql/Info.py
   trunk/gnue-common/src/datasources/drivers/mysql/mysql/Info.py
   trunk/gnue-common/src/datasources/drivers/odbc/Info.py
   trunk/gnue-common/src/datasources/drivers/odbc/wodbc/Info.py
   trunk/gnue-common/src/datasources/drivers/oracle/Info.py
   trunk/gnue-common/src/datasources/drivers/oracle/cxoracle/Info.py
   trunk/gnue-common/src/datasources/drivers/oracle/dcoracle/Info.py
   trunk/gnue-common/src/datasources/drivers/postgresql/Info.py
   trunk/gnue-common/src/datasources/drivers/postgresql/popy/Info.py
   trunk/gnue-common/src/datasources/drivers/postgresql/psycopg/Info.py
   trunk/gnue-common/src/datasources/drivers/postgresql/pygresql/Info.py
   trunk/gnue-common/src/datasources/drivers/postgresql/pypgsql/Info.py
   trunk/gnue-common/src/datasources/drivers/sapdb/Info.py
   trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/Info.py
   trunk/gnue-common/src/datasources/drivers/sqlite/Info.py
   trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/Info.py
   trunk/gnue-common/src/datasources/drivers/sqlrelay/Info.py
   trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/Info.py
   trunk/gnue-common/src/datasources/drivers/sybase/Info.py
   trunk/gnue-common/src/datasources/drivers/sybase/sybase/Info.py
   trunk/gnue-common/utils/helpers/files.py
   trunk/www/utils/create-release-announcements
   trunk/www/utils/create-website
Log:
More work on automatically creating a database compatability list

Modified: trunk/gnue-common/README.databases
===================================================================
--- trunk/gnue-common/README.databases  2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/README.databases  2004-03-12 23:16:09 UTC (rev 5314)
@@ -689,14 +689,15 @@
     Example connections.conf entry:
 
        [myconn]
-       provider=sqlrelay       # Use the DB/2 Oracle adapter
-       host=hostname:port      # The host and port running SQLRelay
+       provider=sqlrelay       # Use the SQLRelay adapter
+       host=hostname           # The host running SQLRelay
+       port=9000
 
     Notes:
 
-      1. This driver has not been fully tested.  If you are successfully using
-         this driver, please let us know.
+    1. This driver has not been fully tested.  If you are successfully using
+        this driver, please let us know.
 
-      2. This driver does not support schema introspection, so you will not
-         be able to use Wizards in GNUe Designer.
+    2. This driver does not support schema introspection, so you will not
+        be able to use Wizards in GNUe Designer.
 

Modified: trunk/gnue-common/src/datasources/drivers/adodbapi/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/adodbapi/Info.py  2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/adodbapi/Info.py  2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,10 +25,10 @@
 #
 # Documentation
 #
-__name__ = "ADO API"
-__url__ = ""
-__description__ = """
+name = "ADO API"
+url = ""
+description = """
 Drivers for MS SQL-Server/MS Access database access.
 """
-__isfree__ = False  # Should be false for non-free DBMSs... we don't want to
+isfree = False  # Should be false for non-free DBMSs... we don't want to
                     # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/Info.py 
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/Info.py 
2004-03-12 23:16:09 UTC (rev 5314)
@@ -22,9 +22,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("adodbapi")
-__url__ = "http://sourceforge.net/projects/adodbapi";
-__doc__ = """
+name = _("adodbapi")
+url = "http://sourceforge.net/projects/adodbapi";
+doc = """
 Description
 -----------
 A Python DB-API 2.0 module that makes it easy to use Microsoft ADO

Modified: trunk/gnue-common/src/datasources/drivers/appserver/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/appserver/Info.py 2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/appserver/Info.py 2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,10 +25,10 @@
 #
 # Documentation
 #
-__name__ = "GNUe AppServer"
-__url__ = "http://www.gnuenterprise.org/tools/appserver/";
-__description__ = """
+name = "GNUe AppServer"
+url = "http://www.gnuenterprise.org/tools/appserver/";
+description = """
 GNUe AppServer is GNUe's middleware for database access.
 """
-__isfree__ = True  # Should be false for non-free DBMSs... we don't want to
+isfree = True  # Should be false for non-free DBMSs... we don't want to
                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/appserver/appserver/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/appserver/appserver/Info.py       
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/appserver/appserver/Info.py       
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("GNUe AppServer Driver")
-__url__ = "http://www.gnuenterprise.org/tools/appserver/";
-__doc__ = """
+name = _("GNUe AppServer Driver")
+url = "http://www.gnuenterprise.org/tools/appserver/";
+doc = """
 Description
 -----------
 Python driver GNUe Application Server.

Modified: trunk/gnue-common/src/datasources/drivers/csv/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/csv/Info.py       2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/csv/Info.py       2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,14 +25,14 @@
 #
 # Documentation
 #
-__name__ = "CSV (Comma Separated Values) Files"
-__url__ = ""
-__description__ = """
+name = "CSV (Comma Separated Values) Files"
+url = ""
+description = """
 CSV files are flat text files with data stored in lines with
 fields separated by commas.
 
 CSV is a common exchange format for disparate systems, including
 spreadsheet programs and custom applications.
 """
-__isfree__ = True  # Should be false for non-free DBMSs... we don't want to
+isfree = True  # Should be false for non-free DBMSs... we don't want to
                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/csv/csv/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/csv/csv/Info.py   2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/csv/csv/Info.py   2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("Python 2.1+ CSV Driver")
-__url__ = "http://www.python.org/";
-__doc__ = """
+name = _("Python 2.1+ CSV Driver")
+url = "http://www.python.org/";
+doc = """
 Description
 -----------
 Built-in python driver for CSV files.

Modified: trunk/gnue-common/src/datasources/drivers/db2/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/db2/Info.py       2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/db2/Info.py       2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,10 +25,10 @@
 #
 # Documentation
 #
-__name__ = "IBM DB/2"
-__url__ = ""
-__description__ = """
+name = "IBM DB/2"
+url = ""
+description = """
 IBM DB/2 is a commercial RDBMS product popular in many companies.
 """
-__isfree__ = False  # Should be false for non-free DBMSs... we don't want to
+isfree = False  # Should be false for non-free DBMSs... we don't want to
                     # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/db2/db2/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/db2/db2/Info.py   2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/db2/db2/Info.py   2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("IBM DB2 Data Driver")
-__url__ = "ftp://people.linuxkorea.co.kr/pub/DB2/";
-__doc__ = """
+name = _("IBM DB2 Data Driver")
+url = "ftp://people.linuxkorea.co.kr/pub/DB2/";
+doc = """
 Description
 -----------
 A DB/2 driver from Bryan Lee.  Works with IBM's DB/2 version 7.1.

Modified: trunk/gnue-common/src/datasources/drivers/dbf/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/dbf/Info.py       2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/dbf/Info.py       2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,10 +25,10 @@
 #
 # Documentation
 #
-__name__ = "dBase III (DBF) Files"
-__url__ = ""
-__description__ = """
+name = "dBase III (DBF) Files"
+url = ""
+description = """
 DBF files are an older file-based database format.
 """
-__isfree__ = True  # Should be false for non-free DBMSs... we don't want to
+isfree = True  # Should be false for non-free DBMSs... we don't want to
                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/dbf/dbf/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/dbf/dbf/Info.py   2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/dbf/dbf/Info.py   2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("DBF File Data Driver")
-__url__ = ""
-__doc__ = """
+name = _("DBF File Data Driver")
+url = ""
+doc = """
 Description
 -----------
 Virtual database driver for loading data from a DBF file

Modified: trunk/gnue-common/src/datasources/drivers/gadfly/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/gadfly/Info.py    2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/gadfly/Info.py    2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,10 +25,10 @@
 #
 # Documentation
 #
-__name__ = "Gadfly"
-__url__ = "http://gadfly.sourceforge.net/";
-__description__ = """
+name = "Gadfly"
+url = "http://gadfly.sourceforge.net/";
+description = """
 Gadfly is a small, single-user, embeddable SQL-based database written in 
python.
 """
-__isfree__ = True  # Should be false for non-free DBMSs... we don't want to
+isfree = True  # Should be false for non-free DBMSs... we don't want to
                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/Info.py     
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/Info.py     
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("Gadfly Driver")
-__url__ = "http://gadfly.sourceforge.net/";
-__doc__ = """
+name = _("Gadfly Driver")
+url = "http://gadfly.sourceforge.net/";
+doc = """
 Description
 -----------
 Python driver for Gadfly databases.

Modified: trunk/gnue-common/src/datasources/drivers/informix/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/informix/Info.py  2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/informix/Info.py  2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,10 +25,10 @@
 #
 # Documentation
 #
-__name__ = "Informix"
-__url__ = ""
-__description__ = """
+name = "Informix"
+url = ""
+description = """
 Informix is a commercial database system.
 """
-__isfree__ = False  # Should be false for non-free DBMSs... we don't want to
+isfree = False  # Should be false for non-free DBMSs... we don't want to
                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/informix/informix/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/informix/informix/Info.py 
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/informix/informix/Info.py 
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("Kinfxdb Informix driver")
-__url__ = "http://thor.prohosting.com/~alexan/pub/Kinfxdb/Kinfxdb-0.2.tar.gz";
-__doc__ = """
+name = _("Kinfxdb Informix driver")
+url = "http://thor.prohosting.com/~alexan/pub/Kinfxdb/Kinfxdb-0.2.tar.gz";
+doc = """
 Description
 -----------
 Written by Alexander Kuznetsov, kinfxdb provides support for Informix.

Modified: trunk/gnue-common/src/datasources/drivers/ingres/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/ingres/Info.py    2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/ingres/Info.py    2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,10 +25,10 @@
 #
 # Documentation
 #
-__name__ = "OpenIngres, CA Ingres, CA Ingres II"
-__url__ = ""
-__description__ = """
+name = "OpenIngres, CA Ingres, CA Ingres II"
+url = ""
+description = """
 CA OpenIngres is a commercial database system.
 """
-__isfree__ = False  # Should be false for non-free DBMSs... we don't want to
+isfree = False  # Should be false for non-free DBMSs... we don't want to
                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/ingres/ingres/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/ingres/ingres/Info.py     
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/ingres/ingres/Info.py     
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("ingmod Ingres Driver")
-__url__ = "http://www.informatik.uni-rostock.de/~hme/software/";
-__doc__ = """
+name = _("ingmod Ingres Driver")
+url = "http://www.informatik.uni-rostock.de/~hme/software/";
+doc = """
 Description
 -----------
 Written by Holger Meyer, ingmod provides support for CA OpenIngres, as well as

Modified: trunk/gnue-common/src/datasources/drivers/interbase/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/interbase/Info.py 2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/interbase/Info.py 2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Documentation
 #
-__name__ = "Firebird/Interbase Databases"
-__url__ = "http://www.firebirdsql.org/";
-__description__ = """
+name = "Firebird/Interbase Databases"
+url = "http://www.firebirdsql.org/";
+description = """
 Firebird is a free relational database offering many ANSI SQL-92 features that
 runs on Linux, Windows, and a variety of Unix platforms. Firebird offers
 excellent concurrency, high performance, and powerful language support for
@@ -41,5 +41,5 @@
 
 Firebird is a popular choice of GNUe's Windows-based developers.
 """
-__isfree__ = False  # Should be false for non-free DBMSs... we don't want to
+isfree = False  # Should be false for non-free DBMSs... we don't want to
                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/interbase/interbase/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/interbase/interbase/Info.py       
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/interbase/interbase/Info.py       
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("kinterbasdb Firebird/Interbase Driver")
-__url__ = "http://kinterbasdb.sourceforge.net";
-__doc__ = """
+name = _("kinterbasdb Firebird/Interbase Driver")
+url = "http://kinterbasdb.sourceforge.net";
+doc = """
 Description
 -----------
 Written by Alexander Kuznetsov, kinterbasdb provides support for

Modified: trunk/gnue-common/src/datasources/drivers/mysql/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/mysql/Info.py     2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/mysql/Info.py     2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,14 +25,15 @@
 #
 # Documentation
 #
-__name__ = "MySQL 4.x+"
-__url__ = "http://www.mysql.org/";
-__description__ = """
+name = "MySQL 4.x+"
+url = "http://www.mysql.org/";
+description = """
 MySQL is a fast database that runs on numerous platforms. It is one of the
 most popular free databases available.
 
 Given the transactional nature of GNUe, we recommend using MySQL 4.x+ with
 transaction support compiled in.
 """
-__isfree__ = True  # Should be false for non-free DBMSs... we don't want to
+
+isfree = True  # Should be false for non-free DBMSs... we don't want to
                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/mysql/mysql/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/mysql/mysql/Info.py       
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/mysql/mysql/Info.py       
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("MySQLdb")
-__url__ = "http://sourceforge.net/projects/mysql-python";
-__doc__ = """
+name = _("MySQLdb")
+url = "http://sourceforge.net/projects/mysql-python";
+doc = """
 Description
 -----------
 Written by Andy Dustman, this driver supports MySQL 3.22, 3.23, and

Modified: trunk/gnue-common/src/datasources/drivers/odbc/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/odbc/Info.py      2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/odbc/Info.py      2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,13 +25,13 @@
 #
 # Documentation
 #
-__name__ = "ODBC"
-__url__ = ""
-__description__ = """
+name = "ODBC"
+url = ""
+description = """
 ODBC is a middle-ware transport for database access.
 
 Currently, the only free ODBC drivers available for python (and thus, GNUe)
 are Windows-based.
 """
-__isfree__ = True  # Should be false for non-free DBMSs... we don't want to
+isfree = True  # Should be false for non-free DBMSs... we don't want to
                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/odbc/wodbc/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/odbc/wodbc/Info.py        
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/odbc/wodbc/Info.py        
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("PythonWin ODBC Driver")
-__url__ = 
"http://aspn.activestate.com/ASPN/Downloads/ActivePython/Extensions/Win32all";
-__doc__ = """
+name = _("PythonWin ODBC Driver")
+url = 
"http://aspn.activestate.com/ASPN/Downloads/ActivePython/Extensions/Win32all";
+doc = """
 Description
 -----------
 PythonWin ODBC driver for Windows.

Modified: trunk/gnue-common/src/datasources/drivers/oracle/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/oracle/Info.py    2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/oracle/Info.py    2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,10 +25,10 @@
 #
 # Documentation
 #
-__name__ = "Oracle 7.3/8i/9i"
-__url__ = ""
-__description__ = """
+name = "Oracle 7.3/8i/9i"
+url = ""
+description = """
 Oracle is a popular commercial relational database system.
 """
-__isfree__ = False  # Should be false for non-free DBMSs... we don't want to
+isfree = False  # Should be false for non-free DBMSs... we don't want to
                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/oracle/cxoracle/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/oracle/cxoracle/Info.py   
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/oracle/cxoracle/Info.py   
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("CX_Oracle SQLNet Driver")
-__url__ = "http://www.computronix.com/utilities/";
-__doc__ = """
+name = _("CX_Oracle SQLNet Driver")
+url = "http://www.computronix.com/utilities/";
+doc = """
 Description
 -----------
 An Oracle driver from Computronix.  Works with Oracle 7.3, 8.x, and 9i via

Modified: trunk/gnue-common/src/datasources/drivers/oracle/dcoracle/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/oracle/dcoracle/Info.py   
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/oracle/dcoracle/Info.py   
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("DCOracle2 OCI Driver")
-__url__ = "http://www.zope.org/Products/DCOracle2/";
-__doc__ = """
+name = _("DCOracle2 OCI Driver")
+url = "http://www.zope.org/Products/DCOracle2/";
+doc = """
 Description
 -----------
 An Oracle driver from Digital Creations (Zope).  Works with Oracle

Modified: trunk/gnue-common/src/datasources/drivers/postgresql/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/postgresql/Info.py        
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/postgresql/Info.py        
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Documentation
 #
-__name__ = "PostgreSQL"
-__url__ = "http://www.postgresql.org/";
-__description__ = """
+name = "PostgreSQL"
+url = "http://www.postgresql.org/";
+description = """
 PostgreSQL is an free object-relational database, which supports a large part
 of SQL-99.  It is under continuous development and each release implements
 more of the SQL standard, to the extent that it is now probably more compliant
@@ -37,5 +37,5 @@
 
 PostgreSQL is the primary database used by GNUe developers.
 """
-__isfree__ = True  # Should be false for non-free DBMSs... we don't want to
+isfree = True  # Should be false for non-free DBMSs... we don't want to
                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/postgresql/popy/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/postgresql/popy/Info.py   
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/postgresql/popy/Info.py   
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("popy")
-__url__ = "http://popy.sf.net/";
-__doc__ = """
+name = _("popy")
+url = "http://popy.sf.net/";
+doc = """
 Description
 -----------
 Written by Thierry Michel and friends. Strong multi-thread support.

Modified: trunk/gnue-common/src/datasources/drivers/postgresql/psycopg/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/postgresql/psycopg/Info.py        
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/postgresql/psycopg/Info.py        
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("Psycopg")
-__url__ = "http://initd.org/software/psycopg/";
-__doc__ = """
+name = _("Psycopg")
+url = "http://initd.org/software/psycopg/";
+doc = """
 Description
 -----------
 From the Psycopg website: "It was written from scratch with the aim of

Modified: trunk/gnue-common/src/datasources/drivers/postgresql/pygresql/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/postgresql/pygresql/Info.py       
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/postgresql/pygresql/Info.py       
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("Psycopg")
-__url__ = "http://initd.org/software/psycopg/";
-__doc__ = """
+name = _("Psycopg")
+url = "http://initd.org/software/psycopg/";
+doc = """
 Description
 -----------
 From the Psycopg website: "It was written from scratch with the aim of

Modified: trunk/gnue-common/src/datasources/drivers/postgresql/pypgsql/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/postgresql/pypgsql/Info.py        
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/postgresql/pypgsql/Info.py        
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("PyPgSQL")
-__url__ = "http://pypgsql.sf.net/";
-__doc__ = """
+name = _("PyPgSQL")
+url = "http://pypgsql.sf.net/";
+doc = """
 Description
 -----------
 Written by Billy Allie, PyPgSQL is a database interface for PostgreSQL 7.x.

Modified: trunk/gnue-common/src/datasources/drivers/sapdb/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sapdb/Info.py     2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/sapdb/Info.py     2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Documentation
 #
-__name__ = "MaxDB RDBMS (formerly SAP-DB)"
-__url__ = "http://www.mysql.com/products/maxdb/";
-__description__ = """
+name = "MaxDB RDBMS (formerly SAP-DB)"
+url = "http://www.mysql.com/products/maxdb/";
+description = """
 MySQL's MaxDB is an enhanced version of SAP DB, SAP AG's open source
 database. MaxDB is a heavy-duty, SAP-certified open source database
 that offers high availability, scalability and a comprehensive
@@ -35,5 +35,5 @@
 
 MaxDB is licensed under both the GPL and a fee-based, commercial license.
 """
-__isfree__ = True  # Should be false for non-free DBMSs... we don't want to
+isfree = True  # Should be false for non-free DBMSs... we don't want to
                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/Info.py       
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/Info.py       
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("MySQL's MaxDB driver")
-__url__ = "http://www.mysql.com/products/maxdb/sapdbapi.html";
-__doc__ = """
+name = _("MySQL's MaxDB driver")
+url = "http://www.mysql.com/products/maxdb/sapdbapi.html";
+doc = """
 Description
 -----------
 Python driver for MaxDB/SAPDB version 7.x+.

Modified: trunk/gnue-common/src/datasources/drivers/sqlite/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sqlite/Info.py    2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/sqlite/Info.py    2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Documentation
 #
-__name__ = "SQLite Embedded Database"
-__url__ = "http://www.sqlite.org/";
-__description__ = """
+name = "SQLite Embedded Database"
+url = "http://www.sqlite.org/";
+description = """
 SQLite is a C library that implements an embeddable SQL database engine.
 Programs that link with the SQLite library can have SQL database access
 without running a separate RDBMS process.
@@ -35,5 +35,5 @@
 SQLite is a great database to use with GNUe for single-user installations
 where a self-contained, distributable package is desired.
 """
-__isfree__ = True  # Should be false for non-free DBMSs... we don't want to
+isfree = True  # Should be false for non-free DBMSs... we don't want to
                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/Info.py     
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/Info.py     
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("PySQLite Driver")
-__url__ = "http://pysqlite.sourceforge.net/";
-__doc__ = """
+name = _("PySQLite Driver")
+url = "http://pysqlite.sourceforge.net/";
+doc = """
 Description
 -----------
 PySQLite is a Python extension for SQLite that conforms to the Python

Modified: trunk/gnue-common/src/datasources/drivers/sqlrelay/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sqlrelay/Info.py  2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/sqlrelay/Info.py  2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,12 +25,12 @@
 #
 # Documentation
 #
-__name__ = "SQLRelay"
-__url__ = "http://sqlrelay.sourceforge.net/";
-__description__ = """
+name = "SQLRelay"
+url = "http://sqlrelay.sourceforge.net/";
+description = """
 From FirstWork's website: "SQL Relay is a persistent database
 connection pooling, proxying and load balancing system for Unix
 and Linux."
 """
-__isfree__ = True  # Should be false for non-free DBMSs... we don't want to
+isfree = True  # Should be false for non-free DBMSs... we don't want to
                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/Info.py 
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/Info.py 
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("SQLRelay Python Client")
-__url__ = "http://sqlrelay.sourceforge.net/";
-__doc__ = """
+name = _("SQLRelay Python Client")
+url = "http://sqlrelay.sourceforge.net/";
+doc = """
 Description
 -----------
 Python driver for SQLRelay.

Modified: trunk/gnue-common/src/datasources/drivers/sybase/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sybase/Info.py    2004-03-12 
21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/sybase/Info.py    2004-03-12 
23:16:09 UTC (rev 5314)
@@ -25,10 +25,10 @@
 #
 # Documentation
 #
-__name__ = "Sybase"
-__url__ = ""
-__description__ = """
+name = "Sybase"
+url = ""
+description = """
 Sybase Adaptive Server Enterprise is a commercial database.
 """
-__isfree__ = False  # Should be false for non-free DBMSs... we don't want to
+isfree = False  # Should be false for non-free DBMSs... we don't want to
                     # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/sybase/sybase/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sybase/sybase/Info.py     
2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/gnue-common/src/datasources/drivers/sybase/sybase/Info.py     
2004-03-12 23:16:09 UTC (rev 5314)
@@ -25,9 +25,9 @@
 #
 # Notes on this driver
 #
-__name__ = _("Sybase Python Driver")
-__url__ = "http://www.object-craft.com.au/projects/sybase/";
-__doc__ = """
+name = _("Sybase Python Driver")
+url = "http://www.object-craft.com.au/projects/sybase/";
+doc = """
 Description
 -----------
 Driver to provide access to data via Dave Cole's Sybase ASE/Python Driver.

Modified: trunk/gnue-common/utils/helpers/files.py
===================================================================
--- trunk/gnue-common/utils/helpers/files.py    2004-03-12 21:23:28 UTC (rev 
5313)
+++ trunk/gnue-common/utils/helpers/files.py    2004-03-12 23:16:09 UTC (rev 
5314)
@@ -21,19 +21,29 @@
       return None
 
 
-def importModule(module):
+def importModule(module, path="", imp="src"):
   """
   Import the src/ directory of one of the gnue tools.
   Useful for getting data from __init__.py
   """
   oldpath = sys.path[:]
-  sys.path.insert(0,os.path.join(SVN_BASE,'gnue-%s' % module))
-  import src
+  sys.path.insert(0,os.path.join(SVN_BASE,('gnue-%s' % module) + '/' + path))
+  src = dyn_import(imp)
   sys.path = oldpath
-  sys.modules.pop('src')
+  sys.modules.pop(imp)
   return src
 
+def dyn_import(name):
+  try:
+    mod = __import__(name)
+    components = string.split(name, '.')
+    for comp in components[1:]:
+        mod = getattr(mod, comp)
+    return mod
+  except (AttributeError,ValueError), mesg:
+    raise ImportError, mesg
 
+
 class SubheadedFile:
   """
   Reads in a file that is formatted with

Added: trunk/gnue-common/utils/helpers/info.py
===================================================================
--- trunk/gnue-common/utils/helpers/info.py     2004-03-12 21:23:28 UTC (rev 
5313)
+++ trunk/gnue-common/utils/helpers/info.py     2004-03-12 23:16:09 UTC (rev 
5314)
@@ -0,0 +1,57 @@
+
+import sys, os, string, time
+from files import openModuleFile, importModule, SubheadedFile, SVN_BASE
+from StringIO import StringIO
+
+##
+##
+##
+
+class Info:
+  def __init__(self, info):
+    self._info = info
+
+  def get(self, tag, default=""):
+    try:
+      return getattr(self._info, tag)
+    except AttributeError:
+      return default
+
+  def bool(self, tag, default=0)
+    return int(self.get(tag,default))
+
+
+class DatasourceInfo:
+  def __init__(self):
+    m = importModule('common','src/datasources', 'drivers')
+    vendors = m.DRIVERS
+    aliases = m.ALIASES
+
+    vendorMap = {}
+
+    for vendor in vendors:
+
+      # 'special' driver isn't of interest to us
+      if vendor == 'special':
+        continue
+
+      try:
+        drivers = importModule('common','src/datasources/drivers', 
vendor).DRIVERS
+      except ImportError:
+        print "WARNING: Unable to load datasource top-level driver %s" % vendor
+        continue
+
+
+      try:
+        dbinfo = Info(importModule('common','src/datasources/drivers/%s' % 
vendor,'Info'))
+      except ImportError:
+        print "WARNING: common/datasources/drivers/%s has no Info.py" % vendor
+        continue
+
+      dbname = dbinfo.get('name')
+      if not dbname:
+        print "WARNING: top-level datasource %s has no name in Info.py" % 
vendor
+        dbname = vendor
+
+      vendorMap[dbname] = ""
+

Modified: trunk/www/utils/create-release-announcements
===================================================================
--- trunk/www/utils/create-release-announcements        2004-03-12 21:23:28 UTC 
(rev 5313)
+++ trunk/www/utils/create-release-announcements        2004-03-12 23:16:09 UTC 
(rev 5314)
@@ -3,7 +3,7 @@
 import sys, os
 
 SVN_BASE=os.path.abspath(os.path.join(os.path.dirname(__file__),'../..'))
-sys.path.insert(0,os.path.join(SVN_BASE,'gnue-common','utils')
+sys.path.insert(0,os.path.join(SVN_BASE,'gnue-common','utils'))
 
 from helpers.files import SVN_BASE
 from helpers.tools import Tool

Modified: trunk/www/utils/create-website
===================================================================
--- trunk/www/utils/create-website      2004-03-12 21:23:28 UTC (rev 5313)
+++ trunk/www/utils/create-website      2004-03-12 23:16:09 UTC (rev 5314)
@@ -9,12 +9,12 @@
 import sys, os, string
 
 SVN_BASE=os.path.abspath(os.path.join(os.path.dirname(__file__),'../..'))
-sys.path.insert(0,os.path.join(SVN_BASE,'gnue-common','utils')
+sys.path.insert(0,os.path.join(SVN_BASE,'gnue-common','utils'))
 
 from helpers.files import addToolLinks
 from helpers.tools import Tool
+from helpers.info import DatasourceInfo
 
-
 def run():
   ######
   if not '--update' in sys.argv:
@@ -253,6 +253,8 @@
        databases.</p>
        """ + toolHomePageHtml  , "Developer Tools")
 
+  DatasourceInfo()
+
 ######################################################################
 #
 #





reply via email to

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