[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 黄祥
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

[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

Re: [web2py] Re: Web3py

2019-04-20 Thread villas
I've just been playing with web3py and I think it's great! This framework seems so much cleaner and I like the Bottle routes etc. Re: Dashboard. Currently broken, but I guess Massimo is still working on this and committed prematurely. Re: ORM. It feels like we are talking about the icing

Re: [web2py] Re: Web3py

2019-04-20 Thread 黄祥
github latest commit *access via browser * http://localhost:8000/dashboard *on console* 127.0.0.1 - - [20/Apr/2019 16:17:21] "GET /dashboard HTTP/1.1" 303 0 127.0.0.1 - - [20/Apr/2019 16:17:21] "GET /_dashboard/static/index.html HTTP/1.1" 404 460 127.0.0.1 - - [20/Apr/2019 16:17:26] "GET

Re: [web2py] Re: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
Well, that's a really fair concern, I was just mentioning, because I like ORMs and other popular projects like SQLAlchemy includes a DAL (they call it SQL abstraction toolkit) and an ORM on top of it, and if you look at popular web development full stack frameworks, almost all of them are

Re: [web2py] Re: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
Yes, but that's not about the number of code lines, that's about the code organization and readability. Greetings. El 19/4/19 a las 4:17 p.m., Anthony escribió: In the case of the weppy ORM in particular, though, I think it really is just alternative syntax for everything that can already be

Re: [web2py] Re: Web3py

2019-04-19 Thread Anthony
On Thursday, April 18, 2019 at 6:48:09 PM UTC-4, Carlos Cesar Caballero wrote: > > Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm. I > think including something like this with pydal will be a really good > improvement. > My only concern is whether the benefits are worth

Re: [web2py] Re: Web3py

2019-04-19 Thread Anthony
On Friday, April 19, 2019 at 10:54:11 AM UTC-4, Carlos Cesar Caballero wrote: > > As almost everything in our world ORMs has advantages and disadvantages. > The main criticism about ORMs is that they are leaky abstractions, that > means they leaks details that it is supposed to abstract away,

Re: [web2py] Re: Web3py

2019-04-19 Thread José Luis Redrejo
I think one of the reasons web2py is so productive and has an easy learn curve is due to the fact of using DAL instead of an ORM. I don't see any problem in using sqlalchemy with web2py if an ORM is needed. I would probably use it in some big projects for some of the models. But for the sake of

Re: [web2py] Re: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
As almost everything in our world ORMs has advantages and disadvantages. The main criticism about ORMs is that they are leaky abstractions, that means they leaks details that it is supposed to abstract away, because there are times when you just need to use, for example, SQL directly or work

Re: [web2py] Re: Web3py

2019-04-19 Thread Dave S
On Thursday, April 18, 2019 at 3:48:09 PM UTC-7, Carlos Cesar Caballero wrote: > > Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm. I > think including something like this with pydal will be a really good > improvement. > > Greetings. > > As someone who had some SQL training

Re: [web2py] Re: Web3py

2019-04-18 Thread Carlos Cesar Caballero Díaz
Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm. I think including something like this with pydal will be a really good improvement. Greetings. El 12/4/19 a las 4:33 p.m., Massimo Di Pierro escribió: Can you make it a module on pypi? Or should we include it in pydal? --

[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

[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

Re: [web2py] Re: Web3py

2019-04-17 Thread Massimo Di Pierro
Ignorance on my side. If you want to make a PR switching to vuetify I will accept it. On Wednesday, 17 April 2019 02:17:49 UTC-7, Ramos wrote: > > Massimo , any reason you chose Bulma instead of vuetify ? > Vuetify is designed specifically for vuejs > Regards > António > > Em qua, 17 de abr de

Re: [web2py] Re: Web3py

2019-04-17 Thread António Ramos
found it self.start = function() { *Vue.config.devtools = true;* self.vue = new Vue({el: '#vue', data: self.data, methods: self.methods, filters: self.filters}); self.on_load(); }; Em qua, 17 de abr de 2019 às 10:38, António Ramos escreveu: > How to use vue

Re: [web2py] Re: Web3py

2019-04-17 Thread António Ramos
How to use vue devtools? Vue.js is detected on this page. Devtools inspection is not available because it's in production mode or explicitly disabled by the author. Em qua, 17 de abr de 2019 às 10:17, António Ramos escreveu: > Massimo , any reason you chose Bulma instead of vuetify ? > Vuetify

Re: [web2py] Re: Web3py

2019-04-17 Thread António Ramos
Massimo , any reason you chose Bulma instead of vuetify ? Vuetify is designed specifically for vuejs Regards António Em qua, 17 de abr de 2019 às 09:37, António Ramos escreveu: > Worked for me... > > > Em ter, 16 de abr de 2019 às 21:32, En Ware escreveu: > >> Thank you , that did it. >> >> On

Re: [web2py] Re: Web3py

2019-04-17 Thread António Ramos
Worked for me... Em ter, 16 de abr de 2019 às 21:32, En Ware escreveu: > 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

[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-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) -

[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

Re: [web2py] Re: Web3py

2019-04-16 Thread En Ware
Is web3py running ? Do you see this in your terminal ? Bottle v0.12.16 server starting up (using WSGIRefServer())... Listening on http://127.0.0.1:8000/ Hit Ctrl-C to quit. Have you git pulled the latest changes ? How did you start web3py server ? On Tuesday, April 16, 2019 at 10:02:46 AM

Re: [web2py] Re: Web3py

2019-04-16 Thread António Ramos
Not working... [image: image.png] Em ter, 16 de abr de 2019 às 14:41, En Ware escreveu: > Getting error > > | / / / / __ |/___ \/ __ \ \/ / > | | / / /_ / /_/ /___/ / /_/ /\ / > | | /| / / __/ / __ //__ / / / / > | |/ |/ / /___/ /_/ /___/ / / / / >

[web2py] Re: Web3py

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

[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

[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

[web2py] Re: Web3py

2019-04-16 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) -

[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
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 黄祥
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

[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 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

[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] 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 黄祥
*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 黄祥
*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: #

[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

[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 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 -

[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

[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

[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/

[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

[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 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

[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

[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: -

Re: [web2py] Re: Web3py

2019-04-13 Thread Kevin Keller
Geat progress Massimo. Looks awesome! I take it we stick to bottle then and embrace vue.js as the default frontend of choice. I suppose on the long run we just have to think about some standard glue code generation that also works with Auth and jwt on the rest endpoints. Possibly swagger /

Re: [web2py] Re: Web3py

2019-04-12 Thread Massimo Di Pierro
Can you make it a module on pypi? Or should we include it in pydal? -- 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

Re: [web2py] Re: Web3py

2019-04-12 Thread Kevin Keller
I'm interestes in the orm Carlos. keller...@gmail.com Happy to test it but also work on it with you. On Fri, 12 Apr 2019, 18:46 En Ware, wrote: > 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: >> >>

[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/ >

Re: [web2py] Re: Web3py

2019-04-12 Thread Carlos Cesar Caballero Díaz
I reaaly would like to use an ORM with web3py, in my opinion ORMs are better for organization when apps grow big and I like a lot the fat models and thin controllers approach, and it is some messy with pydal right now

Re: [web2py] Re: Web3py

2019-04-12 Thread Massimo Di Pierro
May steel some ideas from weppy but I do not want an ORM. That can be optional if you like we can isolate it in a module. On Friday, 12 April 2019 04:40:51 UTC-7, Kevin Keller wrote: > > Any thoughts on merging / collaborating with weppy? > > http://weppy.org/ > > Uses web2py dal and yatl.. >

[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
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

Re: [web2py] Re: Web3py

2019-04-12 Thread Kevin Keller
Any thoughts on merging / collaborating with weppy? http://weppy.org/ Uses web2py dal and yatl.. and has some nifty things to make queries and modelling easier.. On Fri, Apr 12, 2019 at 6:03 AM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > There is a lot to do but at this point it

[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. > >

Re: [web2py] Re: web3py again....

2019-04-07 Thread Anthony
Not sure what that means -- Massimo will have to reply. Once a module has been loaded within a given Python process, it won't be repeatedly reloaded -- see https://docs.python.org/3/reference/import.html#the-module-cache. web2py model and controller files are executed on every request -- if

Re: [web2py] Re: web3py again....

2019-04-07 Thread João Matos
That was the word used by Massimo. He stated "In web2py we do not reload the modules. we reimport them at every request. this causes a performance penalty and is only needed in development." My question was if it is possible to disable module reimport at every request in production or it just

Re: [web2py] Re: web3py again....

2019-04-07 Thread Anthony
On Sunday, April 7, 2019 at 1:33:22 PM UTC-4, João Matos wrote: > > @Anthony > > I was asking about reimport not reload. > Does track_changes appy to both? > What do you mean by "reimport"? Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: web3py again....

2019-04-07 Thread João Matos
@Anthony I was asking about reimport not reload. Does track_changes appy to both? domingo, 7 de Abril de 2019 às 18:30:24 UTC+1, Anthony escreveu: > > On Sunday, April 7, 2019 at 1:19:08 PM UTC-4, João Matos wrote: >> >> @Massimo >> >> You state >> "In web2py we do not reload the modules. we

Re: [web2py] Re: web3py again....

2019-04-07 Thread Anthony
On Sunday, April 7, 2019 at 1:19:08 PM UTC-4, João Matos wrote: > > @Massimo > > You state > "In web2py we do not reload the modules. we reimport them at every > request. this causes a performance penalty and is only needed in > development." > > Does this mean it is possible to disable module

Re: [web2py] Re: web3py again....

2019-04-07 Thread João Matos
@Massimo You state "In web2py we do not reload the modules. we reimport them at every request. this causes a performance penalty and is only needed in development." Does this mean it is possible to disable module reimport at every request in web2py when in production (or did I misunderstood

Re: [web2py] Re: web3py again....

2019-04-07 Thread Kevin Keller
I couldn't find the numbers that quickly, but key point is the bigger Flask community and plugin availability. Also if people look for job for companies that use python most of the time they look for Flask or Django experience. Web3Py build on Flask would also remove the questions for beginners

Re: [web2py] Re: web3py again....

2019-04-06 Thread Massimo Di Pierro
I like bottle because it is simpler than flask. Can you make a good case for why Flask over bottle? On Tuesday, 2 April 2019 00:56:31 UTC-7, Kevin Keller wrote: > > Here is a project that generates swagger(openapi) documentation for > flask+sqlalchemy. https://github.com/thomaxxl/safrs > I was

Re: [web2py] Re: web3py again....

2019-04-02 Thread John Underhill
From: web2py@googlegroups.com on behalf of Carlos Costa Sent: Tuesday, April 2, 2019 2:09 PM To: web2py-users Subject: [web2py] Re: web3py again Will it have default url routes? beyond that, my thought about ui widgets: I think it would be nice: 1 - to have an easy integration via a model

[web2py] Re: web3py again....

2019-04-02 Thread Carlos Costa
Will it have default url routes? beyond that, my thought about ui widgets: I think it would be nice: 1 - to have an easy integration via a model rest api 2- be agnostice to client side frameworks 3 - come with a default client side framework (preferably vue) 4 - have a ui lib by default 5 - have

[web2py] Re: web3py again....

2019-04-02 Thread 黄祥
yes, you are right, my bad, like the idea of jekpack (combine server side (jekyll ruby) with client side (webpack js), perhaps can learn from it and adapt it to web3py. ref: https://github.com/yfxie/jekpack ever thought of graphql as an option to REST? best regards, stifan -- Resources: -

Re: [web2py] Re: web3py again....

2019-04-02 Thread Kevin Keller
Here is a project that generates swagger(openapi) documentation for flask+sqlalchemy. https://github.com/thomaxxl/safrs I was already wondering about changing bottle with flask, but I dont know if that is heresy now :). On Tue, Apr 2, 2019 at 9:31 AM Kevin Keller wrote: > >

Re: [web2py] Re: web3py again....

2019-04-02 Thread Kevin Keller
https://editor.swagger.io/?_ga=2.227432986.689200959.1554189909-55439989.1547630410 Swagger JSON editor + https://swagger.io/specification/. So one Swagger Json file can contain the description of all the endpoints. On Tue, Apr 2, 2019 at 9:19 AM Kevin Keller wrote: > I agree. > > In fact,

Re: [web2py] Re: web3py again....

2019-04-02 Thread Kevin Keller
I agree. In fact, the whole client side today should be Javascript and just communicate via REST+JWT (even though in the enerprise space you will also need OAUTH2). The models need to be exposed via REST easiliy and it should be easy to add auth to routes with JWT. Also the REST endpoints once

[web2py] Re: web3py again....

2019-04-02 Thread Massimo Di Pierro
Th problem with SQLFORM is that different CSS libraries require different HTML stuctures. It is not as simple as selecting a class or div vs span. In web2py we have code to deal with bootstrap 2 and 3. We apply both classes. It is horrible. We should move away from generating html server side

[web2py] Re: web3py again....

2019-03-31 Thread Massimo Di Pierro
The app that is supposed to respond to: http://localhost:8000/_error/{uuid} does not exist yet. It is an easy todo. Maybe I will do it today. This is not going to be backward compatible for another month. Do not expect to

[web2py] Re: web3py again....

2019-03-31 Thread 黄祥
> > Backporting SQLFORM, grid and Auth, should not be that complicated, > although I think we can do better. > sqlform, grid and auth is a great helper to make web2py as rapid application development, but please consider some of users who want to use another css or js framework. perhaps just

[web2py] Re: web3py again....

2019-03-31 Thread 黄祥
new behaviour learned for now: 1. start server with python web3py.py applications/, then copy the app and access the new app in the browser will result : Error: 404 Not Found, solution whenever add new app must restart the server (gunicorn) 2. seems index not the default function like in web2py,

[web2py] Re: web3py again....

2019-03-31 Thread Massimo Di Pierro
I am trying to keep it intentionally small and the API may change. For example I am going to refactor some of the decorators as bottle plugins. About your questions. we will continue use travis-ci like we do with web3py. I like behave but may people I talked too found it hard to learn and that

Re: [web2py] Re: web3py again....

2019-03-31 Thread Massimo Di Pierro
Try http://localhost:8000/todoo /index On Saturday, 30 March 2019 19:50:57 UTC-7, 黄祥 wrote: > > *step* > rm -rf ~/learn/python/web3py > cd ~/learn/python > git clone

Re: [web2py] Re: web3py again....

2019-03-31 Thread Massimo Di Pierro
On Saturday, 30 March 2019 02:26:22 UTC-7, 黄祥 wrote: > > on github : > >- request, response objects are from bottle ( >https://bottlepy.org/docs/dev/) > > what is different web2py and bottle in terms of request and response ? > plus minus between it? > slightly different syntax. bottle

Re: [web2py] Re: web3py again....

2019-03-30 Thread 黄祥
*step* rm -rf ~/learn/python/web3py cd ~/learn/python git clone https://github.com/web2py/web3py cd web3py cp -r applications/todo applications/todoo python web3py.py applications/ *result on browser* Error: 404 Not Found Sorry, the requested URL 'http://localhost:8000/todoo' caused an error:

Re: [web2py] Re: web3py again....

2019-03-30 Thread 黄祥
on github : - request, response objects are from bottle ( https://bottlepy.org/docs/dev/) what is different web2py and bottle in terms of request and response ? plus minus between it? - unlike web2py, web3py does not use custom import or eval is custom import is same like import from

Re: [web2py] Re: web3py again....

2019-03-29 Thread José Luis Redrejo
El vie., 29 mar. 2019 a las 5:12, Massimo Di Pierro (< massimo.dipie...@gmail.com>) escribió: > My thought exactly. > > I also fully agree. Very excited with the new features. Also, I see the problems I reported yesterday have been solved in the git repository. Now we can begin to really play

[web2py] Re: web3py again....

2019-03-28 Thread Massimo Di Pierro
People asked about the Goal. My goal is: - preserve as much as possible of web2py syntax that we love - much faster - simpler code base (so far less than 300 lines of code in a single file) - move more logic to apps and js libs - web2py's goal was to make it simple to build complex web apps.

[web2py] Re: web3py again....

2019-03-28 Thread Massimo Di Pierro
My thought exactly. On Thursday, 28 March 2019 18:46:47 UTC-7, Joe Barnhart wrote: > > I agree that back porting web2py code should be straightforward (after > all, it's not rocket science :-D). But maybe we should revisit those > modules and pare them down to minimalist proportions. I really

Re: [web2py] Re: web3py again....

2019-03-28 Thread Kevin Keller
I like the general direction of it. Auth and sqlform backported would of course be great. With bottle in the middle we can tap into the bottle community extensions but also gain extra flexibility.. Combined with web2py sqlform and Auth etc could be a real winner On Fri, 29 Mar 2019, 02:46 Joe

[web2py] Re: web3py again....

2019-03-28 Thread Joe Barnhart
I agree that back porting web2py code should be straightforward (after all, it's not rocket science :-D). But maybe we should revisit those modules and pare them down to minimalist proportions. I really need Auth, complete with user roles and groups, but there's probably a better way to

[web2py] Re: web3py again....

2019-03-28 Thread 黄祥
great, tested it *environment* $ uname Darwin $ python -V Python 3.7.2 *steps* git clone https://github.com/web2py/web3py cd web3py pip install -r requirements.txt python web3py.py applications/ open http://localhost:8000/todo/index *result in browser* can add (save) and delete data in browser

[web2py] Re: web3py again....

2019-03-28 Thread Leonel Câmara
I haven't tried it, but looking at the code... Can you explain a little bit more what you're trying to achieve here? This seems like it's bottle with pydal and yatl. Why not just use bottle then? It will force me to learn bottle anyway. -- Resources: - http://web2py.com -

Re: [web2py] Re: Web3py reboot

2019-03-18 Thread Kevin Keller
Just for reference: https://www.jhipster.tech/ On Mon, Mar 18, 2019 at 9:59 AM Kevin Keller wrote: > Well, if you want to have something different, we would probably need to > look into things like scaffolding of a web3py REST backend with oauth2+jwt > security for the endpoints plus automatic

Re: [web2py] Re: Web3py reboot

2019-03-18 Thread Kevin Keller
Well, if you want to have something different, we would probably need to look into things like scaffolding of a web3py REST backend with oauth2+jwt security for the endpoints plus automatic openapi (swagger) documentation/files and a frontend based i,.e. on Vue.js or React/Angular. Somewhat

[web2py] Re: Web3py reboot

2019-03-17 Thread Massimo Di Pierro
I think web3py should be something a little different, not just web2py for python3. On Sunday, 17 March 2019 05:42:16 UTC-7, Kevin Keller wrote: > > Hey, > > So I was wondering today what you guys would think about the idea to > rename web2py to Web3py, once it reaches a level of maturity

Re: [web2py] Re: web3py status

2016-10-31 Thread Marcelo Huerta
El jueves, 18 de agosto de 2016, 16:44:05 (UTC-3), Massimo Di Pierro escribió: > > It is possible. web3py is code name for experimental stuff. Mostly new > form/grid logic that will be backported to web2py. > > I read somewhere that you are thinking of ditching SQLFORM (and, I assume, the

Re: [web2py] Re: web3py status

2016-09-07 Thread Paolo Valleri
Current master branch passes almost all unittests on python 3.5. If anyone is interested in helping with the final steps, a checklist is here https://github.com/web2py/web2py/issues/1353#issue-159010482 On Tuesday, September 6, 2016 at 5:43:55 AM UTC+2, jjs0sbw wrote: > > I agree that a better

Re: [web2py] Re: web3py status

2016-09-05 Thread joseph simpson
I agree that a better test environment is necessary... In the next few months I will be starting a project with web2py --- or whatever -- A standard test approach and environment will be the first item to be addressed.. What are the basic requirements for a test environment What needs to

[web2py] Re: web3py status

2016-09-05 Thread Matheus Cardoso
I think the name is the least of our problems. We should debate about what is missing to achieve this "web3py", how many people its demands to accomplish this new framework, main features, such as test environment (!!!), server side rendering or not, etc. On Friday, October 25, 2013 at

Re: [web2py] Re: web3py status

2016-09-05 Thread António Ramos
There it goes again another endless round of names Why the hell do we need "py" in the name ? Is that really necessary? why? I think if we forget "py" we may find a lot of nice names and forget a lot of bad ones. For example: Call it Massimo or Pierro... Its what it is in the end right? And

Re: [web2py] Re: web3py status

2016-09-05 Thread Pbop
I recommend AbilityPy. People want a framework with rich abilities. The Py gives a nod that this is a python framework (with abilities). Ability preceding Py ensures the framework is at the top of any list of frameworks given the alpha sort of A+B for AbilityPy. The domain is also available

Re: [web2py] Re: web3py status

2016-09-02 Thread Joe Barnhart
I say pick a new, random name that says nothing about "web" or "python". In Marketing, they like to pick names with no pre-defined meaning and then "define" it to mean what they want. Just choose a name that is easy to pronounce for non-English speakers and has a short, catchy sound. Google

Re: [web2py] Re: web3py status

2016-08-18 Thread Massimo Di Pierro
It is possible. web3py is code name for experimental stuff. Mostly new form/grid logic that will be backported to web2py. On Wednesday, 17 August 2016 19:09:43 UTC-5, Jason Solack wrote: > > I saw a post on the developer forum that the newer version of web2py was > mostly Python 3 compatible...

<    1   2   3   4   >