Seems to work for me.

db.define_table('customers',
    Field('name', 'string',length=50, requires=IS_NOT_EMPTY()),
   ...
    Field('country','string',length=3),
    Field('active','boolean'),format='%(name)s', singular='customer', 
plural='customers')
db.customers.id.label=T('TEST ID')

On web2py 2.3.2

On Saturday, February 9, 2013 3:42:50 AM UTC-7, François Delpierre wrote:
>
> Hi,
>
> Let's see the definition:
>
> db.define_table('t_bsc',
>     Field('id', type='integer', label=T('Service Code')),
>     Field('f_name', type='string',
>           label=T('Service name'),
>           comment=T('The name of the customer facing service as known to 
> your customer.')),
>
> But in my smartgrid, I still see the label Id instead of 'Service Code' 
> for the id field...
> Is this a bug?
>

-- 

--- 
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