Python Samples
--------------
1 Python Sample Files Purpose
2 How to install Python on UNIX/LINUX
3 How to install Python on Windows
4 How to Run Python Samples

1 Python Sample Files Purpose
-----------------------------
   This directory contains some Python examples which illustrate 
   how to use Python DBAPI to connect DBMaker.

   catalogs.py      ==>Catalog function testing (not defined in DBAPI).
   cursors.py       ==>Get the maximum number of cursors DBMaker can create.
   datetimeformat.py==>Insert datetime column with different formats, and
                    ==>present datetime data with different formats.
   fetch.py         ==>Fetch methods testing.
   getinfo.py       ==>ODBC getinfo (not defined in DBAPI).
   showtable.py     ==>An interactive sample to show the content of a table.
   transact.py      ==>Transaction testing.

2 How to install Python on UNIX/LINUX
-------------------------------------
   (1) install Python-2.4.tgz (primary source code)
       ./configure
       ./make
       ./make install
       
       please reference http://www.python.org/
       
   (2) egenix-mx-base-2.0.6-1.i386.rpm (for linux)
       or
       unzip egenix-mx-base-2.0.6.tar.gz (source code)
       python setup.py build
       python setup.py install
       
       For more information and resource, please reference 
       http://www.egenix.com

   (3) unzip egenix-mx-commercial-2.0.7.tar.gz
       modify mxSetup.py 
              mxCOMMERCIAL.py
              mx\ODBC\DBMaker\mxODBC.h
       before edit,please setting the LD_LIBRARY_PATH=/APP_HOME/lib/so
       python setup.py build
       python setup.py install
       
       (we test on redhat9 linux with glibc-2.3.2-11.9)
       
       or
       (egenix-mx-commercial-2.0.7-1.i386_DBMaker5.4.rpm  for linux)
       tar zxvf egenix-mx-commercial-2.0.7_DBMaker5.4.tar.gz  
       python setup.py build
       python setup.py install            
       
       For more information, please contact with DBMaker support to 
       get more information)

3 How to install Python on Windows
----------------------------------
   (1) install python-2.4.msi
       please reference http://www.python.org/
       
   (2) install egenix-mx-base-2.0.6.win32-py2.4.exe (include mxDateTime)
       or
       unzip egenix-mx-base-2.0.6.zip (source code)
       python setup.py build
       python setup.py install
       
       For more information and resource, please reference 
       http://www.egenix.com

   (3) unzip egenix-mx-commercial-2.0.7.zip
       modify mxSetup.py 
              mxCOMMERCIAL.py
              mx\ODBC\DBMaker\mxODBC.h
       
       python setup.py build
       python setup.py install
       
       (need vs.net SDK, for python 2.4 build by VC 7.0)
       
       or
       install egenix-mx-commercial-2.0.7.win32-py2.4_DBMaker5.4.exe
       
       For more information, please contact with DBMaker support to 
       get more information)
       
4 How to Run Python Samples
---------------------------
   (1) To run these samples, firstly start the DBMaker sample database:
       dmserver dbsample5
       
   (2) Then run the programs by typing
       python XXX.py