Re: [web2py] Re: ERROR on Request

2020-02-21 Thread Lovedie JC
Thanks. I switched to it. Regards On Fri, Feb 21, 2020, 06:58 Massimo Di Pierro wrote: > in py4web request is the bottlepy request. > https://bottlepy.org/docs/dev/api.html#the-request-object > There is no now. > > You can use datetime.timetime.now() > > On Tuesday, 18 February 2020 08:34:51 UTC

[web2py] Re: ERROR on Request

2020-02-20 Thread Massimo Di Pierro
in py4web request is the bottlepy request. https://bottlepy.org/docs/dev/api.html#the-request-object There is no now. You can use datetime.timetime.now() On Tuesday, 18 February 2020 08:34:51 UTC-8, Maurice Waka wrote: > > BUT > Now I get this: > > Field('modified_on', 'datetime', default=reque

[web2py] Re: ERROR on Request

2020-02-18 Thread Maurice Waka
BUT Now I get this: Field('modified_on', 'datetime', default=request.now, update=request.now), File "/usr/local/lib/python3.6/dist-packages/bottle.py", line 1400, in __getattr__ raise AttributeError('Attribute %r not defined.' % name) AttributeError: Attribute 'now' not defined. On Tuesd

[web2py] Re: ERROR on Request

2020-02-18 Thread Maurice Waka
Thanks @Lovdie got from py4web import request, On Tuesday, February 18, 2020 at 6:58:10 PM UTC+3, Maurice Waka wrote: > > In py4web, I cant use this syntax: > default = request.now > > > Error: > > Field('modified_on', 'datetime', default=request.now),# > update=request.now), > NameEr