[web2py] Re: web3py

2016-01-13 Thread Massimo DiPierro
It is another experiment. It is a rewrite of some of the web2py modules and supports 90% of the current web2py syntax at 2.5x the speed. It works. It it cleaner and should be easier to port to python 3 than current web2py. We are debating on web2py developers what to do: 1) backport some of the n

[web2py] Re: web3py

2016-01-14 Thread Ron Chatterjee
Can there be some sought of converter that that takes a .w2p file and spits out .w3p file? I bet its lot of work and testing requires. I am sure it cant b 100% accurate prolly. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: web3py

2016-01-14 Thread Pbop
Sounds like you have a good approach with option 2. That is my vote! You can't get around that once a decision is made the community will react with some degrees of enthusiasm and pushback. I am curious if the increase in performance is based on a more efficient algorithm, Python3 is doing thi

[web2py] Re: web3py

2016-01-15 Thread Rod Watkins
Hello everyone, I've been writing web apps with web2py for about 4-5 years and I've watched the dev forum attentively, but have never spoken up before. But on the future of web2py, I have formed a few opinions. I agree that options 2 is best. I especially like the idea of writing a set of gui

[web2py] Re: web3py

2016-01-15 Thread Matheus Cardoso
I vote option 2, but with up votes to previous points about web2py does not need to stick with 100% backward compatibility and maintain "bad code". As Carlos Cesar pointed out, 90% of compatibility is a good level and with a good migration guide it would not be a harsh. Python 3 already showed i

[web2py] Re: web3py

2016-01-18 Thread Mirek Zvolský
So Python 2.x code is here published with Web3py name. That is not criticism, I just describe the situation. Maybe we would need other name for real Python 3.x version. Something like Web23py (called "Twenty three framework") :) I think the Python 3.x version would be really useful in this time or

[web2py] Re: web3py

2016-01-18 Thread Anthony
> > 2. > good separated (different?) templating characters {{ }} for the server > side and for modern javascript frameworks like vue.js where same is used > Note, you can already set custom delimiters by specifying response.delimiters. Anthony -- Resources: - http://web2py.com - http://web2p

[web2py] Re: web3py

2016-01-20 Thread Paolo Amboni
All option are good, the important is to have python 3 compatibility!! Il giorno giovedì 14 gennaio 2016 06:35:36 UTC+1, Massimo Di Pierro ha scritto: > > It is another experiment. > > It is a rewrite of some of the web2py modules and supports 90% of the > current web2py syntax at 2.5x the speed

[web2py] Re: web3py

2016-01-21 Thread Alex
exactly :) maybe the point about auto imports brought up by Mirek is worth discussing. Personally I prefer the way it is and not having to write import request etc. in every controller. On the other hand it is bad for IDE support because you have to write something ugly (unless your IDE has buil

[web2py] Re: web3py?

2016-02-10 Thread Ron Chatterjee
This may be a off topic, and I am not a pytho expert by any means, that said...wondering for web3py, are we still going to have the utf-8 and object format? I asked because somewhere I read python 3 support both string and utf-8. Data structure can be much more readable and easy to get into wit

[web2py] Re: Web3py

2019-04-11 Thread Massimo Di Pierro
There is a lot to do but at this point it is moving fast and a one way street. On Thursday, 11 April 2019 10:31:29 UTC-7, En Ware wrote: > > I git installed web3py and quite enjoy it. I see its updated regular too. > > For those who don't know and maybe this is common sense , not sure. > > once

[web2py] Re: Web3py

2019-04-12 Thread En Ware
I'm trying to wrap my ahead around how web3py works by looking at the source I see __init__.py is the main code for the actually todo app. Is this going to be the case for all applications ? or is this just for a sample ? On Thursday, April 11, 2019 at 11:03:29 PM UTC-5, Massimo Di Pierro

[web2py] Re: Web3py

2019-04-12 Thread Massimo Di Pierro
In web3py an application is a folder, for example "myapp". It must have: applications/ myapp/ __init__.py templates/ static/ databases/ otherwise the structure is free. You are free to create models/ and controllers/ and organize code like in the old web2py but the entry point

[web2py] Re: Web3py

2019-04-12 Thread En Ware
Not getting examples to work is /examples/form or examples ? On Friday, April 12, 2019 at 10:29:21 AM UTC-5, Massimo Di Pierro wrote: > > In web3py an application is a folder, for example "myapp". It must have: > > applications/ > myapp/ > __init__.py > templates/ > static/ > da

[web2py] Re: Web3py

2019-04-13 Thread 黄祥
perhaps can learn the concept from popphp, seems make it modular e.g. pop-form pop-auth etc ... ref: https://www.popphp.org/documentation just an idea : web2py decomposed into small module with css or frontend agnostic that work only in python3 = web3py best regards, stifan -- Resources: - ht

[web2py] Re: Web3py

2019-04-13 Thread 黄祥
*test the latest commit* $ python web3py.py applications/ Traceback (most recent call last): File "web3py.py", line 438, in import_apps module = importlib.import_module(app_name) File "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/importlib/__init__.py", line 127, in import_mo

[web2py] Re: Web3py

2019-04-13 Thread Massimo Di Pierro
You say "web2py decomposed into small module with css or frontend agnostic that work only in python3 = web3py" yes. that is the idea. The example apps that come with it are not going to be frontend agnostic. On Saturday, 13 April 2019 02:39:27 UTC-7, 黄祥 wrote: > > perhaps can learn the concept

[web2py] Re: Web3py

2019-04-13 Thread Massimo Di Pierro
You have an old version of pydal. The new pydal may not be on pypi, may need to get it from gitbub. I will post it on pypi over the week-end On Saturday, 13 April 2019 02:58:46 UTC-7, 黄祥 wrote: > > *test the latest commit* > $ python web3py.py applications/ > Traceback (most recent call last): >

[web2py] Re: Web3py

2019-04-13 Thread 黄祥
perhaps it related with pydal is not released yet on pypi, btw, this is the step i took to reproduce the traceback above rm -rf ~/learn/python/web3py cd ~/learn/python git clone https://github.com/web2py/web3py source activate python3_test cd ~/learn/python/web3py *pip install **-r requirements.**

[web2py] Re: Web3py

2019-04-14 Thread 黄祥
*test latest commit on docker because seen the Makefile in there* docker pull ubuntu docker run -it --privileged ubuntu /bin/bash apt update apt install -y git python3-pip git clone https://github.com/web2py/web3py cd web3py pip3 install -r requirements.txt # ./web3py-start applications/ Traceback

[web2py] Re: Web3py

2019-04-14 Thread Massimo Di Pierro
I moved it. /todo/index is the only functional app The other examples are not really designed to do do anything interesting yet. On Sunday, 14 April 2019 02:12:46 UTC-7, 黄祥 wrote: > > *test latest commit on docker because seen the Makefile in there* > docker pull ubuntu > docker run -it --privi

[web2py] Re: Web3py

2019-04-14 Thread 黄祥
docker pull ubuntu docker run -it --privileged ubuntu /bin/bash apt update apt install -y git python3-pip make git clone https://github.com/web2py/web3py cd web3py make make install # ./web3py-start applications/ Traceback (most recent call last): File "./web3py-start", line 3, in from web3

[web2py] Re: Web3py

2019-04-14 Thread 黄祥
test work for Makefile and setup.py *web3py/setup.py* install_requires=[ 'bottle', 'gunicorn', 'gevent', 'pydal3', *'pyjwt',* 'yatl', 'reloader', ], best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Web3py

2019-04-14 Thread Massimo Di Pierro
hanks. fixed.t On Sunday, 14 April 2019 17:42:29 UTC-7, 黄祥 wrote: > > test work for Makefile and setup.py > *web3py/setup.py* > install_requires=[ > 'bottle', > 'gunicorn', > 'gevent', > 'pydal3', > *'pyjwt',* > 'yatl', > 'reloader', >

[web2py] Re: Web3py

2019-04-14 Thread 黄祥
*test dockerfile provided on web3py* *1st attempt from github (not worked)* git clone https://github.com/web2py/web3py cd web3py/docker docker build -t test/web3py_git . docker run -d \ -p 8000:8000 \ --name web3py_git \ test/web3py_git $ docker ps -a CONTAINER IDIMAGE COM

[web2py] Re: Web3py

2019-04-15 Thread 黄祥
*web3py/web3py/core.py* def start_server(args): host, port = args.address.split(':') if args.number_workers < 1: bottle.run(host=host, port=int(port)) else: if not gunicorn: logging.error('gunicorn not installed') *elif not gunicorn: # shoul

[web2py] Re: Web3py

2019-04-15 Thread 黄祥
*web3py/applications/myapp/controllers.py* def helloworld(): return dict(name=request.forms.get('name', 'visitor')) change *'visitor'* with whatever string value, require restart web server to update the new value *web3py/applications/myapp/templates/helloworld.html* Hello Dear [[=name]] change *

[web2py] Re: Web3py

2019-04-15 Thread JorgeH
looks promising!! On Thursday, April 11, 2019 at 12:31:29 PM UTC-5, En Ware wrote: > > I git installed web3py and quite enjoy it. I see its updated regular too. > > For those who don't know and maybe this is common sense , not sure. > > once you *git clone https://github.com/web2py/web3py.git >

[web2py] Re: Web3py

2019-04-15 Thread JorgeH
Would it be Async?? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-use

[web2py] Re: Web3py

2019-04-15 Thread En Ware
from pydal._compat import StringIO, integer_types, basestring, unicodeT, urllib_unquote, \ ImportError: cannot import name 'unicodeT' I looked at pydal __compat and unicodeT is there On Monday, April 15, 2019 at 9:58:49 AM UTC-5, En Ware wrote: > > It's looking very good. > > I like the new st

[web2py] Re: Web3py

2019-04-15 Thread En Ware
Is this the newest version for pydal3 ? pydal3 (19.4) - a pure Python Database Abstraction Layer (for python version 2.7 and 3.x) INSTALLED: 19.4 (latest) , Not seeing a change log in the repo. On Thursday, April 11, 2019 at 12:31:29 PM UTC-5, En Ware wrote: > > I git installed web3py and

[web2py] Re: Web3py

2019-04-15 Thread 黄祥
added parameter for logging the app or server would be nice in web3py-start, problem found is when try to analyze the root cause during the test in docker. checked in docker logs, there is no logs, when try the interactively inside web3py folder and /var/log/ there is none of the log tell about

[web2py] Re: Web3py

2019-04-15 Thread Massimo Di Pierro
we had a mismanagement. today pydal3 is the latest. Tomorrow I will kill pydal and deploy the latest as pydal. On Monday, 15 April 2019 08:38:45 UTC-7, En Ware wrote: > > Is this the newest version for pydal3 ? > > pydal3 (19.4) - a pure Python Database Abstraction Layer (for python > version

[web2py] Re: Web3py

2019-04-15 Thread Massimo Di Pierro
sorry. Have not tested docker-compose yet. If you can help fix this would be great. On Sunday, 14 April 2019 22:11:26 UTC-7, 黄祥 wrote: > > *test dockerfile provided on web3py* > *1st attempt from github (not worked)* > git clone https://github.com/web2py/web3py > cd web3py/docker > docker build

[web2py] Re: Web3py

2019-04-15 Thread Massimo Di Pierro
The http://localhost:8000/dashboard needs some love. It is very crude. Click on the spinning thing to reload the app when editing it. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issu

[web2py] Re: Web3py

2019-04-16 Thread 黄祥
nice dashboard, only myapp can work from dashboard link some strange behaviour, when accessing dashboard (without index), it automatic add dashboard/static/index.html, while for another web app is not, must add index manually. sorry forgot to test about docker-compose (not work either, guess the

[web2py] Re: Web3py

2019-04-16 Thread 黄祥
after learn the code *web3py/web3py/core.py* python3 /web3py/web3py-start /web3py/applications/ is automatically run the address 127.0.0.1:8000 so the correct one to make it run on docker should use : python3 /web3py/web3py-start /web3py/applications/ --address 0.0.0.0:8000 think there are two op

[web2py] Re: Web3py

2019-04-16 Thread En Ware
Getting error | / / / / __ |/___ \/ __ \ \/ / | | / / /_ / /_/ /___/ / /_/ /\ / | | /| / / __/ / __ //__ / / / / | |/ |/ / /___/ /_/ /___/ / / / / |___/|_/_/_/_/_/ /_/ It is still experimental... Traceback (most recent call last): File "/Users/aaronm/.

[web2py] Re: Web3py

2019-04-16 Thread 黄祥
On Tuesday, April 16, 2019 at 8:41:50 PM UTC+7, En Ware wrote: > > Getting error > > | / / / / __ |/___ \/ __ \ \/ / > | | / / /_ / /_/ /___/ / /_/ /\ / > | | /| / / __/ / __ //__ / / / / > | |/ |/ / /___/ /_/ /___/ / / / / > |___/|_/_/_/_/_/ /_/ > It is

[web2py] Re: Web3py

2019-04-16 Thread Massimo Di Pierro
You have an old pydal. Do pip3 install --upgrade pydal Also do python3 web3py.py applications Not python3 web3py.py applications/todo/ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] Re: Web3py

2019-04-16 Thread En Ware
Thank you , that did it. On Tuesday, April 16, 2019 at 2:42:40 PM UTC-5, Massimo Di Pierro wrote: > > You have an old pydal. Do > > pip3 install --upgrade pydal > > Also do > > python3 web3py.py applications > > Not > > python3 web3py.py applications/todo/ > > -- Resources: - http://web2py.com -

[web2py] Re: Web3py

2019-04-18 Thread William
Just a note, the brand name Web3py is also used by another application and is the top result if you google for "web3py". -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Rep

[web2py] Re: Web3py

2019-04-18 Thread Kevin Keller
Yeah saw that too. I agree it's worthwhile to go for a different name eventually. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this mess

[web2py] Re: Web3py

2019-04-20 Thread Massimo Di Pierro
web2.py existed before web2py and did not hurt us. web3py existed before web3.py and in fact I own the domain name. It will not hurt us either. I am more concerned by the confusion between web2py for python 3 vs web3py. I am thinking it should have two names "web3py XYZ" where XYZ is t.b.d. On T

[web2py] Re: Web3py

2019-04-20 Thread 黄祥
is it on same situation web2py for python 3 vs web3py with laravel vs lumen ? the first is full stack web framework, while the other is micro web framework best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source c

[web2py] Re: Web3py

2019-04-20 Thread Jacinto Parga
So, if you plan to move your web services developed with web2py python 2.7 to python 3 and deploy new micro services, what would be the best choice to try? - web2py for python 3 - web3py Let's suppose one year term El sábado, 20 de abril de 2019, 22:45:55 (UTC+2), 黄祥 escribió: > > is it on

[web2py] Re: Web3py

2019-04-20 Thread Massimo Di Pierro
If you made use of SQLHTML forms and grid and simply want to move from python2 to python3, than stick with web2py. If you want to use the DAL and maybe web2py templates but your app is (or will be) using mostly API driven then use web3py. web3py already supports tickets (like web2py), pydal, ya

[web2py] Re: Web3py

2019-04-23 Thread Scott Hunter
I followed these directions as best I could: * There is no file named web3py.py. There is a file web3py-start; that seemed to work * No matter what URL I provide, I get a big red screen saying "404 Not Found" On Thursday, April 11, 2019 at 1:31:29 PM UTC-4, En Ware wrote: > > I git installed w

[web2py] Re: Web3py

2019-04-23 Thread 黄祥
yeah you right, pls follow this step instead (for latest commit) git clone https://github.com/web2py/web3py cd web3py pip install -U -r requirements.txt python web3py-start applications/ for url return 404, perhaps you can check on the applications folder, in the webapp name, you could learn from

[web2py] Re: Web3py

2019-04-23 Thread Dave S
On Tuesday, April 23, 2019 at 6:37:00 PM UTC-7, 黄祥 wrote: > > yeah you right, pls follow this step instead (for latest commit) > git clone https://github.com/web2py/web3py > cd web3py > pip install -U -r requirements.txt > python web3py-start applications/ > > You may not need that last "python".

[web2py] Re: Web3py

2019-04-23 Thread Massimo Di Pierro
updated instructions are here: https://github.com/web2py/web3py Notice they may change. Also notice you need python3. Won't work with python 2. On Tuesday, 23 April 2019 16:52:47 UTC-7, Scott Hunter wrote: > > I followed these directions as best I could: > > * There is no file named web3py.py.

[web2py] Re: Web3py

2019-04-26 Thread 黄祥
git clone https://github.com/web2py/web3py cd web3py $ pip3 install -r requirements.txt Collecting pyjwt (from -r requirements.txt (line 1)) Using cached https: //files.pythonhosted.org/packages/87/8b/6a9f14b5f781697e51259d81657e6048fd31a113229cf346880bb7545565/PyJWT-1.7.1-py2.py3-none-any.whl Co

[web2py] Re: Web3py

2019-04-26 Thread 黄祥
$ ./web3py-start applications/ Traceback (most recent call last): File "./web3py-start", line 3, in from web3py.core import main File "/Users/sugizo/learn/python/web3py/web3py/__init__.py", line 1, in from . core import render, DAL, Field, action, request, response, redirect, abort,

[web2py] Re: Web3py

2019-04-26 Thread Massimo Di Pierro
fixed. sorry On Friday, 26 April 2019 00:03:09 UTC-7, 黄祥 wrote: > > git clone https://github.com/web2py/web3py > cd web3py > $ pip3 install -r requirements.txt > Collecting pyjwt (from -r requirements.txt (line 1)) > Using cached https:// > files.pythonhosted.org/packages/87/8b/6a9f14b5f781697e5

[web2py] Re: Web3py

2019-04-26 Thread 黄祥
> > $ ./web3py-start applications/ > Traceback (most recent call last): > File "./web3py-start", line 3, in > from web3py.core import main > File "/Users/sugizo/learn/python/web3py/web3py/__init__.py", line 1, in > > from . core import render, DAL, Field, action, request, response,

[web2py] Re: Web3py

2019-04-28 Thread 黄祥
> > $ ./web3py-start applications/ >> Traceback (most recent call last): >> File "./web3py-start", line 3, in >> from web3py.core import main >> File "/Users/sugizo/learn/python/web3py/web3py/__init__.py", line 1, in >> >> from . core import render, DAL, Field, action, request, resp

[web2py] Re: Web3py

2019-04-28 Thread 黄祥
*_scaffold/controllers.py* @action('index', method='GET')# the function below is exposed as index.html @action.uses('generic.html', session, db, T) # it uses the generic.html template, a session, and the db def index(): T.select('id') session['counter'] = session.get('cou

[web2py] Re: Web3py

2019-04-28 Thread Massimo Di Pierro
I have not tested redis and memcache therefore it is possible there is a bug in the _scaffold/controller.py code. Thanks for checking this. On Sunday, 28 April 2019 07:26:23 UTC-7, 黄祥 wrote: > > *_scaffold/controllers.py* > @action('index', method='GET')# the function below is >

[web2py] Re: Web3py

2019-04-28 Thread 黄祥
still got an error for store session in redis after update the *_scaffold/controllers.py* ... elif settings.SESSION_TYPE == 'redis': import redis host, port = settings.REDIS_SERVER.split(':') conn = redis.Redis(host=host, port=int(port)) *conn**.set = lambda key, value, expire, cs=

[web2py] Re: Web3py

2019-04-28 Thread Massimo Di Pierro
one more try? On Sunday, 28 April 2019 15:41:42 UTC-7, 黄祥 wrote: > > still got an error for store session in redis after update the > *_scaffold/controllers.py* > ... > elif settings.SESSION_TYPE == 'redis': > import redis > host, port = settings.REDIS_SERVER.split(':') > conn = redi

[web2py] Re: Web3py

2019-04-28 Thread 黄祥
still got an error, tested redis last version (source) without password, in conda environment: $ uname Darwin $ python -V Python 3.7.3 $ pip list Package Version redis3.2.1 $ ./web3py-start applications/ ERROR:root:Traceback (most recent call last)

[web2py] Re: Web3py

2019-04-28 Thread 黄祥
fixed for store session in redis without password problem still exist : - store session in redis with password on redis.conf - store session in memcache best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

[web2py] Re: Web3py

2019-04-30 Thread 黄祥
tested web3py/test return an error, detail error and step below: docker pull ubuntu docker run -it --privileged ubuntu /bin/bash apt update apt install -y git python3-pip cd git clone https://github.com/web2py/web3py cd web3py pip3 install -r requirements.txt pip3 install mechanize cd web3py/tests

[web2py] Re: Web3py

2019-05-03 Thread 黄祥
git clone https://github.com/web2py/web3py cd web3py $ pip3 install -r requirements.txt Collecting memcache (from -r requirements.txt (line 9)) Could not find a version that satisfies the requirement memcache (from -r requirements.txt (line 9)) (from versions: ) No matching distribution found fo

[web2py] Re: Web3py

2019-05-03 Thread 黄祥
open http://localhost:8000/_scaffold ERROR:root:Traceback (most recent call last): File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 327, in wrapper [obj.on_success() for obj in fixtures] File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 327, in [obj.on_succe

[web2py] Re: Web3py

2019-05-04 Thread Massimo Di Pierro
Fixed a bunch of issues, improved the examples, and ticketed what needs to be done (not much). I assigned some to me but I could use some help. Massimo On Tuesday, 23 April 2019 22:30:21 UTC-7, Massimo Di Pierro wrote: > > updated instructions are here: > > https://github.com/web2py/web3py > > N

[web2py] Re: Web3py

2019-05-06 Thread jcrmatos
My 2c You could call it web2py3 with this logic web2py was web for Python (at the time it was Python 2.x) web2py3 will the web for Python 3. sábado, 20 de Abril de 2019 às 16:32:10 UTC+1, Massimo Di Pierro escreveu: > > web2.py existed before web2py and did not hurt us. > web3py existed before w

[web2py] Re: Web3py

2019-05-08 Thread Daniel
El lunes, 6 de mayo de 2019, 19:38:47 (UTC-4), jcrm...@gmail.com escribió: > > My 2c > > You could call it web2py3 with this logic > web2py was web for Python (at the time it was Python 2.x) > web2py3 will the web for Python 3. > > > FWIW, I second this. -- Resources: - http://web2py.com - htt

[web2py] Re: Web3py

2019-05-11 Thread 黄祥
$ ./web3py-start applications/ Dashboard is at: http://127.0.0.1:8000/_dashboard Traceback (most recent call last): File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 560, in import_apps module = importlib.machinery.SourceFileLoader(app_name, init). load_module() File "", line 4

[web2py] Re: Web3py

2019-05-12 Thread Scott Hunter
Note: if the folder, translations, that is being complained about is added, the app still can't be reached, but there is no longer an exception reported: just the 404 page. - Scott On Saturday, May 11, 2019 at 9:55:34 PM UTC-4, 黄祥 wrote: > > $ ./web3py-start applications/ > Dashboard is at: htt

[web2py] Re: Web3py

2019-05-13 Thread Massimo Di Pierro
can you please try again with the latest version? On Sunday, 12 May 2019 17:17:40 UTC-7, Scott Hunter wrote: > > Note: if the folder, translations, that is being complained about is > added, the app still can't be reached, but there is no longer an exception > reported: just the 404 page. > > -

[web2py] Re: Web3py

2019-05-13 Thread Massimo Di Pierro
Want to help: 1) need a version of this https://github.com/web2py/web3py/blob/master/applications/_scaffold/static/components/auth.html with bootstrap style for forms 2) like for login and register, need similar methods for the other actions: https://github.com/web2py/web3py/blob/master/applic

[web2py] Re: Web3py

2019-05-13 Thread 黄祥
*last commit need extra step on terminal* echo tornado >> requirements.txt mkdir applications/_dashboard/translations mkdir applications/_scaffold/databases mkdir applications/toys/databases *error traceback* $ ./web3py-start applications/ Traceback (most recent call last): File "/Users/sugizo/l

[web2py] Re: Web3py

2019-05-13 Thread 黄祥
forgot to include the logs after get the web3py started (taken from terminal) WARNING:tornado.access:404 GET /dashboard (127.0.0.1) 6.48ms WARNING:tornado.access:404 GET /favicon.ico (127.0.0.1) 2.52ms WARNING:tornado.access:404 GET /_scaffold/static/favicon.ico (127.0.0.1) 2.60ms WARNING:tornado

[web2py] Re: Web3py

2019-05-13 Thread En Ware
I also have the same errors , I installed tornado also On Monday, May 13, 2019 at 3:05:05 AM UTC-5, 黄祥 wrote: > > forgot to include the logs after get the web3py started (taken from > terminal) > WARNING:tornado.access:404 GET /dashboard (127.0.0.1) 6.48ms > WARNING:tornado.access:404 GET /favic

[web2py] Re: Web3py

2019-05-13 Thread Massimo Di Pierro
That error in the console is intentional. It is an example of what happens when there is a bug in app code. It should not prevent web3py from running. Or does it? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https:/

[web2py] Re: Web3py

2019-05-13 Thread En Ware
It did until I install tornado , but still can't access the dashboard or any of the apps. I am going to do a new git clone and try again. On Monday, May 13, 2019 at 12:29:29 PM UTC-5, Massimo Di Pierro wrote: > > That error in the console is intentional. It is an example of what happens > wh

[web2py] Re: Web3py

2019-05-13 Thread En Ware
./web3py-start applications/ ___ __ __ | / / / / __ |/___ \/ __ \ \/ / | | / / /_ / /_/ /___/ / /_/ /\ / | | /| / / __/ / __ //__ / / / / | |/ |/ / /___/ /_/ /___/ / / / / |___/|_/_/_/_/_/ /_/ It is still experimental... Dash

[web2py] Re: Web3py

2019-05-13 Thread 黄祥
*in latest commits (100) steps will reproduce an error that make web3py won't start (error traceback reported on previous message)* git clone https://github.com/web2py/web3py cd web3py pip3 install -r requirements.txt ./web3py-start applications/ *so need an extra steps to make web3py start in la

[web2py] Re: Web3py

2019-05-13 Thread Massimo Di Pierro
It is _dashboard not dashboard -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups

[web2py] Re: Web3py

2019-05-13 Thread 黄祥
yes, you are right, my bad echo tornado >> requirements.txt or pip3 install tornado required to make web3py started while for directories creation is needed to get access to the webapp mkdir applications/_dashboard/translations mkdir applications/_scaffold/databases mkdir applications/toys/databas

[web2py] Re: Web3py

2019-05-13 Thread Massimo Di Pierro
Added tornado to requirements. My bad On Monday, 13 May 2019 20:03:35 UTC-7, 黄祥 wrote: > > yes, you are right, my bad > echo tornado >> requirements.txt > or > pip3 install tornado > required to make web3py started > > while for directories creation is needed to get access to the webapp > mkdir ap

[web2py] Re: Web3py

2019-05-14 Thread En Ware
still getting same errors pip3 install -r requirements.txt Requirement already satisfied: pydal>=19.5.9 in /Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/lib/python3.6/site-packages (from -r requirements.txt (line 1)) (19.5.9) Requirement already satisfied: pyjwt in /Users/aaronm/.pyenv/ver

[web2py] Re: Web3py

2019-05-14 Thread 黄祥
pls try: *need an extra steps to make web3py start in latest commit (101)* git clone https://github.com/web2py/web3py cd web3py pip3 install -r requirements.txt mkdir applications/_dashboard/translations mkdir applications/_scaffold/databases mkdir applications/toys/databases ./web3py-start applica

[web2py] Re: Web3py

2019-05-14 Thread En Ware
Ok very good, I created the directories and launched again and i can get to the _dashboard instance, thanks On Tuesday, May 14, 2019 at 8:58:44 AM UTC-5, 黄祥 wrote: > > pls try: > *need an extra steps to make web3py start in latest commit (101)* > git clone https://github.com/web2py/web3py > cd we

[web2py] Re: Web3py

2019-05-14 Thread En Ware
The editing is very fast and reloads on the fly. This is pretty impressive. On Tuesday, May 14, 2019 at 9:05:58 AM UTC-5, En Ware wrote: > > Ok very good, I created the directories and launched again and i can get > to the _dashboard instance, thanks > > On Tuesday, May 14, 2019 at 8:58:44 AM UT

[web2py] Re: Web3py

2019-05-14 Thread 黄祥
pls ignore my previous report about web3py tests folder, pardon, done it in wrong way, my bad, here is the correct one docker pull ubuntu docker run -it --privileged ubuntu /bin/bash apt update apt install -y git python3-pip memcached service memcached restart cd git clone https://github.com/web

[web2py] Re: Web3py

2019-05-14 Thread En Ware
So I'm trying to figure out web3py libs and how everything works together. Web3py uses bottle for request, routes, and response. Web3py uses DAL or PyDAL for database abstraction. Is this still valid for Storage class ? https://web2py.readthedocs.io/en/latest/_modules/gluon/storage.html , I w

[web2py] Re: Web3py

2019-05-14 Thread Massimo Di Pierro
web2py uses: (all defined in web3py/core.py) [100% done] pydal for DB [100%] pluralize for T [100%] yatl for template and helpers [100%] tornado as default web server (when no --number_workers) [100%] gevent + gunicorn when --number_workers is specified [100%] bottle for routing, request, response

[web2py] Re: Web3py

2019-05-15 Thread En Ware
Thank you very much for the explanation , it really helps. On Wednesday, May 15, 2019 at 12:23:47 AM UTC-5, Massimo Di Pierro wrote: > > web2py uses: > > (all defined in web3py/core.py) > [100% done] pydal for DB > [100%] pluralize for T > [100%] yatl for template and helpers > [100%] tornado as

[web2py] Re: Web3py

2019-05-17 Thread Massimo Di Pierro
yes. There is a button on the top/right of the dashboard "reload apps" On Thursday, 16 May 2019 08:15:44 UTC-7, John Bannister wrote: > > Hi All, > > Had a first real 'play' with web3py' today and have a few questions the > biggest of which I am hoping the gurus will be able to answer:- > > 1: Is

[web2py] Re: Web3py

2019-05-17 Thread 黄祥
test 'reload apps' on http://localhost:8000/_dashboard return an error on terminal and also on browser http://localhost:8000/_dashboard when click superheroes installed applications [FAILED] loading superheroes Traceback (most recent call last): File "/Users/sugizo/learn/python/web

[web2py] Re: Web3py

2019-05-20 Thread En Ware
Getting error missing table , sqlite3.OperationalError: no such table: web3py_error _dashboard won't load at all. On Wednesday, May 15, 2019 at 9:51:40 AM UTC-5, En Ware wrote: > > Thank you very much for the explanation , it really helps. > > On Wednesday, May 15, 2019 at 12:23:47 AM UTC-5, M

[web2py] Re: Web3py

2019-05-20 Thread 黄祥
> > Getting error missing table , sqlite3.OperationalError: no such table: > web3py_error > > _dashboard won't load at all. > could you please tell us steps to reproduce that error or show some code ? best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documenta

[web2py] Re: Web3py

2019-05-21 Thread En Ware
The only thing I did was: 1. git pull 2. ./web3py-start apps/ Thats all I did. On Monday, May 20, 2019 at 3:08:26 PM UTC-5, 黄祥 wrote: > > Getting error missing table , sqlite3.OperationalError: no such table: >> web3py_error >> >> _dashboard won't load at all. >> > > could you please tell us

[web2py] Re: Web3py

2019-05-21 Thread En Ware
./web3py-start apps/ ___ __ __ | / / / / __ |/___ \/ __ \ \/ / | | / / /_ / /_/ /___/ / /_/ /\ / | | /| / / __/ / __ //__ / / / / | |/ |/ / /___/ /_/ /___/ / / / / |___/|_/_/_/_/_/ /_/ It is still experimental... Dashboard is

[web2py] Re: Web3py

2019-05-21 Thread Massimo Di Pierro
There should be web3py folder in /tmp delete it and restart -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subs

[web2py] Re: Web3py

2019-05-21 Thread En Ware
That was it thanks. On Tuesday, May 21, 2019 at 10:05:56 AM UTC-5, Massimo Di Pierro wrote: > > There should be web3py folder in /tmp delete it and restart -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.g

[web2py] Re: Web3py

2019-05-21 Thread Massimo Di Pierro
delete everything in /tmp/web3py and restart it. This folder should really be created in the cwd not in /tmp/ I will change it. On Monday, 20 May 2019 07:17:14 UTC-7, En Ware wrote: > > Getting error missing table , sqlite3.OperationalError: no such table: > web3py_error > > _dashboard won't loa

[web2py] Re: Web3py

2019-05-22 Thread 黄祥
tested commit (123), need to create folder databases on examples webapp (mkdir apps/examples/databases) *phase 1 ([FAILED] loading examples)* rm -rf /tmp/* rm -rf web3py git clone https://github.com/web2py/web3py cd web3py pip3 install -U -r requirements.txt $ ./web3py-start apps ___ ___

  1   2   3   4   >