Changeset 130 for ibidas2.py


Ignore:
Timestamp:
Jul 6, 2009, 10:17:06 AM (11 years ago)
Author:
pvkouteren
Message:

postgres.py: Added logging of complete query and timing, added table replacement for views (although not active yet).
ibidas2.py: Added required lines for pointing Mac OS X to use readline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ibidas2.py

    r128 r130  
     1""" For Mac (in this case Patrick's Mac): define where the gnureadline module is located """
     2import sys
     3sys.path.insert( 1, '/Library/Python/2.5/site-packages/readline-2.5.1-py2.5-macosx-10.5-i386.egg')
     4""" End of gnureadline troubles """
    15from IPython.Shell import IPShellEmbed
    26
    37import container
    4 from container import iany,iall,readfile,writefile
     8from container import iany,iall,readfile,writefile, postgres
    59import config
    610
    7 #_ConfigDefault = {
    8 #    "database.name":                "ibidas_test",
    9 #    "database.user":                "marc",
    10 #    "database.password":            "testibidas",
    11 #    "database.host":                "127.0.0.1",
    12 #    "database.port":                "5432",
    13 #}
     11_ConfigDefault = {
     12    "database.name":                "ibidas",
     13    "database.user":                "postgres",
     14    "database.password":            "postgres",
     15    "database.host":                "127.0.0.1",
     16    "database.port":                "5432",
     17}
    1418#
    1519#print _ConfigDefault
    1620#
    17 #config = config.loadConfig('ibidas.ini',_ConfigDefault)
     21config = config.loadConfig('ibidas.ini',_ConfigDefault)
    1822#
    1923#
     
    2125#conn = postgres.openConnection(config['database.host'],\
    2226#            config['database.port'],config['database.name'],\
    23 #            config['database.user'],config['database.password'])
     27#            config['database.user'],config['database.password']).getConSet()
    2428#
     29conn = postgres.openConnection(config['database.host'],\
     30            config['database.port'],config['database.name'],\
     31            config['database.user'],config['database.password']).getConSet()
    2532
    2633ipshell = IPShellEmbed(banner='Welcome to the IBIDAS system',exit_msg='IBIDAS shutting down ...')
Note: See TracChangeset for help on using the changeset viewer.