> web.config.db_parameters=dict(dbn='postgres', user='USER', pw='',
> db='YYY', host='XXX')
>
> web.load()
> web.query('query from db YYY')
>
> web.connect(dbn='postgres', user='USER', pw='',db='ZZZ', host='XXX')
>
> web.query('query from db ZZZ') # THIS FAILS, still queries on db YYY
What about:
web.connect(dbn='postgres', user='USER', pw='', db='YYY', host='XXX')
web.query('query from db YYY')
web.connect(dbn='postgres', user='USER', pw='',db='ZZZ', host='XXX')
web.query('query from db ZZZ')
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---