[web2py] Re: Error in the trunk

2010-02-15 Thread mdipierro
now to use this you can do: from gluon.tools import prettydate {{=prettydate(request.now,T)}} The T used to internationalize. T is optional. On Feb 15, 7:30 pm, mdipierro wrote: > oops. fixed. > > On Feb 15, 7:20 pm, Jose wrote: > > > Massimo, > > > After updating the following error occurs:

[web2py] Re: Error in the trunk

2010-02-15 Thread Jose
On 16 feb, 01:20, Jose wrote: > Massimo, > > After updating the following error occurs: > > File "/usr/home/jose/w2p/gluon/tools.py", line 2970 >     elif dt.days > 21: >        ^ > SyntaxError: invalid syntax > > Jose Missing parenthesis in T('%d months ago' % int(dt.days / 30) elif dt.da

[web2py] Re: Error in the trunk

2010-02-15 Thread mdipierro
oops. fixed. On Feb 15, 7:20 pm, Jose wrote: > Massimo, > > After updating the following error occurs: > > File "/usr/home/jose/w2p/gluon/tools.py", line 2970 >     elif dt.days > 21: >        ^ > SyntaxError: invalid syntax > > Jose -- You received this message because you are subscribed to th