The following code works well from the command line, but produces the
following error when run from zope as an external method:
Error Type: AttributeError
Error Value: odbc
-----------------------
def testit():
import dbi, odbc
s = odbc.odbc('zopeSQL/zserver/*******')
cur = s.cursor()
cur.execute('select * from DBF_Import..purchdoc')
print cur.description
for tup in cur.description:
print tup[0],
print
while 1:
rec = cur.fetchmany(10)
if not rec: break
print rec
-----------------------
Any help greatly appreciated.
Erik Myllymaki
[EMAIL PROTECTED]
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )