Olá, Estou usando Pylons, Sqlalchimy e PostgreSQL, e estou tendo problemas para salvar um campo com valor nulo em uma tabela postgres, onde o campo foi definido pelo tipo real e permitindo valor nulo. Ao tentar salvar tem um erro dizendo que o valor para o campo não pode ser nulo. Então eu não sei exatamente como deve ser o mapeamento do campo REAL PostgreSQL em Pylons Sqlalchimy. alguém já teve que mapear campo REAL no PostGreSQL que possa passar um exemplo. Muito Obrigado. Aqui está o que eu estou usando para o mapeamento e para validação do formulário. #mapping ---------------------------------------------------------------------- import sqlalchemy as sa from simam.model import meta from sqlalchemy import schema, types, ForeignKey tb_teste = sa.Table('tb_teste', meta.metadata, sa.Column('id', sa.Integer,primary_key=True,nullable = False), sa.Column('ds_logico', sa.String(60), nullable = False), sa.Column('nr_altitude', sa.Integer, nullable = True), sa.Column('nr_altura', sa.Float, nullable = True), *#here is the problem because the field in the table is REAL* sa.Column('nr_profundidade', sa.Float, nullable = True), *#here is the problem because the field in the table is REAL* ** sa.Column('dt_inicio_leitura', sa.Date, nullable = False), ) #validation of the form---------------------------------------------------------------------- import formencode class FormCadastroConfigSensor(formencode.Schema): allow_extra_fields = True filter_extra_fields = True ds_logico = formencode.validators.PlainText(not_empty=True) nr_altitude = formencode.validators.Number() nr_altura = formencode.validators.Number(not_empty=False) *#here is the problem because the field in the table is REAL* ** nr_profundidade = formencode.validators.Number(not_empty=False) * #here is the problem because the field in the table is REAL* dt_inicio_leitura = formencode.validators.DateConverter(not_empty=True,month_style='dd/mm/yyyy') ----------------------------------------------------------------------------