Try putting it in db.py directly in your Field declaration. Here is an
example:
db.define_table('mytable',Field('myfield','string',label='My
Field'),Field('file','upload',label='My File'))
IMO, the 2nd edition manual is the best source of info (besides the
source code). You can view it here:
http://web2py.com/examples/default/docs
On Sep 9, 11:30 pm, Chris S <[email protected]> wrote:
> Following one of the example slides (http://www.scribd.com/doc/
> 16085263/web2py-slides-version-1644)
>
> On slide 40 it refers to the ability to customize the labels of the
> database fields with the command: db.image.posted_by.label = "Posted
> by"
>
> I've tried editing this as well as the db.image.file.label to add
> custom labels. I just can't get it to work. I've put both lines:
> -In the default.py at the bottom of the file
> -In the default.py in the list_images() definition
> -In the db.py at the bottom of the file
>
> The other examples thus far are working, but this one I'm missing
> something. Can someone show me what I'm doing wrong with this
> option?
>
> Bonus question, is there somewhere I can look this up on my own? I
> looked through the docs listed while editing default.py
> (http://www.web2py.com/examples/static/epydoc/index.html) but if it's in there
> I'm unable to find it. I'd love to know how/where I could look this
> type of funcitonality up on my own.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---