From: Carlos R. <car...@gm...> - 2004-12-06 15:59:31
|
Hello all, I just downloaded & installed the decimal module (the same from Python 2.4) for Python 2.3. I know that SQLObject has a DecimalCol type. I've tried to check the code that actually fetches decimal values from the DB, but I got a little bit lost on SQLObject internals at this point. I trie to grep for Decimal and found only a few references, so I assume it's not full implemented yet. What I want to do is to make sure that the get & set methods for the decimal columns returns the appropriate Decimal type, if it's installed on the system, instead of a float. I assume that this is to be done somewhere with the fromPython/toPython validators, but I'm still trying to figure out where to put my code into. Any help (and experiences with Decimal) will be great. -- Carlos Ribeiro Consultoria em Projetos blog: http://rascunhosrotos.blogspot.com blog: http://pythonnotes.blogspot.com mail: car...@gm... mail: car...@ya... |