Hi, I'm new in python and web.py. . . i'm trying to connect to a MS
SQL database like this:
db = web.database(dbn='mssql', user='sa', pw='xxx', db='myDB',
host='myHost')
and i get the following error:
File: "C:\Python26\lib\site-packages\web\db.py", line 991, in __init__
keywords['password'] = keywords.pop('kw') keyError: 'kw'
in db.py:
class MSSQLDB(DB):
def __init__(self, **keywords):
import pymssql as db
if 'pw' in keywords:
keywords['password'] = keywords.pop('kw')
... should it be keywords.pop('pw') ?, if not . . . what i'm doing
wrong?
thanks for your help.
I'm very sorry for my poor english :-P
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---