Should this work?

>>> import web
>>> web.config.db_parameters = dict(dbn='sqlite', db='test.sqlite')
>>> rows=web.query("SELECT  * FROM domuinfo WHERE SERVER = 'test1' and DOMAIN = 
>>> 'bob.com'", vars=locals())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Python25\lib\site-packages\web\db.py", line 378, in query
    db_cursor = web.ctx.db_cursor()
  File "D:\Python25\Lib\site-packages\web\utils.py", line 708, in
__getattr__
    return getattr(self.__d[threading.currentThread()], attr)
  File "D:\Python25\Lib\site-packages\web\utils.py", line 55, in
__getattr__
    raise AttributeError, k
AttributeError: 'db_cursor'

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to