RE: [Sqlrelay-discussion] error loading libraries
Brought to you by:
mused
|
From: Pedro B. <pba...@in...> - 2006-04-11 09:51:57
|
The function is :
def fetchmany(self, size=3DNone):
if not size:
size=3Dself.arraysize
num_rows=3DCSQLRelay.rowCount(self.cursor)
if size>=3Dnum_rows:
size=3Dnum_rows-1
rc=3D self.__getRowRange(self.cur_row, size) #line 166
self.cur_row=3Dsize
return rc
when I compile I get:
Listing SQLRelay/ ...
Compiling SQLRelay/PySQLRDB.py ...
Pedro Barbosa
-----Original Message-----
From: sql...@li...
[mailto:sql...@li...] On Behalf Of =
Davide
Corio
Sent: ter=E7a-feira, 11 de Abril de 2006 10:42
To: sql...@li...
Subject: RE: [Sqlrelay-discussion] error loading libraries
Il giorno mar, 11/04/2006 alle 10.36 +0100, Pedro Barbosa ha scritto:
> Davide i change every line in that file that had __getRow and
__getRowRange
> to self.__getRow and self.__getRowRange and recompile just like you =
said.
> I then reboot my zope instance and my sqlrelay conection but the =
errors
> remain :( It still states :
>=20
> Module Products.ZSQLRelayDA.SQLRelay.PySQLRDB, line 166, in fetchmany
> NameError: global name '_SQLRCursor__getRowRange' is not defined
>=20
>=20
> Is there anything else I have to do?
umh...er... :)
try to post here line 166, or better...the entire function
...and also the output of compileall.py
maybe something went wrong
--=20
Davide Corio dav...@re...
Redomino S.r.l. C.so Monte Grappa 90/b - 10145 Torino - Italy
Tel: +39 011 19502871 - Fax: +39 011 19791122 - http://www.redomino.com/
|