[web2py] Re: dict.__getitem__(self, key) KeyError: 'nombre'

2011-06-25 Thread Juan Antonio
=False), Field('observaciones', widget=SQLFORM.widgets.text.widget), format='%(nombre)s')) So that's it. Juan A. On 24 jun, 17:44, Juan Antonio juanr...@gmail.com wrote: Hello, Together with others tables I have this in my db.py file: ... db.define_table('fab_lote',    Field

[web2py] dict.__getitem__(self, key) KeyError: 'nombre'

2011-06-24 Thread Juan Antonio
Hello, Together with others tables I have this in my db.py file: ... db.define_table('fab_lote', Field('fabricacion', db.fabricacion), Field('lote', db.lote), Field('cantidad_orden', 'double'), Field('cantidad_gastado', 'double'), Field('coste_unitario', 'double'))

[web2py] Re: SQLFORM and read-only references

2011-02-09 Thread Juan Antonio
Yes, the nightly built works fine. Thanks. On 7 feb, 15:44, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Should be fixed in trunk already. Try the nightly built. On Feb 7, 4:46 am, Juan Antonio juanr...@gmail.com wrote: I have db.define_table('article', Field('name'),,format

[web2py] Re: SQLFORM and read-only references

2011-02-07 Thread Juan Antonio
I have db.define_table('article', Field('name'),,format='%(name)s') db.define_table('lote', Field('name'),, Field('article', db.article) db.lote.article.requires = IS_IN_DB(db, db.article.id, '%(name)s') And SQLFORM(db.lote,..,readonly=True) shows 'None' in field articulo I think it is