On Mon, Apr 21, 2008 at 6:55 PM, Aaron Swartz <[EMAIL PROTECTED]> wrote:
> web.connect(dbn='postgres', user='USER', pw='', db='YYY', host='XXX')
>
> to switch connections.
i tried this, and it is still trying to connect and query the first database...
this is what i did.. correct me if i am wrong
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
i also tried to web.unload, web.load in various combinations.. it is
always querying first db it connected to
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---