16 Jul
2000
16 Jul
'00
8:32 p.m.
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
9396
Age (days ago)
9396
Last active (days ago)
0 comments
1 participants
participants (1)
-
Erik Myllymaki