[Zope] problems with odbc

Erik Myllymaki erik@pacific-shores.com
Sun, 16 Jul 2000 13:32:06 -0700


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
erik@pacific-shores.com