why not define it on models like :
db.branch.address.label=T('Address')
hope this can help...

On Friday, March 8, 2013 4:17:32 PM UTC+7, Geo wrote:
>
> Greetings, 
> I have some issues with SQLTABLE when I want to use the headers argument.
>
> If I call
> SQLTABLE(data, _class='table table-bordered small', headers = 
> 'fieldname:capitalize', columns = columns)
> I get a table with the capitalized field names
>
> If I call
> SQLTABLE(data, _class='table table-bordered small', headers = 
> 'labels',columns 
> = columns)
> I get an error because one of the fields is virtual and it has no label, 
> but when I try to set the label during the field definition I get an 
> "unexpected argument" on the label.
>
> The only way to have all the headers as I want is to pass a dictionary 
> that maps 'tablename.fieldname' : 'header I want' for each field
>
> Is ths the expected behaviour?
> What about the virtual fields, is there a way to add a label to them?
>
> Thanks in advance.
>
> Geo
>
> p.s. using web2py 2.3.2 (2012-12-17 15:03:30) stable source on windows

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to