[SQL-CVS] SQLObject/SQLObject Converters.py,1.11,1.12
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <bbo...@us...> - 2004-01-21 22:21:35
|
Update of /cvsroot/sqlobject/SQLObject/SQLObject
In directory sc8-pr-cvs1:/tmp/cvs-serv32608/SQLObject
Modified Files:
Converters.py
Log Message:
Fixed so that class BOOL is a new-style class (inherits from object), so that
the call to registerConverter actually means something (without inheriting from
object, the type is just <type 'instance'>, which is useless when registering a
converter for that type.)
There hadn't been any tests for this. :/
Index: Converters.py
===================================================================
RCS file: /cvsroot/sqlobject/SQLObject/SQLObject/Converters.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Converters.py 14 Jan 2004 14:34:28 -0000 1.11
--- Converters.py 21 Jan 2004 22:21:32 -0000 1.12
***************
*** 24,28 ****
if type(1==1) == type(1):
! class BOOL:
def __init__(self, value):
self.value = not not value
--- 24,28 ----
if type(1==1) == type(1):
! class BOOL(object):
def __init__(self, value):
self.value = not not value
|