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
of the field, or to pass such a redundant dict to the crud.select-
crud.create.
I cannot even make a function to automatically create such a dict from
the tables in the model, because the Field object put the capitalized
value in label at __init__.

I would suggest:
1) Not to set the missing labels in Field.__init__
2) Make possible in crud.create, crud.select, SQLFORM to pass as
labels-headers parameter also a custom function that gets the labels
from each field's name.

Or, maybe, I'm missing something. Thanks!

PS the "headers" parameter in crud and the "labels" in SQLFORM are the
same thing?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to