[go: up one dir, main page]

Menu

[599fc9]: / sqlutil / __init__.py  Maximize  Restore  History

Download this file

26 lines (20 with data), 737 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name = 'sqlutil'
version = (0,8)
nameversion = '%s - versione %s' % (name.upper(),
'.'.join( [ str(i) for i in version ] ) )
import locale
locale.setlocale( locale.LC_ALL, '' )
import formlocale
from twisted.python import components
from formal import iformal, types
components.ALLOW_DUPLICATES = 1
components.registerAdapter( formlocale.LocFloatToStringConverter,
types.Float, iformal.IStringConvertible )
#registerAdapter( formlocale.LocDecimalToStringConverter, types.Decimal, iformal.IStringConvertible )
try: types.Decimal
except NameError: pass
else:
components.registerAdapter( formlocale.LocDecimalToStringConverter,
types.Decimal, iformal.IStringConvertible )
components.ALLOW_DUPLICATES = 0
del components