[SQLObject] Re: small problem in SQLObject.__repr__
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
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? > |