[web2py] Re: [web2py:38396] Re: represent

2010-01-08 Thread Alexandre Andrade
to a specific field to show on table, it works to me with: Field('codigo', requires = IS_IN_DB(db, 'natureza_despesa.id', '%(codigo)s - %(especificacao)s'), represent= lambda codigo: db.natureza_despesa[codigo].codigo + ' - ' + db.natureza_despesa[codigo].espe

[web2py:38396] Re: represent

2010-01-05 Thread pihentagy
Hi! I also have a similar problem: Doing the blog crash course: db.define_table('post', Field('title',length=256), Field('body','text',requires=IS_NOT_EMPTY()), Field('author',db.auth_user)) db.post.widget = lambda id: 'e' db.post.title.represent = lambda title: B(title) db.define_tab