From: Cyril E. <cy...@de...> - 2004-07-01 08:20:21
Hi All,
I'm discovering SQLObject (SVN version). I'm using it with an existing
database under Postgres. In this database all IDs are in hexadecimal so
represented as strings. So far so good, but the SQLObject.__repr__
method accept integer IDs only. Every other routine in this class accept
string IDs.
Is it possible to make the correction? I can do that on my own machine
of course but what about the SVN version?
Thanks,
Cyril Elkaim
Why not just convert the IDs to integers if they are just string
representations of integers?
>>>>> "Cyril" == Cyril Elkaim <cy...@de...> writes:
Cyril>
Cyril> Hi All, I'm discovering SQLObject (SVN version). I'm
Cyril> using it with an existing database under Postgres. In
Cyril> this database all IDs are in hexadecimal so represented
Cyril> as strings. So far so good, but the SQLObject.__repr__
Cyril> method accept integer IDs only. Every other routine in
Cyril> this class accept string IDs.
Cyril>
Cyril> Is it possible to make the correction? I can do that on
Cyril> my own machine of course but what about the SVN
Cyril> version?
--
Karl 2004-07-01 01:34
From: Cyril E. <cy...@de...> - 2004-07-02 12:55:04
Because they are 128 bits hexadecimal GUIDs prefixed by strings. This is
a requirement of the application. Anyway I've made the correction in the
__repr__ routine.
Cyril Elkaim
Karl Chen wrote:
> Why not just convert the IDs to integers if they are just string
> representations of integers?
>
>
>>>>>>"Cyril" == Cyril Elkaim <cy...@de...> writes:
>
> Cyril>
> Cyril> Hi All, I'm discovering SQLObject (SVN version). I'm
> Cyril> using it with an existing database under Postgres. In
> Cyril> this database all IDs are in hexadecimal so represented
> Cyril> as strings. So far so good, but the SQLObject.__repr__
> Cyril> method accept integer IDs only. Every other routine in
> Cyril> this class accept string IDs.
> Cyril>
> Cyril> Is it possible to make the correction? I can do that on
> Cyril> my own machine of course but what about the SVN
> Cyril> version?
>