[web2py] Re: web3py -> py4web

2019-09-01 Thread Klaus Zinser
Thats was working on the Desktop: workflow 4) from source and install git clone https://github.com/web2py/py4web.git cd py4web make install cd .. mkdir work cd work py4web-start apps For me thats fine and I don't want the risk to destroy. I need to make sure to keep the code actual. Nothing h

[web2py] Encoding datetime and uft chars with json

2019-09-01 Thread Attique Tecnologia
Hello my friends. I have a problem with json, charset, and python date and time encoding. My goal is to use web2py rows (db().select()) to simplify my work, but I not find the best way made. See. import json # Not suport python datetime. from gluon.contrib.simplejson import JSONEncoder #Not supor

[web2py] Re: web3py -> py4web

2019-09-01 Thread Massimo Di Pierro
I think this error AttributeError: type object 'DAL' has no attribute 'Field' means you have some very very old version of pydal. Is that possible? On Sunday, 1 September 2019 02:14:38 UTC-7, Klaus Zinser wrote: > > Thats was working on the Desktop: > > workflow 4) from source and install > >

[web2py] Re: Reequiring login for a static file

2019-09-01 Thread Massimo Di Pierro
By definition static files have no authorization because we recommend they being served directly by the web server bypassing web2py entirely. You can put then in a myfiles subfolder of the app and create your own action: @auth.requires_login() def static(): import contenttype filename