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],
        while 1:
                rec = cur.fetchmany(10)
                if not rec: break
                print rec

Any help greatly appreciated.

Erik Myllymaki

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to