I just look again at the model of François and I think there is a mistake, because id field should not be of type integer when you explicitly define them in your model
type='id' is the proper type, so maybe he has 2 differents columns named id or his model doesn't really works. Ref.: http://web2py.com/books/default/chapter/29/06#DAL,-Table,-Field Richard On Mon, Feb 11, 2013 at 1:55 PM, Derek <sp1d...@gmail.com> wrote: > 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 web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.