Eni Mustafaraj wrote:
> File "C:\PROGRA~2\Python23\Lib\site-packages\sqlobject\main.py", line=20
> 338, in get
> id =3D cls._idType(id)
> ValueError: invalid literal for int(): 0-9787-IDI
> -------------------
>=20
> I see what the error means, but why it worked before? I was hoping with=
=20
> 0.6 for something =E0 la:
>=20
> Unit.get('0-9787-IDI')
>=20
> but that is probably wishing to much for the moment, isnt'it?
> Should I probably stay with 0.5, or can I somehow change the code in=20
> order to work?
Oh, that was a (somewhat temporary) new feature. Add:
_idType =3D str
to your class definition. Before SQLObject was lax about this, but it=20
caused some problems when you mixed integers and strings.
--=20
Ian Bicking / ia...@co... / http://blog.ianbicking.org
|