Hi, I have this table definition:

db.define_table('timetable',
            Field('customer', db.customer, label='Cliente'),
            Field('name', length=160, label='Nombre'), 
            Field('start', 'time', label='Inicio' ),
            Field('finish', 'time', label='Final' ),
            signature
            )
db.timetable.start.represent = lambda value, row: value.strftime("%H:%M")


and the represent function works only when the field is on view mode, but 
when I edit it on the html input
the data have this format: 12:00:00 and I don't want see the seconds..

What is happens? I missed something? 
I'm working with mysql..

Greetings.
Christian.

-- 

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