[web2py:30413] Re: crud field's labels

2009-09-08 Thread duvo
> for field in db.table.fields: db.table[field].label=field Yes but the information of which labels where explicity set in the model (different from the field name) is lost. This code will set all the labels as the field name. Well, I'll do it somehow, not a problem. I just don't like that an eas

[web2py:30311] crud field's labels

2009-09-07 Thread duvo
Hi to everybody! I want to accomplish this simple task: I need the labels in crud.select or crud.create to be the same as the fields' names (not capitalzed, not preceded by ".tablename") except when a label is given in the model. To get this, I have to set all the labels in the model with the name

[web2py:25342] Re: If...else ...if versus if...elif...else

2009-06-30 Thread duvo
Maybe you should write: if (not club or not address or not nfas) instead of: if not (club or address or nfas) >>> not(0 or 1) False >>> (not 0 or not 1) True --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py