when i tried to using prettydate it return [invalid date]

e.g.
*from gluon.tools import prettydate*
def __onvalidation_check_out(form):
    if form.vars.check_in:
        rows = db(db.check_in.id==form.vars.check_in).select()
        for row in rows:
            form.vars.room = row.room
            form.vars.guest = row.guest
            delta = request.now - row.created_on
*            form.vars.duration = prettydate(delta,T)*
            form.vars.price = row.room.category.price
            form.vars.total_price = delta.days * row.room.category.price
    else:
        form.errors.check_in = 'enter a value'

any idea how to use prettydate output in sqlform.grid?
thank you very much

-- 

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


Reply via email to