Package gavo :: Package web :: Module wsdl :: Class ToTcConverter
[frames] | no frames]

Class ToTcConverter

source code

                            object --+    
                                     |    
utils.typeconversions.FromSQLConverter --+
                                         |
                                        ToTcConverter

is a quick and partial converter from SQL types to ZSI's type codes.

Instance Methods
 
mapComplex(self, type, length) source code

Inherited from utils.typeconversions.FromSQLConverter: convert

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  typeSystem = 'ZSITypeCodes'
  simpleMap = {"smallint": TC.Integer, "integer": TC.Integer, "i...
Properties

Inherited from object: __class__

Method Details

mapComplex(self, type, length)

source code 
Overrides: utils.typeconversions.FromSQLConverter.mapComplex

Class Variable Details

simpleMap

Value:
{"smallint": TC.Integer, "integer": TC.Integer, "int": TC.Integer, "bi\
gint": TC.Integer, "real": TC.FPfloat, "float": TC.FPfloat, "boolean":\
("boolean", "1"), "double precision": TC.FPdouble, "double": TC.FPdoub\
le, "text": TC.String, "char": TC.String, "date": TC.gDate, "timestamp\
": TC.gDateTime, "time": TC.gTime, "raw": TC.String,}