source: ibidas2.py

Last change on this file was 149, checked in by pvkouteren, 10 years ago

Minor fixes to ibidas2.py and setup_db.py
Added test file patricktest.py

File size: 1.0 KB
Line 
1from IPython.Shell import IPShellEmbed
2
3import container
4from container import iany,iall,readfile,writefile, postgres
5import config
6
7_ConfigDefault = {
8    "database.name":                "ibidas_test_nieuw",
9    "database.user":                "postgres",
10    "database.password":            "postgres",
11    "database.host":                "127.0.0.1",
12    "database.port":                "5432",
13}
14#
15#print _ConfigDefault
16#
17config = config.loadConfig('ibidas.ini',_ConfigDefault)
18#
19#
20#print postgres
21#conn = postgres.openConnection(config['database.host'],\
22#            config['database.port'],config['database.name'],\
23#            config['database.user'],config['database.password']).getConSet()
24#
25conn = postgres.openConnection(config['database.host'],\
26            config['database.port'],config['database.name'],\
27            config['database.user'],config['database.password']).getConSet()
28
29ipshell = IPShellEmbed(banner='Welcome to the IBIDAS system',exit_msg='IBIDAS shutting down ...')
30del ipshell.IP.user_ns['_']
31ipshell()
Note: See TracBrowser for help on using the repository browser.