Wait .... "seconds()" is a method of a datetime field....
when you call the "sum", the method is called, but if you are going to 
fetch it directly, you must use:

rows = db(db.t_periods.id==40).select(db.t_periods.f_period_end)
for row in rows:
    print row.f_period_end.seconds()

Reply via email to