with latest stable version that comes with easy_install
In [4]: import web
In [5]: db=web.database(dbn='firebird',db='/tmp/
test.fdb',user='SYSDBA',pw='masterkey')
In [6]: result=db.query('select * from rdb$database')
---------------------------------------------------------------------------
NameError Traceback (most recent call
last)
/home/mariuz/<ipython console> in <module>()
/usr/local/lib/python2.6/dist-packages/web.py-0.34-py2.6.egg/web/
db.pyc in query(self, sql_query, vars, processed, _test)
604
605 if not processed and not isinstance(sql_query,
SQLQuery):
--> 606 sql_query = reparam(sql_query, vars)
607
608 if _test: return sql_query
/usr/local/lib/python2.6/dist-packages/web.py-0.34-py2.6.egg/web/
db.pyc in reparam(string_, dictionary)
275 for live, chunk in _interpolate(string_):
276 if live:
--> 277 v = eval(chunk, dictionary)
278 result.append(sqlquote(v))
279 else:
/home/mariuz/<string> in <module>()
NameError: name 'database' is not defined
--
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.