hello guys, i would like to know how to solve this exception: <type 
'exceptions.KeyError'> '_id' it appears when i want to insert a new 
register in the table 'bobinas', that table was defined this way:
db.define_table ('bobinas',
                   Field('serial','string',notnull=True),
                  
 Field('peso_kg','integer',notnull=True,requires=IS_INT_IN_RANGE(0,15000)),
                   Field('espesor_mm','double',notnull=True),
                  
 Field('ancho_mm','integer',notnull=True,requires=IS_INT_IN_RANGE(0,4000)),
                  
 Field('fecha','date',default=now,writable=False,readable=False),
                   primarykey=['serial'])
I'm not using the predefined autoincremental integer field called 'id' as 
you can see, but when i started to develop this app that table worked just 
fine. Now i don't know what did happened. Thx in advance 

Reply via email to