Hi all, I'm trying to write a script to access to PostgreSQL and Oracle, like this:
# -*- coding: utf-8 -*- import turbogears from turbogears.database import get_engine #PostgreSQL... turbogears.update_config(configfile='ora.cfg', modulename="sicer.config") sql='select name from database' engine = get_engine() print engine.execute(sql).fetchall() #Oracle... turbogears.update_config(configfile='dev.cfg', modulename="sicer.config") sql='select name from database' engine = get_engine() print engine.execute(sql).fetchall() I was hoping to be logged on to the 2 databases, one at a time, but... [(u'Oracle v10g',)] [(u'Oracle v10g',)] Could someone help me? j -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

