hi, i got a new copy of the lasted stable web2py from web2py.com, put in this simple model:
tbl = db.define_table( "productos", Field('nombre', 'string', length=100, label='Nombre'), Field('codigo', 'string', length=30, label='Código'), Field('fecha_caducidad', 'date', label='Fecha caducidad'), Field('precio_compra', 'double', label='Precio compra'), Field('precio_venta', 'double', label='Precio venta'), ) tbl.nombre.requires = [IS_NOT_EMPTY()] tbl.codigo.requires = [IS_NOT_EMPTY(), IS_LENGTH(11)] tbl.fecha_caducidad.requires = IS_DATE() tbl.precio_venta.requires.append(IS_NOT_EMPTY()) tbl.precio_compra.requires.append(IS_NOT_EMPTY()) And when testing the 'date' field in the page, with the default widget, ignored the years putting instead the day name and 1900 as the year. ¿is there something a'm missing? with 2.14.6 that dont happen. I have tried with the format parameter in the validator with the same results. -- Msc. Yoel Benítez Fonseca Dpto. Informática. Redacción Adelante http://www.adelante.cu/ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.