[web2py] Re: Web3py

2019-06-08 Thread 黄祥
> > *steps* > apt install -y git python3-pip > pip3 install git+https://github.com/web2py/web3py --upgrade > git clone https://github.com/web2py/web3py > python3 -c "from pydal.validators import CRYPT; > open('password.txt','w').write(str(CRYPT()('a' )[0] ) )" > web3py-start -p ./password.txt -a

[web2py] Re: Web3py

2019-06-08 Thread Massimo Di Pierro
thanks for this test. very useful. fixed. On Saturday, 8 June 2019 01:06:07 UTC-7, 黄祥 wrote: > > *steps* >> apt install -y git python3-pip >> pip3 install git+https://github.com/web2py/web3py --upgrade >> git clone https://github.com/web2py/web3py >> python3 -c "from pydal.validators import CRYPT;

[web2py] Editable Dropdown List in Web2py

2019-06-08 Thread 'LeChef' via web2py-users
I am new in Web2py. I have the current requiment I need to create a Dropdownlist where in the user can select a value from the dropdownlist or type the value in. The Dropdownlist values are storedin a database table. Examplee: my Form looks like this one: "Where do you come from?": Drop

[web2py] Generating graph with chartjs

2019-06-08 Thread Paul Arsenio Blanco Reyes
Recently I found the theme "AdminLTE" (https://adminlte.io/themes/AdminLTE/index.html) I have already implemented it in my application. I would like to generate some graphics like those that appear in the preview but I don't know how yo do it. Would any of you can help me with any example to und

[web2py] Re: Generating graph with chartjs

2019-06-08 Thread Massimo Di Pierro
Look into dashboard.js. It contains code like: var line = new Morris.Line({ element : 'line-chart', resize : true, data : [ { y: '2011 Q1', item1: 2666 }, { y: '2011 Q2', item1: 2778 }, { y: '2011 Q3', item1: 4912 }, { y: '2011 Q

[web2py] Re: Web3py

2019-06-08 Thread 黄祥
> > try a db.commit() after your define_table(s). > already tried, same result (tested on different os), reported on previous message in this thread best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

[web2py] Re: Web3py

2019-06-08 Thread 黄祥
tested latest commit 151 on docker ubuntu *problem* dont have web3py/apps/__init__.py *solution* touch web3py/apps/__init__.py *steps* apt install -y git python3-pip pip3 install git+https://github.com/web2py/web3py --upgrade git clone https://github.com/web2py/web3py python3 -c "from pydal.vali

[web2py] Re: Web3py

2019-06-08 Thread 黄祥
test pip3 install web3py on ubuntu docker container, known work must install cython3 to ensure gevent source can be build by gcc, and the procedure must clone repo first then run python3 setup.py install, then you can successful pip3 install web3py (inefficient i think), detail steps on test 5

[web2py] A schedule automatic delete from Database

2019-06-08 Thread mostwanted
Is there a way to schedule an automatic deleting of content from database on a specified date? I have an application that I want to delete posts when we reach specified dates. If anyone is familiar with this, your assistance would be greatly appreciated. Regards Mostwanted -- Resources: - h