> 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
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
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
3 matches
Mail list logo