commit-gnue
[Top][All Lists]
Advanced

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

r5283 - in trunk/gnue-common/src/datasources/drivers: adodbapi adodbapi/


From: jcater
Subject: r5283 - in trunk/gnue-common/src/datasources/drivers: adodbapi adodbapi/adodbapi appserver appserver/appserver csv csv/csv db2 db2/db2 dbf dbf/dbf gadfly gadfly/gadfly informix informix/informix ingres ingres/ingres interbase interbase/interbase ldap mysql mysql/mysql odbc odbc/mxodbc odbc/wodbc oracle oracle/cxoracle oracle/dcoracle postgresql postgresql/popy postgresql/psycopg postgresql/pygresql postgresql/pypgsql sapdb sapdb/sapdb special special/configfile special/static special/unbound sqlite sqlite/sqlite sqlrelay sqlrelay/sqlrelay sybase sybase/sybase
Date: Tue, 9 Mar 2004 17:12:05 -0600 (CST)

Author: jcater
Date: 2004-03-09 17:12:02 -0600 (Tue, 09 Mar 2004)
New Revision: 5283

Added:
   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/ldap/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/mxodbc/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/special/Info.py
   trunk/gnue-common/src/datasources/drivers/special/configfile/Info.py
   trunk/gnue-common/src/datasources/drivers/special/static/Info.py
   trunk/gnue-common/src/datasources/drivers/special/unbound/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
Modified:
   trunk/gnue-common/src/datasources/drivers/adodbapi/__init__.py
   trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/Connection.py
   trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/__init__.py
   trunk/gnue-common/src/datasources/drivers/appserver/__init__.py
   trunk/gnue-common/src/datasources/drivers/appserver/appserver/Connection.py
   trunk/gnue-common/src/datasources/drivers/appserver/appserver/__init__.py
   trunk/gnue-common/src/datasources/drivers/csv/__init__.py
   trunk/gnue-common/src/datasources/drivers/csv/csv/Driver.py
   trunk/gnue-common/src/datasources/drivers/csv/csv/__init__.py
   trunk/gnue-common/src/datasources/drivers/db2/__init__.py
   trunk/gnue-common/src/datasources/drivers/db2/db2/Connection.py
   trunk/gnue-common/src/datasources/drivers/db2/db2/__init__.py
   trunk/gnue-common/src/datasources/drivers/dbf/__init__.py
   trunk/gnue-common/src/datasources/drivers/dbf/dbf/Connection.py
   trunk/gnue-common/src/datasources/drivers/dbf/dbf/__init__.py
   trunk/gnue-common/src/datasources/drivers/gadfly/__init__.py
   trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/Connection.py
   trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/__init__.py
   trunk/gnue-common/src/datasources/drivers/informix/__init__.py
   trunk/gnue-common/src/datasources/drivers/informix/informix/Connection.py
   trunk/gnue-common/src/datasources/drivers/informix/informix/__init__.py
   trunk/gnue-common/src/datasources/drivers/ingres/__init__.py
   trunk/gnue-common/src/datasources/drivers/ingres/ingres/Connection.py
   trunk/gnue-common/src/datasources/drivers/ingres/ingres/__init__.py
   trunk/gnue-common/src/datasources/drivers/interbase/__init__.py
   trunk/gnue-common/src/datasources/drivers/interbase/interbase/Connection.py
   trunk/gnue-common/src/datasources/drivers/interbase/interbase/__init__.py
   trunk/gnue-common/src/datasources/drivers/ldap/__init__.py
   trunk/gnue-common/src/datasources/drivers/mysql/__init__.py
   trunk/gnue-common/src/datasources/drivers/mysql/mysql/Connection.py
   trunk/gnue-common/src/datasources/drivers/mysql/mysql/__init__.py
   trunk/gnue-common/src/datasources/drivers/odbc/__init__.py
   trunk/gnue-common/src/datasources/drivers/odbc/wodbc/Connection.py
   trunk/gnue-common/src/datasources/drivers/odbc/wodbc/__init__.py
   trunk/gnue-common/src/datasources/drivers/oracle/__init__.py
   trunk/gnue-common/src/datasources/drivers/oracle/cxoracle/__init__.py
   trunk/gnue-common/src/datasources/drivers/oracle/dcoracle/__init__.py
   trunk/gnue-common/src/datasources/drivers/postgresql/__init__.py
   trunk/gnue-common/src/datasources/drivers/postgresql/popy/__init__.py
   trunk/gnue-common/src/datasources/drivers/postgresql/psycopg/__init__.py
   trunk/gnue-common/src/datasources/drivers/postgresql/pygresql/__init__.py
   trunk/gnue-common/src/datasources/drivers/postgresql/pypgsql/__init__.py
   trunk/gnue-common/src/datasources/drivers/sapdb/__init__.py
   trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/Connection.py
   trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/__init__.py
   trunk/gnue-common/src/datasources/drivers/special/__init__.py
   trunk/gnue-common/src/datasources/drivers/special/configfile/Connection.py
   trunk/gnue-common/src/datasources/drivers/special/configfile/__init__.py
   trunk/gnue-common/src/datasources/drivers/special/static/Connection.py
   trunk/gnue-common/src/datasources/drivers/special/static/__init__.py
   trunk/gnue-common/src/datasources/drivers/special/unbound/__init__.py
   trunk/gnue-common/src/datasources/drivers/sqlite/__init__.py
   trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/Connection.py
   trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/__init__.py
   trunk/gnue-common/src/datasources/drivers/sqlrelay/__init__.py
   trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/Connection.py
   trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/__init__.py
   trunk/gnue-common/src/datasources/drivers/sybase/__init__.py
   trunk/gnue-common/src/datasources/drivers/sybase/sybase/Connection.py
   trunk/gnue-common/src/datasources/drivers/sybase/sybase/__init__.py
Log:
added a self-documenting framework for the database drivers (not completed)

Added: trunk/gnue-common/src/datasources/drivers/adodbapi/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/adodbapi/Info.py  2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/adodbapi/Info.py  2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,34 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver info for ADODB databases.
+"""
+
+#
+# Documentation
+#
+__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
+                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/adodbapi/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/adodbapi/__init__.py      
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/adodbapi/__init__.py      
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1 +1,25 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for ADODB databases.
+"""
+
 DRIVERS=['adodbapi']

Modified: 
trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/Connection.py   
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/Connection.py   
2004-03-09 23:12:02 UTC (rev 5283)
@@ -29,6 +29,10 @@
 
 __all__ = ['Connection']
 
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
 
 from gnue.common.datasources import GDataObjects, GConditions, GConnections
 from gnue.common.apps import GDebug
@@ -39,7 +43,7 @@
 try:
   import adodbapi as SIG2api
 except ImportError, message:
-  tmsg = _("Driver not installed: adodbapi driver\n\n[%s") % message
+  tmsg = _("Driver not installed: adodbapi driver\n\n[%s]") % message
   raise GConnections.AdapterNotInstalled, tmsg
 
 try:

Added: trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/Info.py 
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/Info.py 
2004-03-09 23:12:02 UTC (rev 5283)
@@ -0,0 +1,84 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+
+#
+# Notes on this driver
+#
+__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
+for connecting with databases and other data sources.
+
+Features:
+  * 100% DB-API 2.0 compliant.
+  * Includes pyunit testcases that describes how to use the module.
+  * Fully implemented in Python.
+  * Licensed under the LGPL license, which means that it can be used freely 
even in commercial programs subject to certain restrictions.
+  * Supports eGenix mxDateTime, Python 2.3 datetime module and Python time 
module.
+
+Prerequisites:
+  * Python 1.5.2 or higher.
+  * Mark Hammond's win32all python for windows extensions.
+
+
+Support
+-------
+POSIX Support: NO
+
+Win32 Support: YES [prebuilt binaries at http://www.cs.fhm.edu/~ifw00065/]
+
+Platforms Tested:
+  * Windows 2000/XP
+
+Supported Properties
+--------------------
+  * oledb_provider   (required)
+  * data_source      (required)
+  * initial_catalog  (optional for SQL Server)
+  * network_library  (optional for SQL Server)
+  * data_provider    (optional for SQL Server)
+
+ You can find more connection strings here:
+   http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm
+
+Examples
+--------
+  [access]
+  comment = """ + _("MS Access database") + """
+  provider = adodbapi
+  oledb_provider = Microsoft.Jet.OLEDB.4.0
+  data_source = C:\mydb.mdb
+
+  [sqlserver]
+  comment = """ + _("MS SQL Server database") + """
+  provider = adodbapi
+  oledb_provider = sqloledb
+  data_source = myServerName
+  initial_catalog = myDatabaseName
+
+Notes
+-----
+1. This driver has been partially tested.  If you are successfully using
+   this driver, please let us know.
+"""

Modified: 
trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/__init__.py     
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/adodbapi/adodbapi/__init__.py     
2004-03-09 23:12:02 UTC (rev 5283)
@@ -18,39 +18,9 @@
 #
 # Copyright 2000-2004 Free Software Foundation
 #
-
-__description__ = _("ADO-DB Data Driver for MS SQL-Server/Access")
-__driverurl__ = "http://sourceforge.net/projects/adodbapi";
-
-__doc__ = _("""
-   Supported attributes (via connections.conf or <database> tag)""") + """
-
-     oledb_provider   (required)
-     data_source      (required)
-     initial_catalog   (optional for SQL Server)
-     network_library (optional for SQL Server)
-     data_provider    (optional for SQL Server)""" + _("""
-
- You can find more connection strings here:""") + """
- http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm
 """
-
-__examples__ = """
-[access]
-comment = """ + _("MS Access database") + """
-provider = adodbapi
-oledb_provider = Microsoft.Jet.OLEDB.4.0
-data_source = C:\mydb.mdb
-
-[sqlserver]
-comment = """ + _("MS SQL Server database") + """
-provider = adodbapi
-oledb_provider = sqloledb
-data_source = myServerName
-initial_catalog = myDatabaseName
+adodbapi init file
 """
-
-
 #
 # Stub code to not initialize the Connection until needed.
 # This greatly helps with error messages.
@@ -58,4 +28,3 @@
 def Connection(*args, **parms):
   from Connection import Connection as C
   return C(*args, **parms)
-

Added: trunk/gnue-common/src/datasources/drivers/appserver/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/appserver/Info.py 2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/appserver/Info.py 2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,34 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for GNUe AppServer-based database access.
+"""
+
+#
+# Documentation
+#
+__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
+                   # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/appserver/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/appserver/__init__.py     
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/appserver/__init__.py     
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1 +1,25 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for GNUe AppServer-based database access.
+"""
+
 DRIVERS=['appserver']

Modified: 
trunk/gnue-common/src/datasources/drivers/appserver/appserver/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/appserver/appserver/Connection.py 
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/appserver/appserver/Connection.py 
2004-03-09 23:12:02 UTC (rev 5283)
@@ -22,8 +22,9 @@
 # appserver/Connection.py
 #
 # DESCRIPTION:
-# Implementation of dbdriver for use with GNUe Application Server.
-#
+"""
+Implementation of dbdriver for use with GNUe Application Server.
+"""
 # NOTES:
 #
 # HISTORY:
@@ -31,6 +32,11 @@
 
 VERSION="0.0.1"
 
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
+
 __all__ = ['Connection']
 
 from gnue.common.datasources import GDataObjects, GConditions
@@ -196,7 +202,7 @@
       except TypeError, msg:
         # if value is already unicode, don't raise TypeError
         if type(value)!=types.UnicodeType:
-         raise TypeError, msg
+          raise TypeError, msg
       if self._unicodeMode:
         return value
       else:
@@ -221,12 +227,12 @@
   def fetch(self,count=5):
     if self._stackpos == -1:
       return []
-    
+
     result = self._dataCon._sm.fetch(self._dataCon._sess_id,
                                      self._listid,self._stackpos,count)
     if len(result)<count:
       self._stackpos=-1
-      
+
     else:
       self._stackpos=self._stackpos+len(result)
 
@@ -237,9 +243,9 @@
       for fieldName in self._fieldlist:
         dict [fieldName] = self.__rpc_to_native (i [j+1], self._fieldtypes [j])
         j += 1
-        
+
       dict["gnue_id"]=i[0]
-      list.append(dict)      
+      list.append(dict)
     return list
 
   def count(self):
@@ -263,7 +269,7 @@
   def delete(self,classname,id):
     if not self._deleteList.has_key(classname):
        self._deleteList[classname]=[]
-       
+
     self._deleteList[classname].append(id)
 
   def update(self, classname, id, fieldDict):

Added: trunk/gnue-common/src/datasources/drivers/appserver/appserver/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/appserver/appserver/Info.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/appserver/appserver/Info.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -0,0 +1,67 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Information on this driver
+"""
+
+#
+# Notes on this driver
+#
+__name__ = _("GNUe AppServer Driver")
+__url__ = "http://www.gnuenterprise.org/tools/appserver/";
+__doc__ = """
+Description
+-----------
+Python driver GNUe Application Server.
+
+Support
+-------
+POSIX Support: YES
+Win32 Support: YES
+
+Platforms Tested:
+  * Linux/Unix (Debian, RedHat, SuSe, etc)
+  * Windows NT/XP/2000
+
+Supported Properties
+--------------------
+host       -- This is the hostname/ip address of the host running AppServer 
(required)
+port       -- The port that AppServer is running on (required)
+timeout    -- Command timeout in seconds (optional)
+rpctype    -- RPC driver used for network communication (xmlrpc, soap, etc.)
+              See GNUe Common's RPC documentation for a list of all RPC types. 
(required)
+transport  -- Transport used for network connections (http, https) (required)
+
+Examples
+--------
+  [appserver]
+  comment = Connection to the GNUe Application Server
+  provider = appserver
+  rpctype = xmlrpc
+  host = localhost
+  port = 8765
+  transport = http
+
+
+Notes
+-----
+1. GNUe AppServer works natively in utf-8, so encoding= is not a valid 
property.
+"""

Modified: 
trunk/gnue-common/src/datasources/drivers/appserver/appserver/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/appserver/appserver/__init__.py   
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/appserver/appserver/__init__.py   
2004-03-09 23:12:02 UTC (rev 5283)
@@ -18,12 +18,10 @@
 #
 # Copyright 2000-2004 Free Software Foundation
 #
+"""
+appserver init file
+"""
 
-__description__ = _("GNUe AppServer Data Driver")
-__driverurl__ = "http://www.gnuenterprise.org/";
-__examples__ = ""
-__doc__ = ""
-
 #
 # Stub code to not initialize the Connection until needed.
 # This greatly helps with error messages.

Added: trunk/gnue-common/src/datasources/drivers/csv/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/csv/Info.py       2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/csv/Info.py       2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,38 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Info for this database.
+"""
+
+#
+# Documentation
+#
+__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
+                   # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/csv/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/csv/__init__.py   2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/csv/__init__.py   2004-03-09 
23:12:02 UTC (rev 5283)
@@ -1 +1,25 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for CSV file access.
+"""
+
 DRIVERS=['csv']

Modified: trunk/gnue-common/src/datasources/drivers/csv/csv/Driver.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/csv/csv/Driver.py 2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/csv/csv/Driver.py 2004-03-09 
23:12:02 UTC (rev 5283)
@@ -1,19 +1,19 @@
 #
 # This file is part of GNU Enterprise.
 #
-# GNU Enterprise is free software; you can redistribute it 
-# and/or modify it under the terms of the GNU General Public 
-# License as published by the Free Software Foundation; either 
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
 # version 2, or (at your option) any later version.
 #
-# GNU Enterprise is distributed in the hope that it will be 
-# useful, but WITHOUT ANY WARRANTY; without even the implied 
-# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 # PURPOSE. See the GNU General Public License for more details.
 #
-# You should have received a copy of the GNU General Public 
-# License along with program; see the file COPYING. If not, 
-# write to the Free Software Foundation, Inc., 59 Temple Place 
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
 # - Suite 330, Boston, MA 02111-1307, USA.
 #
 # Copyright 2001-2004 Free Software Foundation
@@ -38,15 +38,15 @@
 ###########################################################
 #
 # This is a static data driver for connectionless clients
-# 
+#
 ###########################################################
-class CSV_DataObject (STATIC_DataObject): 
+class CSV_DataObject (STATIC_DataObject):
 
   def __init__(self):
     DataObject.__init__(self)
     self.triggerExtensions = TriggerExtensions(self)
     self._DatabaseError = Error
-  
+
   def _createResultSet(self, conditions={}, readOnly=0, masterRecordSet=None, 
sql=""):
     return CSV_ResultSet(self, masterRecordSet=masterRecordSet)
 
@@ -109,9 +109,9 @@
     list = []
     print self._dataConnection.fieldnames
     for field in self._dataConnection.fieldnames:
-      
+
       fname=string.lower(field)
-      
+
       attrs={'id': "%s.%s" % (parent.id,fname),
                 'name': fname,
                 'type':'field',
@@ -135,7 +135,7 @@
   def __init__(self, dataObject, cursor=None, defaultValues={}, 
masterRecordSet=None):
     ResultSet.__init__(self, dataObject, \
             cursor, defaultValues, masterRecordSet)
-    
+
     self._recordSetClass = STATIC_RecordSet
 
   # Returns 1=DataObject has uncommitted changes
@@ -153,17 +153,17 @@
   def _loadNextRecord(self):
     if hasattr(self,"_alldataloaded"):
       return 0
-    
+
     # Load static data
     for row in self._dataObject._dataConnection:
       record=self._recordSetClass(parent=self,initialData=row)
 
       self._cachedRecords.append (record)
-      
+
       self._recordCount=self._recordCount+1
 
     self._alldataloaded = 1
-      
+
     return 1
 
 

Added: trunk/gnue-common/src/datasources/drivers/csv/csv/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/csv/csv/Info.py   2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/csv/csv/Info.py   2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,60 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Information on this driver
+"""
+
+#
+# Notes on this driver
+#
+__name__ = _("Python 2.1+ CSV Driver")
+__url__ = "http://www.python.org/";
+__doc__ = """
+Description
+-----------
+Built-in python driver for CSV files.
+
+Support
+-------
+POSIX Support: YES
+Win32 Support: YES
+
+Platforms Tested:
+  * We need testers.
+
+Supported Properties
+--------------------
+dbname            -- This is the file name of the CSV file (required)
+firstrowisheader  -- Does the first row contain header names? (optional)
+
+Examples
+--------
+[demo]
+comment = Exported CSV File
+provider = csv
+dbname = /path/to/my.csv
+firstrowisheader = yes
+
+Notes
+-----
+1. This driver is currently not functional.  It needs to be updated to the
+   new driver format.
+"""

Modified: trunk/gnue-common/src/datasources/drivers/csv/csv/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/csv/csv/__init__.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/csv/csv/__init__.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -0,0 +1,31 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+init file
+"""
+
+# Stub code to not initialize the Connection until needed.
+# This greatly helps with error messages.
+#
+def Connection(*args, **parms):
+  from Connection import Connection as C
+  return C(*args, **parms)
+

Added: trunk/gnue-common/src/datasources/drivers/db2/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/db2/Info.py       2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/db2/Info.py       2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,34 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Info for this database.
+"""
+
+#
+# Documentation
+#
+__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
+                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/db2/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/db2/__init__.py   2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/db2/__init__.py   2004-03-09 
23:12:02 UTC (rev 5283)
@@ -1 +1,25 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for IBM DB2 databases.
+"""
+
 DRIVERS=['db2']

Modified: trunk/gnue-common/src/datasources/drivers/db2/db2/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/db2/db2/Connection.py     
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/db2/db2/Connection.py     
2004-03-09 23:12:02 UTC (rev 5283)
@@ -29,6 +29,11 @@
 
 __all__ = ['Connection']
 
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
+
 import string
 import sys
 

Added: trunk/gnue-common/src/datasources/drivers/db2/db2/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/db2/db2/Info.py   2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/db2/db2/Info.py   2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,59 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Information on this driver
+"""
+
+#
+# Notes on this driver
+#
+__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.
+
+Support
+-------
+POSIX Support: YES
+Win32 Support: YES [prebuilt binaries]
+
+Platforms Tested:
+  * We need testers.
+
+Supported Properties
+--------------------
+service  -- This is the DB2 DSN for your connection  (required)
+
+Examples
+--------
+  [myconn]
+  provider=db2            # Use the DB/2 adapter
+  service=mydsn           # The DSN connection string of the database
+
+Notes
+-----
+1. The Win32 binaries are included in the tar'ed file (in win32/)
+
+2. This driver has not been fully tested.  If you are successfully using
+   this driver, please let us know.
+"""

Modified: trunk/gnue-common/src/datasources/drivers/db2/db2/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/db2/db2/__init__.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/db2/db2/__init__.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -18,18 +18,10 @@
 #
 # Copyright 2000-2004 Free Software Foundation
 #
-
-__description__ = _("IBM DB2 Data Driver")
-__driverurl__ = "ftp://people.linuxkorea.co.kr/pub/DB2/";
-__examples__ = ""
-
-__doc__ = """
-   Supported attributes (via connections.conf or <database> tag)
-
-     service=    This is the DB2 DSN for your connection  (required)
 """
+db2 init file
+"""
 
-
 #
 # Stub code to not initialize the Connection until needed.
 # This greatly helps with error messages.

Added: trunk/gnue-common/src/datasources/drivers/dbf/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/dbf/Info.py       2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/dbf/Info.py       2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,34 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Info for this database.
+"""
+
+#
+# Documentation
+#
+__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
+                   # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/dbf/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/dbf/__init__.py   2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/dbf/__init__.py   2004-03-09 
23:12:02 UTC (rev 5283)
@@ -1 +1,25 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for DBF files.
+"""
+
 DRIVERS=['dbf']

Modified: trunk/gnue-common/src/datasources/drivers/dbf/dbf/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/dbf/dbf/Connection.py     
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/dbf/dbf/Connection.py     
2004-03-09 23:12:02 UTC (rev 5283)
@@ -30,10 +30,15 @@
 
 __all__ = ['Connection']
 
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
+
 from gnue.common.datasources.GDataObjects import Error
 from gnue.common.datasource import GConnection
+import dbf
 
-
 class Connection(GConnection.Connection):
   supportedDataObjects = {'object': DataObject,
                            'static': DataObject} # TODO: Why static?!?

Added: trunk/gnue-common/src/datasources/drivers/dbf/dbf/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/dbf/dbf/Info.py   2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/dbf/dbf/Info.py   2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,62 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Information on this driver
+"""
+
+#
+# Notes on this driver
+#
+__name__ = _("DBF File Data Driver")
+__url__ = ""
+__doc__ = """
+Description
+-----------
+Virtual database driver for loading data from a DBF file
+
+Used whenever a data has to be imported from dbase III+
+
+Support
+-------
+POSIX Support: YES
+Win32 Support: YES
+
+Platforms Tested:
+  * We need testers.
+
+Supported Properties
+--------------------
+directory  -- The directory where the DBF files are stored (required)
+dbname     -- The name of the database to use (required)
+
+Examples
+--------
+[dbf]
+comment = XYZ Import Database
+provider = dbf
+directory = c:\data\
+dbname = Test
+
+Notes
+-----
+1. This driver has been partially tested.  If you are successfully using
+   this driver, please let us know.
+"""

Modified: trunk/gnue-common/src/datasources/drivers/dbf/dbf/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/dbf/dbf/__init__.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/dbf/dbf/__init__.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -18,17 +18,13 @@
 #
 # Copyright 2000-2004 Free Software Foundation
 #
+"""
+dbf init file
+"""
 
-__description__ = _("DBF File Data Driver")
-__driverurl__ = "http://????";
-__examples__ = ""
-__doc__ = ""
-
-#
 # Stub code to not initialize the Connection until needed.
 # This greatly helps with error messages.
 #
 def Connection(*args, **parms):
-  from Driver import Connection as C
+  from Connection import Connection as C
   return C(*args, **parms)
-

Added: trunk/gnue-common/src/datasources/drivers/gadfly/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/gadfly/Info.py    2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/gadfly/Info.py    2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,34 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Info for this database.
+"""
+
+#
+# Documentation
+#
+__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
+                   # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/gadfly/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/gadfly/__init__.py        
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/gadfly/__init__.py        
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1 +1,25 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for Gadfly databases.
+"""
+
 DRIVERS=['gadfly']

Modified: trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/Connection.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/Connection.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -22,14 +22,20 @@
 # gadfly/DBdriver.py
 #
 # DESCRIPTION:
-# Driver to provide access to data via Gadfly
-#
+"""
+Driver to provide access to data via Gadfly
+"""
 # NOTES:
 # The Gadfly notes state that it is not safe to use in a multi-user environment
 # where there may be concurrent read/writes. Use at own risk :)
 
 __all__ = ['Connection']
 
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
+
 import string
 import sys
 from gnue.common.apps import GDebug

Added: trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/Info.py     
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/Info.py     
2004-03-09 23:12:02 UTC (rev 5283)
@@ -0,0 +1,60 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Information on this driver
+"""
+
+#
+# Notes on this driver
+#
+__name__ = _("Gadfly Driver")
+__url__ = "http://gadfly.sourceforge.net/";
+__doc__ = """
+Description
+-----------
+Python driver for Gadfly databases.
+
+Support
+-------
+POSIX Support: YES
+Win32 Support: YES
+
+Platforms Tested:
+  * We need testers.
+
+Supported Properties
+--------------------
+directory  -- The directory where the files are stored (required)
+dbname     -- The name of the database to use (required)
+
+Examples
+--------
+  [dbf]
+  comment = XYZ Import Database
+  provider = dbf
+  directory = c:\data\
+  dbname = Test
+
+Notes
+-----
+1. This driver has been partially tested.  If you are successfully using
+   this driver, please let us know.
+"""

Modified: trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/__init__.py 
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/gadfly/gadfly/__init__.py 
2004-03-09 23:12:02 UTC (rev 5283)
@@ -18,12 +18,10 @@
 #
 # Copyright 2000-2004 Free Software Foundation
 #
+"""
+gadfly init file
+"""
 
-__description__ = _("Gadfly Data Driver")
-__driverurl__ = "http://????";
-__examples__ = ""
-__doc__ = ""
-
 #
 # Stub code to not initialize the Connection until needed.
 # This greatly helps with error messages.

Added: trunk/gnue-common/src/datasources/drivers/informix/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/informix/Info.py  2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/informix/Info.py  2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,34 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Info for this database.
+"""
+
+#
+# Documentation
+#
+__name__ = "Informix"
+__url__ = ""
+__description__ = """
+Informix is a commercial database system.
+"""
+__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/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/informix/__init__.py      
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/informix/__init__.py      
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1 +1,25 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for Informix databases.
+"""
+
 DRIVERS=['informix']

Modified: 
trunk/gnue-common/src/datasources/drivers/informix/informix/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/informix/informix/Connection.py   
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/informix/informix/Connection.py   
2004-03-09 23:12:02 UTC (rev 5283)
@@ -34,10 +34,11 @@
 
 __all__ = ['Connection']
 
-#### THIS IS AN UNTESTED DRIVER ####
-####      Any volunteers?       ####
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
 
-
 from string import lower
 import sys
 from gnue.common.datasources import GDataObjects, GConditions, GConnections

Added: trunk/gnue-common/src/datasources/drivers/informix/informix/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/informix/informix/Info.py 
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/informix/informix/Info.py 
2004-03-09 23:12:02 UTC (rev 5283)
@@ -0,0 +1,62 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Information on this driver
+"""
+
+#
+# Notes on this driver
+#
+__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.
+
+Support
+-------
+POSIX Support: YES
+Win32 Support: YES
+
+Platforms Tested:
+  * We need testers.
+
+Supported Properties
+--------------------
+host       -- This is the hostname running Informix (required)
+dbname     -- This is the Informix database to use (required)
+
+Examples
+--------
+  [myconn]
+  provider=informix       # Use the Kinfxdb adapter
+  host=localhost          # The hostname/IP of the Informix host
+  dbname=mydb             # The name of the Informix database
+
+Notes
+-----
+  1. This driver has not been fully tested.  If you are successfully using
+      this driver, please let us know.
+
+  2. This driver does not yet support schema introspection, so you will not
+      be able to use Wizards in GNUe Designer.
+"""

Modified: 
trunk/gnue-common/src/datasources/drivers/informix/informix/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/informix/informix/__init__.py     
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/informix/informix/__init__.py     
2004-03-09 23:12:02 UTC (rev 5283)
@@ -18,12 +18,10 @@
 #
 # Copyright 2000-2004 Free Software Foundation
 #
+"""
+informix init file
+"""
 
-__description__ = _("Informix Data Driver")
-__driverurl__ = "http://????";
-__examples__ = ""
-__doc__ = ""
-
 #
 # Stub code to not initialize the Connection until needed.
 # This greatly helps with error messages.

Added: trunk/gnue-common/src/datasources/drivers/ingres/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/ingres/Info.py    2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/ingres/Info.py    2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,34 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Info for this database.
+"""
+
+#
+# Documentation
+#
+__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
+                   # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/ingres/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/ingres/__init__.py        
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/ingres/__init__.py        
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1 +1,25 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for Ingres databases.
+"""
+
 DRIVERS=['ingres']

Modified: trunk/gnue-common/src/datasources/drivers/ingres/ingres/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/ingres/ingres/Connection.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/ingres/ingres/Connection.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -35,10 +35,11 @@
 
 __all__ = ['Connection']
 
-#### THIS IS AN UNTESTED DRIVER ####
-####      Any volunteers?       ####
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
 
-
 from string import lower
 import sys
 from gnue.common.datasources import GDataObjects, GConditions

Added: trunk/gnue-common/src/datasources/drivers/ingres/ingres/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/ingres/ingres/Info.py     
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/ingres/ingres/Info.py     
2004-03-09 23:12:02 UTC (rev 5283)
@@ -0,0 +1,63 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Information on this driver
+"""
+
+#
+# Notes on this driver
+#
+__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
+the various Pre-CA Ingres solutions.
+
+Support
+-------
+POSIX Support: YES
+Win32 Support: ???
+
+Platforms Tested:
+  * We need testers.
+
+Supported Properties
+--------------------
+host       -- This is the hostname running your database server (optional)
+dbname     -- This is the name of the database to use (required)
+
+Examples
+--------
+  [myconn]
+  provider=informix       # Use the Kinfxdb adapter
+  host=localhost          # The hostname/IP of the Informix host
+  dbname=mydb             # The name of the Informix database
+
+Notes
+-----
+1. This driver has not been fully tested.  If you are successfully using
+   this driver, please let us know.
+
+2. This driver does not yet support schema introspection, so you will not
+   be able to use Wizards in GNUe Designer.
+"""

Modified: trunk/gnue-common/src/datasources/drivers/ingres/ingres/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/ingres/ingres/__init__.py 
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/ingres/ingres/__init__.py 
2004-03-09 23:12:02 UTC (rev 5283)
@@ -18,12 +18,10 @@
 #
 # Copyright 2000-2004 Free Software Foundation
 #
+"""
+ingres init file
+"""
 
-__description__ = _("Ingres Data Driver")
-__driverurl__ = "http://????";
-__examples__ = ""
-__doc__ = ""
-
 #
 # Stub code to not initialize the Connection until needed.
 # This greatly helps with error messages.

Added: trunk/gnue-common/src/datasources/drivers/interbase/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/interbase/Info.py 2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/interbase/Info.py 2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,45 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Info for this database.
+"""
+
+#
+# Documentation
+#
+__name__ = "Firebird/Interbase Databases"
+__url__ = "http://www.mysql.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
+stored procedures and triggers. It has been used in production systems,
+under a variety of names since 1981.
+
+Interbase is a commercial database available from Borland.
+
+Firebird and Interbase share a common API, which allows GNUe to use the same
+drivers for both.
+
+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
+                   # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/interbase/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/interbase/__init__.py     
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/interbase/__init__.py     
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1 +1,25 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for Interbase databases.
+"""
+
 DRIVERS=['interbase']

Modified: 
trunk/gnue-common/src/datasources/drivers/interbase/interbase/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/interbase/interbase/Connection.py 
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/interbase/interbase/Connection.py 
2004-03-09 23:12:02 UTC (rev 5283)
@@ -35,6 +35,11 @@
 
 __all__ = ['Connection']
 
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
+
 from string import upper, lower, rstrip
 import sys
 from gnue.common.datasources import GDataObjects, GConditions, GConnections

Added: trunk/gnue-common/src/datasources/drivers/interbase/interbase/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/interbase/interbase/Info.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/interbase/interbase/Info.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -0,0 +1,62 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Information on this driver
+"""
+
+#
+# Notes on this driver
+#
+__name__ = _("kinterbasdb Firebird/Interbase Driver")
+__url__ = "http://kinterbasdb.sourceforge.net";
+__doc__ = """
+Description
+-----------
+Written by Alexander Kuznetsov, kinterbasdb provides support for
+Firebird and Interbase.
+
+Support
+-------
+POSIX Support: YES
+Win32 Support: YES [prebuilt binaries]
+
+Platforms Tested:
+  * Windows 2000
+  * Debian
+
+Supported Properties
+--------------------
+host       -- This is the hostname running your database server (optional)
+dbname     -- This is the name of the database to use (required)
+
+Examples
+--------
+  [myconn]
+  provider=firebird       # Use the kinterbasdb adapter
+  host=localhost          # The hostname/IP of the Firebird host
+  dbname=mydb             # The name of the Firebird database
+
+  [myconn2]
+  provider=interbase      # Use the kinterbasdb adapter
+  host=localhost          # The hostname/IP of the Interbase host
+  dbname=mydb             # The name of the Interbase database
+
+"""

Modified: 
trunk/gnue-common/src/datasources/drivers/interbase/interbase/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/interbase/interbase/__init__.py   
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/interbase/interbase/__init__.py   
2004-03-09 23:12:02 UTC (rev 5283)
@@ -18,15 +18,10 @@
 #
 # Copyright 2000-2004 Free Software Foundation
 #
+"""
+interbase init file
+"""
 
-__all__ = ['Connection']
-
-
-__description__ = _("Interbase Data Driver")
-__driverurl__ = "http://kinterbasdb.sourceforge.net";
-__examples__ = ""
-__doc__ = ""
-
 #
 # Stub code to not initialize the Connection until needed.
 # This greatly helps with error messages.

Added: trunk/gnue-common/src/datasources/drivers/ldap/Info.py
===================================================================

Modified: trunk/gnue-common/src/datasources/drivers/ldap/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/ldap/__init__.py  2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/ldap/__init__.py  2004-03-09 
23:12:02 UTC (rev 5283)
@@ -1 +1,37 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for LDAP databases.
+"""
+
 DRIVERS=['ldap']
+
+#
+# Documentation
+#
+__name__ = "LDAP Driver"
+__url__ = "http://www.openldap.org/";
+__description__ = """
+The LDAP drivers are for special-case uses of accessing LDAP
+stores as a datasource.
+"""
+__isfree__ = True  # Should be false for non-free DBMSs... we don't want to
+                   # show URLs for non-free on our website

Added: trunk/gnue-common/src/datasources/drivers/mysql/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/mysql/Info.py     2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/mysql/Info.py     2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,38 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Info for this database.
+"""
+
+#
+# Documentation
+#
+__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
+                   # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/mysql/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/mysql/__init__.py 2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/mysql/__init__.py 2004-03-09 
23:12:02 UTC (rev 5283)
@@ -1 +1,25 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for MySQL databases.
+"""
+
 DRIVERS=['mysql']

Modified: trunk/gnue-common/src/datasources/drivers/mysql/mysql/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/mysql/mysql/Connection.py 
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/mysql/mysql/Connection.py 
2004-03-09 23:12:02 UTC (rev 5283)
@@ -30,6 +30,10 @@
 
 __all__ = ['Connection']
 
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
 
 import string
 import sys
@@ -43,7 +47,7 @@
        + _("mysql-python 0.9.0 or later from") \
        + "http://sourceforge.net/projects/mysql-python\n"; \
        + _("[Error:  %s]") % message
-  
+
   raise GConnections.AdapterNotInstalled, tmsg
 
 from gnue.common.datasources.drivers import DBSIG2
@@ -68,17 +72,17 @@
 
   def connect(self, connectData={}):
     GDebug.printMesg(1,"Mysql database driver initializing")
-    
+
     # 1. just allow string type username/password 2. None -> ''
     user   = str(connectData['_username'] or '')
     passwd = str(connectData['_password'] or '')
-    
+
     try:
       self.native = MySQLdb.connect(user=user,
                    passwd=passwd,
                    host=connectData['host'],
                    db=connectData['dbname'])
-      
+
     except self._DatabaseError, value:
       raise GDataObjects.LoginError, value
 

Added: trunk/gnue-common/src/datasources/drivers/mysql/mysql/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/mysql/mysql/Info.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/mysql/mysql/Info.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -0,0 +1,64 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Information on this driver
+"""
+
+#
+# Notes on this driver
+#
+__name__ = _("MySQLdb")
+__url__ = "http://sourceforge.net/projects/mysql-python";
+__doc__ = """
+Description
+-----------
+Written by Andy Dustman, this driver supports MySQL 3.22, 3.23, and
+4.x.
+
+Support
+-------
+POSIX Support: YES
+
+Win32 Support: YES [prebuilt binaries at http://www.cs.fhm.edu/~ifw00065/]
+
+Platforms Tested:
+  * GNU/Linux [Debian]
+
+Supported Properties
+--------------------
+host       -- This is the host for your connection (required)
+dbname     -- This is the name of the database to use (required)
+
+Examples
+--------
+ [myconn]
+ provider=mysql          # Use the MySQLdb adapter
+ host=localhost          # The hostname/IP of the MySQL host
+ dbname=mydb             # The name of the MySQL database
+
+Notes
+-----
+1. Transactions are supported if MySQL is compiled with proper
+   transactional support (3.x series does NOT do this by default!)
+
+2. This driver has been partially tested.  If you are successfully using
+   this driver, please let us know.
+"""

Modified: trunk/gnue-common/src/datasources/drivers/mysql/mysql/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/mysql/mysql/__init__.py   
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/mysql/mysql/__init__.py   
2004-03-09 23:12:02 UTC (rev 5283)
@@ -18,11 +18,11 @@
 #
 # Copyright 2000-2004 Free Software Foundation
 #
-__description__ = _("MySQL Data Driver")
-__driverurl__ = "http://????";
-__examples__ = ""
-__doc__ = ""
+"""
+MySQLdb dataobject driver
+"""
 
+
 #
 # Stub code to not initialize the Connection until needed.
 # This greatly helps with error messages.
@@ -30,4 +30,3 @@
 def Connection(*args, **parms):
   from Connection import Connection as C
   return C(*args, **parms)
-

Added: trunk/gnue-common/src/datasources/drivers/odbc/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/odbc/Info.py      2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/odbc/Info.py      2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,37 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Info for this database.
+"""
+
+#
+# Documentation
+#
+__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
+                   # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/odbc/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/odbc/__init__.py  2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/odbc/__init__.py  2004-03-09 
23:12:02 UTC (rev 5283)
@@ -1 +1,25 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for ODBC connections.
+"""
+
 DRIVERS=['wodbc']

Added: trunk/gnue-common/src/datasources/drivers/odbc/mxodbc/Info.py
===================================================================

Modified: trunk/gnue-common/src/datasources/drivers/odbc/wodbc/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/odbc/wodbc/Connection.py  
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/odbc/wodbc/Connection.py  
2004-03-09 23:12:02 UTC (rev 5283)
@@ -36,6 +36,11 @@
 
 __all__ = ['Connection']
 
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
+
 import sys, string, types
 from gnue.common.datasources import GDataObjects, GConditions, GConnections
 from gnue.common.apps import GDebug
@@ -79,8 +84,8 @@
     self._deleteFlag = 0
 
     return 1
-        
 
+
   # If a vendor can do any of these more efficiently (i.e., use a known
   # PRIMARY KEY or ROWID, then override these methods. Otherwise, leave
   # as default.  Note that these functions are specific to DB-SIG based
@@ -103,12 +108,12 @@
        (self._parent._dataObject.table, string.join(where,' AND ') )
     return statement
 
-  def _buildInsertStatement(self): 
+  def _buildInsertStatement(self):
     vals = []
     fields = []
 
     # TODO: This should actually only insert modified fields.
-    # TODO: Unfortunately, self._modifiedFlags is not being 
+    # TODO: Unfortunately, self._modifiedFlags is not being
     # TODO: set for new records (address@hidden)
     #for field in self._modifiedFlags.keys():
 
@@ -118,10 +123,10 @@
         if self._fields[field] == None or self._fields[field] == '':
           vals.append ("NULL") #  % (self._fields[field]))
         else:
-          try: 
-            if self._parent._fieldTypes[field] == 'number': 
+          try:
+            if self._parent._fieldTypes[field] == 'number':
               vals.append ("%s" % (self._fields[field]))
-            else: 
+            else:
               vals.append ("'%s'" % (self._fields[field]))
           except ValueError:
             vals.append ("%s" % (self._fields[field]))
@@ -164,7 +169,7 @@
         string.join(where,' AND ') )
 
 
-class ODBC_ResultSet(GDataObjects.ResultSet): 
+class ODBC_ResultSet(GDataObjects.ResultSet):
   def __init__(self, dataObject, cursor=None, \
         defaultValues={}, masterRecordSet=None):
     GDataObjects.ResultSet.__init__(
@@ -329,7 +334,7 @@
     rs = cursor.fetchone()
     return int(rs[0])
 
-    
+
   def _buildQueryCount(self, conditions={}):
     q = "SELECT count(*) FROM %s%s" % (self.table, 
self._conditionToSQL(conditions))
 
@@ -340,20 +345,20 @@
   def commit(self):
     GDebug.printMesg (5,"DB-SIG database driver: commit()")
 
-    try: 
+    try:
       self.native.commit()
     except self._DatabaseError, value:
       raise GDataObjects.ConnectionError, value
-    
+
     self._beginTransaction()
 
-  def rollback(self): 
+  def rollback(self):
     GDebug.printMesg (5,"DB-SIG database driver: rollback()")
 
-    try: 
+    try:
       self.native.rollback()
-    except: 
-      pass     # I'm SURE this isn't right (jcater)
+    except:
+      pass        # I'm SURE this isn't right (jcater)
                 # But not all db's support transactions
 
     self._beginTransaction()
@@ -364,34 +369,34 @@
 
 
   # Used to convert a condition tree to an sql where clause
-  def _conditionToSQL (self, condition): 
-    if condition == {} or condition == None: 
+  def _conditionToSQL (self, condition):
+    if condition == {} or condition == None:
       return ""
-    elif type(condition) == types.DictType: 
+    elif type(condition) == types.DictType:
       cond = GConditions.buildConditionFromDict(condition)
     else:
       cond = condition
-  
-    if not len(cond._children): 
+
+    if not len(cond._children):
       return ""
-    elif len(cond._children) > 1: 
+    elif len(cond._children) > 1:
       chillun = cond._children
       cond._children = []
       _and = GConditions.GCand(cond)
       _and._children = chillun
-  
 
+
     where = " WHERE (%s)" % (self.__conditionToSQL (cond._children[0]))
     GDebug.printMesg(5, where)
     return where
-  
+
   # Used internally by _conditionToSQL
-  def __conditionToSQL (self, element): 
-    if type(element) != types.InstanceType: 
+  def __conditionToSQL (self, element):
+    if type(element) != types.InstanceType:
       return "%s" % element
-    else: 
+    else:
       otype = string.lower(element._type[2:])
-      if otype == 'cfield': 
+      if otype == 'cfield':
         return "%s" % element.name
       elif otype == 'cconst':
         if element.value == None:
@@ -404,39 +409,39 @@
         v = element.getValue()
         return (v == None and "NULL") or ("'%s'" % element.getValue())
       elif self.conditionElements.has_key(otype):
-        for i in range(0, len(element._children)): 
+        for i in range(0, len(element._children)):
           element._children[i] = self.__conditionToSQL(element._children[i])
-        if len(element._children) < self.conditionElements[otype][0]: 
+        if len(element._children) < self.conditionElements[otype][0]:
           tmsg = _('Condition element "%s" expects at least %s arguments; 
found %s') % \
                 (otype, self.conditionElements[otype][0], 
len(element._children))
           raise GConditions.ConditionError, tmsg
-        if len(element._children) > self.conditionElements[otype][1]: 
+        if len(element._children) > self.conditionElements[otype][1]:
           tmsg = _('Condition element "%s" expects at most %s arguments; found 
%s') % \
                 (otype, self.conditionElements[otype][0], 
len(element._children))
           raise GConditions.ConditionError, tmsg
-        if self.conditionElements[otype][3] == None: 
+        if self.conditionElements[otype][3] == None:
           return self.conditionElements[otype][2] % tuple(element._children)
-        else: 
+        else:
           return self.conditionElements[otype][2] % \
             (string.join(element._children, self.conditionElements[otype][3]))
-      else: 
+      else:
         tmsg = _('Condition clause "%s" is not supported by this db driver.') 
% otype
         raise GConditions.ConditionNotSupported, tmsg
 
-  # Code necessary to force the connection into transaction mode... 
+  # Code necessary to force the connection into transaction mode...
   # this is usually not necessary (MySQL is one of few DBs that must force)
-  def _beginTransaction(self): 
-    pass      
+  def _beginTransaction(self):
+    pass
 
 
-class ODBC_DataObject_Object(ODBC_DataObject): 
-  def _buildQuery(self, conditions={}): 
+class ODBC_DataObject_Object(ODBC_DataObject):
+  def _buildQuery(self, conditions={}):
     GDebug.printMesg(7,'Implicit Fields: %s' % self._fieldReferences)
     if len(self._fieldReferences):
       q = "SELECT %s FROM %s%s" % \
-           (string.join(self._fieldReferences.keys(),","), self.table, 
+           (string.join(self._fieldReferences.keys(),","), self.table,
             self._conditionToSQL(conditions))
-    else: 
+    else:
       q = "SELECT * FROM %s%s" % (self.table, self._conditionToSQL(conditions))
 
     if hasattr(self,'order_by'):

Added: trunk/gnue-common/src/datasources/drivers/odbc/wodbc/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/odbc/wodbc/Info.py        
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/odbc/wodbc/Info.py        
2004-03-09 23:12:02 UTC (rev 5283)
@@ -0,0 +1,57 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Information on this driver
+"""
+
+#
+# Notes on this driver
+#
+__name__ = _("PythonWin ODBC Driver")
+__url__ = 
"http://aspn.activestate.com/ASPN/Downloads/ActivePython/Extensions/Win32all";
+__doc__ = """
+Description
+-----------
+PythonWin ODBC driver for Windows.
+
+Support
+-------
+POSIX Support: YES
+Win32 Support: ???
+
+Platforms Tested:
+  * Windows 98/2000/NT/XT
+
+Supported Properties
+--------------------
+service    -- This is the ODBC DSN= connection string for the database
+
+Examples
+--------
+  [myconn]
+  provider=odbc           # Use the ODBC adapter
+  service=mydsn           # The DSN connection string of the database
+
+Notes
+-----
+1. Since the underlying driver does not support introspection, GNUe cannot
+   support ODBC introspection via this driver.
+"""

Modified: trunk/gnue-common/src/datasources/drivers/odbc/wodbc/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/odbc/wodbc/__init__.py    
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/odbc/wodbc/__init__.py    
2004-03-09 23:12:02 UTC (rev 5283)
@@ -18,12 +18,10 @@
 #
 # Copyright 2000-2004 Free Software Foundation
 #
+"""
+wodbc init file
+"""
 
-__description__ = _("Windows ODBC Data Driver")
-__driverurl__ = "http://????";
-__examples__ = ""
-__doc__ = ""
-
 #
 # Stub code to not initialize the Connection until needed.
 # This greatly helps with error messages.

Added: trunk/gnue-common/src/datasources/drivers/oracle/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/oracle/Info.py    2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/oracle/Info.py    2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,34 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Info for this database.
+"""
+
+#
+# Documentation
+#
+__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
+                   # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/oracle/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/oracle/__init__.py        
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/oracle/__init__.py        
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1 +1,25 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for Oracle databases.
+"""
+
 DRIVERS=['cxoracle','dcoracle']

Added: trunk/gnue-common/src/datasources/drivers/oracle/cxoracle/Info.py
===================================================================

Modified: trunk/gnue-common/src/datasources/drivers/oracle/cxoracle/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/oracle/cxoracle/__init__.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/oracle/cxoracle/__init__.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -22,9 +22,10 @@
 # cxoracle/__init__.py
 #
 # DESCRIPTION:
-# Oracle implementation of dbdriver using Python DB-SIG v2
-# specification.
-#
+"""
+Oracle implementation of dbdriver using Python DB-SIG v2
+specification.
+"""
 # NOTES:
 #
 

Added: trunk/gnue-common/src/datasources/drivers/oracle/dcoracle/Info.py
===================================================================

Modified: trunk/gnue-common/src/datasources/drivers/oracle/dcoracle/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/oracle/dcoracle/__init__.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/oracle/dcoracle/__init__.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -22,9 +22,10 @@
 # dcoracle/__init__.py
 #
 # DESCRIPTION:
-# Oracle implementation of dbdriver using Python DB-SIG v2
-# specification.
-#
+"""
+Oracle implementation of dbdriver using Python DB-SIG v2
+specification.
+"""
 # NOTES:
 #
 

Added: trunk/gnue-common/src/datasources/drivers/postgresql/Info.py
===================================================================

Modified: trunk/gnue-common/src/datasources/drivers/postgresql/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/postgresql/__init__.py    
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/postgresql/__init__.py    
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1 +1,43 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for PostgreSQL databases.
+"""
+
 DRIVERS=['psycopg','popy','pygresql','pypgsql']
+
+#
+# Documentation
+#
+__name__ = "PostgreSQL"
+__url__ = "http://www.mysql.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
+than most commercial databases.  It also supports some object-oriented
+features. PostgreSQL is a full-featured, multi-user RDBMS that scales well
+from a few users to an entire organization.
+
+PostgreSQL is the primary database used by GNUe developers.
+"""
+__isfree__ = True  # Should be false for non-free DBMSs... we don't want to
+                   # show URLs for non-free on our website

Added: trunk/gnue-common/src/datasources/drivers/postgresql/popy/Info.py
===================================================================

Modified: trunk/gnue-common/src/datasources/drivers/postgresql/popy/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/postgresql/popy/__init__.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/postgresql/popy/__init__.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -22,9 +22,10 @@
 # popy/DBdriver.py
 #
 # DESCRIPTION:
-# Postgresql implementation of dbdriver using Python DB-SIG v2
-# specification.
-#
+"""
+Postgresql implementation of dbdriver using Python DB-SIG v2
+specification.
+"""
 # NOTES:
 #
 

Added: trunk/gnue-common/src/datasources/drivers/postgresql/psycopg/Info.py
===================================================================

Modified: 
trunk/gnue-common/src/datasources/drivers/postgresql/psycopg/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/postgresql/psycopg/__init__.py    
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/postgresql/psycopg/__init__.py    
2004-03-09 23:12:02 UTC (rev 5283)
@@ -22,9 +22,10 @@
 # psycopg/DBdriver.py
 #
 # DESCRIPTION:
-# Postgresql implementation of dbdriver using Python DB-SIG v2
-# specification.
-#
+"""
+Postgresql implementation of dbdriver using Python DB-SIG v2
+specification.
+"""
 # NOTES:
 #
 

Added: trunk/gnue-common/src/datasources/drivers/postgresql/pygresql/Info.py
===================================================================

Modified: 
trunk/gnue-common/src/datasources/drivers/postgresql/pygresql/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/postgresql/pygresql/__init__.py   
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/postgresql/pygresql/__init__.py   
2004-03-09 23:12:02 UTC (rev 5283)
@@ -22,9 +22,10 @@
 # postgresql/DBdriver.py
 #
 # DESCRIPTION:
-# Postgresql implementation of dbdriver using Python DB-SIG v2
-# specification.
-#
+"""
+Postgresql implementation of dbdriver using Python DB-SIG v2
+specification.
+"""
 # NOTES:
 #
 

Added: trunk/gnue-common/src/datasources/drivers/postgresql/pypgsql/Info.py
===================================================================

Modified: 
trunk/gnue-common/src/datasources/drivers/postgresql/pypgsql/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/postgresql/pypgsql/__init__.py    
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/postgresql/pypgsql/__init__.py    
2004-03-09 23:12:02 UTC (rev 5283)
@@ -22,9 +22,10 @@
 # pypgsql/DBdriver.py
 #
 # DESCRIPTION:
-# Postgresql implementation of dbdriver using Python DB-SIG v2
-# specification.
-#
+"""
+Postgresql implementation of dbdriver using Python DB-SIG v2
+specification.
+"""
 # NOTES:
 #
 

Added: trunk/gnue-common/src/datasources/drivers/sapdb/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sapdb/Info.py     2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/sapdb/Info.py     2004-03-09 
23:12:02 UTC (rev 5283)
@@ -0,0 +1,39 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Info for this database.
+"""
+
+#
+# Documentation
+#
+__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
+feature set.
+
+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
+                   # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/sapdb/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sapdb/__init__.py 2004-03-09 
22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/sapdb/__init__.py 2004-03-09 
23:12:02 UTC (rev 5283)
@@ -1 +1,25 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for this databases.
+"""
+
 DRIVERS=['sapdb']

Modified: trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/Connection.py 
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/Connection.py 
2004-03-09 23:12:02 UTC (rev 5283)
@@ -22,8 +22,7 @@
 # sapdb/DBdriver.py
 #
 # DESCRIPTION:
-# Driver to provide access to data via SAP's SAP-DB/Python Driver
-# Requires SAP-DB (http://www.sapdb.org/)
+# Driver to provide access to data via MySQL's MaxDB/SAP-DB Python Driver
 #
 # NOTES:
 #
@@ -33,29 +32,16 @@
 #     dbname=    This is the SAP-DB database to use (required)
 #     timeout=   Command timeout in seconds (optional)
 #     isolation= Isolation level (options)
-#     sqlmode=   INTERNAl or ORACLE (optional)
+#     sqlmode=   INTERNAL or ORACLE (optional)
 #     sqlsubmode= ODBC or empty (optional)
 #
 
-_exampleConfig = """
-# This connection uses the SAP DB  driver
-# We will be connecting to the SAP DB server on
-# "localhost" to a database called "TST".
-[sapdb]
-comment = XYZ Development Database
-provider = sapdb
-dbname = TST
-# host = localhost   # (optional)
-# sqlmode = INTERNAL # (default) or ORACLE
-# sqlsubmode = ODBC  # (for compatibility with the SAP DB ODBC driver)
-# timeout = 900      # (command timeout in seconds)
-# isolation = 1      # 0, 1 (default), 10, 15, 2, 20, 3, 30
-"""
-
 __all__ = ['Connection']
 
-#### THIS IS AN UNTESTED DRIVER ####
-####      Any volunteers?       ####
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
 
 import string
 from string import lower
@@ -67,7 +53,7 @@
 try:
   import sapdbapi as SIG2api
 except ImportError, message:
-  tmsg = _("Driver not installed: sapdbapi for SAP-DB 7.x \n[%s]") % message
+  tmsg = _("Driver not installed: sapdbapi for MaxDB/SAP-DB 7.x \n[%s]") % 
message
   raise GConnections.AdapterNotInstalled, tmsg
 
 from gnue.common.datasources.drivers.sapdb.Schema.Discovery.Introspection 
import Introspection

Added: trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/Info.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/Info.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/Info.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -0,0 +1,68 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Information on this driver
+"""
+
+#
+# Notes on this driver
+#
+__name__ = _("MySQL's MaxDB driver")
+__url__ = "http://www.mysql.com/products/maxdb/sapdbapi.html";
+__doc__ = """
+Description
+-----------
+Python driver for MaxDB/SAPDB version 7.x+.
+
+Support
+-------
+POSIX Support: YES
+Win32 Support: ???
+
+Platforms Tested:
+  * We need testers.
+
+Supported Properties
+--------------------
+host       -- This is the MaxDB host for your connection (optional)
+dbname     -- This is the MaxDB database to use (required)
+timeout    -- Command timeout in seconds (optional)
+isolation  -- Isolation level (optional) (0, 1 [default], 10, 15, 2, 20, 3, 30)
+sqlmode    -- INTERNAL (default) or ORACLE (optional)
+sqlsubmode -- ODBC or empty (optional)
+
+Examples
+--------
+# This connection uses the SAP DB  driver
+# We will be connecting to the SAP DB server on
+# "localhost" to a database called "TST".
+[sapdb]
+comment = XYZ Development Database
+provider = sapdb
+host=dbs.mydomain.com
+dbname = TST
+timeout = 900
+
+Notes
+-----
+1. This driver has been partially tested.  If you are successfully using
+   this driver, please let us know.
+"""

Modified: trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/__init__.py   
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/sapdb/sapdb/__init__.py   
2004-03-09 23:12:02 UTC (rev 5283)
@@ -18,13 +18,10 @@
 #
 # Copyright 2000-2004 Free Software Foundation
 #
+"""
+init file
+"""
 
-__description__ = _("SAP-DB Data Driver")
-__driverurl__ = "http://????";
-__examples__ = ""
-__doc__ = ""
-
-#
 # Stub code to not initialize the Connection until needed.
 # This greatly helps with error messages.
 #

Added: trunk/gnue-common/src/datasources/drivers/special/Info.py
===================================================================

Modified: trunk/gnue-common/src/datasources/drivers/special/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/special/__init__.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/special/__init__.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1 +1,37 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for special/internal datasources.
+"""
+
 DRIVERS = ["configfile","static"]
+
+#
+# Documentation
+#
+__name__ = "Special Drivers"
+__url__ = ""
+__description__ = """
+This contains special drivers used internally by the various
+GNUe tools.  It is not meant for end-user use.
+"""
+__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/special/configfile/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/special/configfile/Connection.py  
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/special/configfile/Connection.py  
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1,19 +1,19 @@
 #
 # This file is part of GNU Enterprise.
 #
-# GNU Enterprise is free software; you can redistribute it 
-# and/or modify it under the terms of the GNU General Public 
-# License as published by the Free Software Foundation; either 
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
 # version 2, or (at your option) any later version.
 #
-# GNU Enterprise is distributed in the hope that it will be 
-# useful, but WITHOUT ANY WARRANTY; without even the implied 
-# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 # PURPOSE. See the GNU General Public License for more details.
 #
-# You should have received a copy of the GNU General Public 
-# License along with program; see the file COPYING. If not, 
-# write to the Free Software Foundation, Inc., 59 Temple Place 
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
 # - Suite 330, Boston, MA 02111-1307, USA.
 #
 # Copyright 2000-2004 Free Software Foundation
@@ -41,6 +41,11 @@
 # HISTORY:
 # 04/02/05 updated to new db driver API
 
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
+
 VERSION="0.0.2"
 
 from gnue.common.datasources.drivers.Base.Connection import Connection as 
BaseConnection
@@ -56,14 +61,14 @@
 
   # TODO: do we have/need Introspection?
   defaultBehavior = Configfile_Error #Introspection
-  
+
   supportedDataObjects = {
     'object' : Configfile_DataObject
   }
 
   _DatabaseError = Configfile_Error
 
-  def connect(self, connectData={}): 
+  def connect(self, connectData={}):
     GDebug.printMesg(1,"Configfile database driver connecting...")
     try:
       # get filename
@@ -74,22 +79,22 @@
       else:
         self._filename=connectData['dbname']
 
-      # compute path (home directory) 
+      # compute path (home directory)
       if self._filename[0]=="~":
         self._filename=os.environ["HOME"]+self._filename[1:]
 
       # replace placeholder "%configdir%"
       if self._filename[0:11]=="%configdir%":
         self._filename=paths.config+self._filename[11:]
-                   
-      # try to open and parse file        
+
+      # try to open and parse file
       self.native = ConfigParser.ConfigParser()
       file=open(self._filename)
       self.native.readfp(file)
       file.close()
 
     except:
-      tmsg = _("Error opening config file %s") % self._filename 
+      tmsg = _("Error opening config file %s") % self._filename
       raise GDataObjects.ConnectionError, tmsg
 
   # no authentification required

Added: trunk/gnue-common/src/datasources/drivers/special/configfile/Info.py
===================================================================

Modified: 
trunk/gnue-common/src/datasources/drivers/special/configfile/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/special/configfile/__init__.py    
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/special/configfile/__init__.py    
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1,3 +1,26 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+sqlite init file
+"""
 __description__ = _("ConfigFile Special Data Driver")
 __driverurl__ = "n/a"
 __examples__ = "n/a"

Modified: trunk/gnue-common/src/datasources/drivers/special/static/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/special/static/Connection.py      
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/special/static/Connection.py      
2004-03-09 23:12:02 UTC (rev 5283)
@@ -33,11 +33,16 @@
 from gnue.common.datasources.GDataObjects import *
 from DataObject import *
 
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
+
 class Connection(Connection):
 
   # TODO: do we have/need Introspection?
   #defaultBehavior = Introspection
-  
+
   supportedDataObjects = {
     'object': STATIC_DataObject
   }

Added: trunk/gnue-common/src/datasources/drivers/special/static/Info.py
===================================================================

Modified: trunk/gnue-common/src/datasources/drivers/special/static/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/special/static/__init__.py        
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/special/static/__init__.py        
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1,6 +1,32 @@
-from Connection import Connection
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+special/static init file
+"""
 
 __description__ = _("Static Special Data Driver")
 __driverurl__ = "n/a"
 __examples__ = "n/a"
 __doc__ = ""
+
+def Connection(*args, **parms):
+  from Connection import Connection as C
+  return C(*args, **parms)

Added: trunk/gnue-common/src/datasources/drivers/special/unbound/Info.py
===================================================================

Modified: trunk/gnue-common/src/datasources/drivers/special/unbound/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/special/unbound/__init__.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/special/unbound/__init__.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1,3 +1,26 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+special/unbound init file
+"""
 from Driver import *
 
 __description__ = _("Unbound Special Data Driver")

Added: trunk/gnue-common/src/datasources/drivers/sqlite/Info.py
===================================================================

Modified: trunk/gnue-common/src/datasources/drivers/sqlite/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sqlite/__init__.py        
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/sqlite/__init__.py        
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1 +1,41 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for SQLite databases.
+"""
+
 DRIVERS=['sqlite']
+
+#
+# Documentation
+#
+__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.
+
+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
+                   # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/Connection.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/Connection.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -34,6 +34,11 @@
 
 __all__ = ['Connection']
 
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
+
 from string import lower,find,rfind,split,strip
 import sys
 from gnue.common.datasources import GDataObjects, GConditions, GConnections

Added: trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/Info.py
===================================================================

Modified: trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/__init__.py 
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/sqlite/sqlite/__init__.py 
2004-03-09 23:12:02 UTC (rev 5283)
@@ -18,6 +18,9 @@
 #
 # Copyright 2000-2004 Free Software Foundation
 #
+"""
+sqlite init file
+"""
 
 __description__ = _("SQLite Data Driver")
 __driverurl__ = "http://????";

Added: trunk/gnue-common/src/datasources/drivers/sqlrelay/Info.py
===================================================================

Modified: trunk/gnue-common/src/datasources/drivers/sqlrelay/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sqlrelay/__init__.py      
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/sqlrelay/__init__.py      
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1 +1,36 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for SQLRelay connections.
+"""
+
 DRIVERS=['sqlrelay']
+
+#
+# Documentation
+#
+__name__ = "SQLRelay"
+__url__ = "http://sqlrelay.sourceforge.net/";
+__description__ = """
+SQL Relay is a persistent database connection pooling, proxying and load 
balancing system for Unix and Linux supporting ODBC, Oracle, MySQL, mSQL, 
PostgreSQL, Sybase, MS SQL Server, IBM DB2, Interbase, Lago and SQLite.
+"""
+__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/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/Connection.py   
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/Connection.py   
2004-03-09 23:12:02 UTC (rev 5283)
@@ -35,8 +35,10 @@
 
 __all__ = ['Connection']
 
-#### THIS IS AN UNTESTED DRIVER ####
-####      Any volunteers?       ####
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
 
 
 from string import lower

Added: trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/Info.py
===================================================================

Modified: 
trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/__init__.py     
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/sqlrelay/sqlrelay/__init__.py     
2004-03-09 23:12:02 UTC (rev 5283)
@@ -18,6 +18,9 @@
 #
 # Copyright 2000-2004 Free Software Foundation
 #
+"""
+sqlrelay init file
+"""
 
 __description__ = _("SQLRelay Data Driver")
 __driverurl__ = "http://????";

Added: trunk/gnue-common/src/datasources/drivers/sybase/Info.py
===================================================================

Modified: trunk/gnue-common/src/datasources/drivers/sybase/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sybase/__init__.py        
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/sybase/__init__.py        
2004-03-09 23:12:02 UTC (rev 5283)
@@ -1 +1,36 @@
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or(at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# Copyright 2000-2004 Free Software Foundation
+#
+"""
+Driver structure for Sybase databases.
+"""
+
 DRIVERS=['sybase']
+
+#
+# Documentation
+#
+__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
+                    # show URLs for non-free on our website

Modified: trunk/gnue-common/src/datasources/drivers/sybase/sybase/Connection.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sybase/sybase/Connection.py       
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/sybase/sybase/Connection.py       
2004-03-09 23:12:02 UTC (rev 5283)
@@ -33,8 +33,10 @@
 #     dbame=      This is the Sybase database to use (optional)
 #
 
-#### THIS IS AN UNTESTED DRIVER ####
-####      Any volunteers?       ####
+####                                   ####
+#### IF YOU MODIFY ANY CONNECTION      ####
+#### ATTRIBUTES, PLEASE UPDATE info.py ####
+####                                   ####
 
 __all__ = ['Connection']
 

Added: trunk/gnue-common/src/datasources/drivers/sybase/sybase/Info.py
===================================================================

Modified: trunk/gnue-common/src/datasources/drivers/sybase/sybase/__init__.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sybase/sybase/__init__.py 
2004-03-09 22:48:41 UTC (rev 5282)
+++ trunk/gnue-common/src/datasources/drivers/sybase/sybase/__init__.py 
2004-03-09 23:12:02 UTC (rev 5283)
@@ -18,6 +18,9 @@
 #
 # Copyright 2000-2004 Free Software Foundation
 #
+"""
+sybase init file
+"""
 
 __description__ = _("Sybase Data Driver")
 __driverurl__ = "http://????";





reply via email to

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