[web2py] computed field or is_in_db(query...

2011-12-19 Thread Nik Go
commas at the beginning of a line is not a common practice, but not necessarily a bad one. I use it myself, having been bitten by too many missing commas too often. ;) On Tuesday, December 20, 2011, Richard Vézina wrote: > I have difficulty to understand your models because they are not in > eng

Re: [web2py] computed field or is_in_db(query...

2011-12-19 Thread Richard Vézina
I have difficulty to understand your models because they are not in english (sorry about that)... I will try to help anyway... By the way you should put "," at the end of your lines like this : Field('CD_CIDADAO',type='**string',notnull=True,label='**Matrícula')*,* instead of : *,*Field('CD_CID

[web2py] computed field or is_in_db(query...

2011-12-19 Thread Jose Carlos Junior
Please...I have some dificult in do this in web2py...as follow db.define_table("cidadao" ,Field('CD_CIDADAO',type='id', label='Cidadão(PK)') ,Field('CD_MATRICULA',type='integer',notnull=True,label='Matrícula') ,Field('NM_CIDADAO',type='string',notnull=True,label='Nome') ,format =