Re: [web2py] Re: web3py -> py4web

2019-08-12 Thread Massimo Di Pierro
Not yet. Will create one eventually but want to finish a couple of features with support with this community On Monday, 12 August 2019 07:38:46 UTC-7, En Ware wrote: > > Is there an IRC channel for py4web yet ? or an official group ? > > On Tuesday, July 30, 2019 at 1:38:05 AM UTC-5, Massimo Di

Re: [web2py] Re: web3py -> py4web

2019-08-12 Thread En Ware
Is there an IRC channel for py4web yet ? or an official group ? On Tuesday, July 30, 2019 at 1:38:05 AM UTC-5, Massimo Di Pierro wrote: > > to be clear... most of the docs is backported by web2py + explanation of > sessions and @action decorator. > Most of the new features are still

Re: [web2py] Re: web3py -> py4web

2019-07-30 Thread villas
On Tuesday, 30 July 2019 07:35:08 UTC+1, Massimo Di Pierro wrote: > > I did not know about this. It has a cost. I'd rather not pay for it. > 1. Just so you know, from GitBook Pricing page: > GitBook is free for open-source & non-profit teams > 2. Markdown

Re: [web2py] Re: web3py -> py4web

2019-07-30 Thread Massimo Di Pierro
to be clear... most of the docs is backported by web2py + explanation of sessions and @action decorator. Most of the new features are still undocumented or poorly documented unfortunately. Namely pydal.restapi, auth plugins, Form, and Will try my best in the next few days. On Monday, 29 July

Re: [web2py] Re: web3py -> py4web

2019-07-30 Thread Massimo Di Pierro
*from pydal.restapi import RestAPI, Policy* On Monday, 29 July 2019 14:13:50 UTC-7, Tito Garrido wrote: > > I am trying to reproduce the RestAPI example: > > > > *>>> print (pydal.__version__)19.05.11>>> from pydal.dbapi import RestAPI, > Policy* > Traceback (most recent call last): > File "",

Re: [web2py] Re: web3py -> py4web

2019-07-30 Thread Massimo Di Pierro
I did not know about this. It has a cost. I'd rather not pay for it. But I am thinking that perhaps we should move away from markmin and use markdown. Markmin is better but if we follow a more established standard we can use more tools. Also the book chapters can be used as README.md for the

Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread Tito Garrido
I am trying to reproduce the RestAPI example: *>>> print (pydal.__version__)19.05.11>>> from pydal.dbapi import RestAPI, Policy* Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'pydal.dbapi' What am I missing? On Mon, Jul 29, 2019 at 10:43 AM

Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread António Ramos
Why not using gitbook to create the documentation ??? repos already using gitbook... https://guide.elm-lang.org/ https://docs.feathersjs.com/# etc Em seg, 29 de jul de 2019 às 10:36, Jose C escreveu: > Darn, I hunted around but didn't see it. Thanks for the link... > > > > On Monday, 29 July

Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread Jose C
Darn, I hunted around but didn't see it. Thanks for the link... On Monday, 29 July 2019 10:06:42 UTC+1, Nico Zanferrari wrote: > > Hi Jose, > > the documentation is already on GitHub > > , > and PR are

Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread Nico Zanferrari
Hi Jose, the documentation is already on GitHub , and PR are always welcome ;-) Nico Il giorno lun 29 lug 2019 alle ore 10:14 Jose C ha scritto: > Looks promising... some questions: > > 1) Have spotted many

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread António Ramos
http://py4web.com/_documentation/static/index.html#chapter-06 Em qua, 24 de jul de 2019 às 12:28, Kevin Keller escreveu: > Which file Antonio? > > I found what seems an Oauth2 server py and pyjwt in core. > > So I suppose OAuth2 + OpenID Restful API can be done with web4py already.. > just need

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Kevin Keller
Which file Antonio? I found what seems an Oauth2 server py and pyjwt in core. So I suppose OAuth2 + OpenID Restful API can be done with web4py already.. just need to find in the docs.. By the way.. happy to contribute to the docs. On Wed, Jul 24, 2019 at 1:21 PM António Ramos wrote: > >

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread António Ramos
Found a typo RestPI instead of RestAPI Regardsdef api(): return RestPI(db, policy)(request.method, request.args(0), request.args(1), request.get_vars, request.post_vars) Em qua, 24 de jul de 2019 às 12:17, António Ramos escreveu: > - Great documentation layout

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread António Ramos
- Great documentation layout - A litle bette name (Py4Web) - But the dashboard and the running circle and colours chosen are completely out of order in my opinion if it matters. Where is the logo ? will it have a logo ? what colour scheme will it use ? Regards Em qua, 24 de jul de 2019 às 09:44,

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Nico Zanferrari
Pretty awesome ;-) By the way, the box where you write the password should be enlarged a little on the right... [image: image.png] Il giorno mer 24 lug 2019 alle ore 10:09 Massimo Di Pierro < massimo.dipie...@gmail.com> ha scritto: > Dashboard now partially works on GAE in demo mode. >

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Massimo Di Pierro
Dashboard now partially works on GAE in demo mode. http://py4web.com/_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

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Nico Zanferrari
Excellent! Il giorno mer 24 lug 2019 alle ore 08:17 Massimo Di Pierro < massimo.dipie...@gmail.com> ha scritto: > > Notice the time to serve this page ( > https://github.com/web2py/py4web/blob/master/apps/_default/templates/index.html) > which is a template, is ~7ms. In web2py it was 100-200ms.

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Massimo Di Pierro
Notice the time to serve this page (https://github.com/web2py/py4web/blob/master/apps/_default/templates/index.html) which is a template, is ~7ms. In web2py it was 100-200ms. On Tuesday, 23 July 2019 23:03:08 UTC-7, sandeep patel wrote: > > Absolutely Great!! > > But >

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Massimo Di Pierro
The dashboard does not work on GAE http://py4web.com/_documentation/static/ is not a valid URL http://py4web.com/_documention is On Tuesday, 23 July 2019 23:03:08 UTC-7, sandeep patel wrote: > > Absolutely Great!! > > But >

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread sandeep patel
Absolutely Great!! But http://py4web.com/_documentation/static/ though 404 On Wed, Jul 24, 2019 at 11:28 AM Dave S wrote: > > > On Tuesday, July 23, 2019 at 10:40:27 PM UTC-7, Massimo Di Pierro wrote: >> >> OK. I know. I am not good with names. >> But there are lots of requirements to be

Re: [web2py] Re: Web3py

2019-06-16 Thread Massimo DiPierro
Not with the usual syntax. Looking for a way to allow this in the new form api On Sun, Jun 16, 2019, 09:51 Fekete Zoltán wrote: > Hi Massimo, > > In web2py I highly rely on dynamically modifiable forms. Based on > calculations some fields are required or even hidden, others not. > > Will be

Re: [web2py] Re: Web3py FORM referenced fields

2019-06-14 Thread Massimo Di Pierro
Thanks. That clarifies. Will fix later today. On Wednesday, 12 June 2019 23:25:26 UTC-7, John Bannister wrote: > > Hi Massimo, > > > > Issue is not the dropdown for referenced fields on an Add rec as that > works fine. Issue is when you want to edit a record with a referenced field > so > >

RE: [web2py] Re: Web3py FORM referenced fields

2019-06-13 Thread John Bannister
Hi Massimo, Issue is not the dropdown for referenced fields on an Add rec as that works fine. Issue is when you want to edit a record with a referenced field so form=Form(db.order, record=id) Referenced field is blank (although dropdown is available). All other fields are populated

Re: [web2py] Re: Web3py

2019-06-09 Thread Massimo Di Pierro
please try delete everything in apps/_scaffold/databases/* I was not able to reproduce after I did that On Sunday, 9 June 2019 01:23:08 UTC-7, John Bannister wrote: > > I tried both with and without. Same or very similar result. It is only > complaining about the auth_user_tag table which is

RE: [web2py] Re: Web3py

2019-06-09 Thread John Bannister
I tried both with and without. Same or very similar result. It is only complaining about the auth_user_tag table which is defined in the auth module. From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimo Di Pierro Sent: 08 June 2019 07:19 To: web2py-users

Re: [web2py] Re: Web3py

2019-05-19 Thread 黄祥
in latest commit (116) for reload fixed: - edit, add and delete function on controllers take effects after hit reload button - route for is refreshed after hit reload button (last reported dissapear in some webapp) btw, the button said 'Reaload Apps' is it intention or correct one is 'Reload

Re: [web2py] Re: Web3py

2019-05-19 Thread Massimo Di Pierro
right we should not be able to edit those. Will fix. On Sunday, 19 May 2019 03:49:22 UTC-7, 黄祥 wrote: > > tested latest commit (115) about recent tickets > - recent tickets can be deleted but when refresh the browser, > http://localhost:8000/_dashboard it will appears again > - recent tickets

Re: [web2py] Re: Web3py

2019-05-19 Thread Massimo Di Pierro
db.commit() is missing. fixing it later today. On Sunday, 19 May 2019 03:56:19 UTC-7, 黄祥 wrote: > > after hit 'reload' affect the '_dashboard', when do crud for 'recent > tickets' (before hit 'reload', no error occured on terminal) > [OK] reloaded _dashboard > [OK] reloaded _scaffold >

Re: [web2py] Re: Web3py

2019-05-19 Thread Massimo Di Pierro
ok you are right. reloader it broken. Please try the latest version I posted. I dicthed reloader but we may have some side effects. On Sunday, 19 May 2019 02:38:07 UTC-7, John Bannister wrote: > > Hi Guys, > > Couple of things. > > 1: I added a print('Dependancies %s ' %

Re: [web2py] Re: Web3py

2019-05-19 Thread 黄祥
after hit 'reload' affect the '_dashboard', when do crud for 'recent tickets' (before hit 'reload', no error occured on terminal) [OK] reloaded _dashboard [OK] reloaded _scaffold [OK] reloaded examples [OK] reloaded myapp [OK] reloaded superheroes [OK] reloaded todo

Re: [web2py] Re: Web3py

2019-05-19 Thread 黄祥
tested latest commit (115) about recent tickets - recent tickets can be deleted but when refresh the browser, http://localhost:8000/_dashboard it will appears again - recent tickets can be edited, not sure why the ticket can be edited ? - when click create, it show forms, but can't be saved, not

Re: [web2py] Re: Web3py

2019-05-19 Thread John Bannister
Just an update to the below. It seems that the from . import 'whatever' is where the issue is with the reloader as if I do for example import os or import datetime in the __init__.py they both show up in the list of dependencies. Anything with a from . import 'whatever' just lists the

Re: [web2py] Re: Web3py

2019-05-19 Thread John Bannister
Hi Guys, Couple of things. 1: I added a print('Dependancies %s ' % reloader.get_dependencies(module)) just before the output to console in web3py/core.py. Here is the output (not formatted):- Dashboard is at: http://127.0.0.1:8000/_dashboard [ ] loading examples ... Dependancies None

Re: [web2py] Re: Web3py

2019-05-18 Thread 黄祥
understood, my bad, just test it n report it what think related with the problem @massimo should this thing address an issue in github, so that you can focus release the first version of web3py ? best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: Web3py

2019-05-18 Thread Massimo Di Pierro
I do not think this helps. This would conflict with the fact web3py internally imports reloader. On Saturday, 18 May 2019 05:43:22 UTC-7, 黄祥 wrote: > > already checked : https://pypi.org/project/reload > did you test : > reload ./web3py-start apps > ? > > want to learning about reload, but not

Re: [web2py] Re: Web3py

2019-05-18 Thread Massimo Di Pierro
As mentioned before. Do not use the bottle built-in reloader. It is for a different use case. Also the reloader is not meant to with with gunicorn (because multiprocess). only this should work: bottle.run(server='tornado', host=host, port=int(port)) On Saturday, 18 May 2019 04:49:41 UTC-7, 黄祥

Re: [web2py] Re: Web3py

2019-05-18 Thread Massimo Di Pierro
Wait. You should not change that. Web3py does not uses the bottle bult-in reloader. You should NOT have run(... reloader=True) I know that does not work well because of the order of imports. Also reloader is not supposed to work if you set --number_workers. Could that be the problem? --

Re: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
No I initally tried from web3py folder to import apps.myapp.controllers.py but paths are relative and globals like evrirnment/gloabls like 'WEB3PY_APPS_FOLDER' are not available in the shell. (also tried from apps and myapp folder but same). Probably need to write a little script. So .. I

Re: [web2py] Re: Web3py

2019-05-18 Thread 黄祥
already checked : https://pypi.org/project/reload did you test : reload ./web3py-start apps ? want to learning about reload, but not sure how to do it best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

Re: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
Hi Stifan, I basically followed the example on the PyPi site which works fine. NB I did not manage to reload the modules in apps/myapp manually (from shell). Have not had too much time today to get into it deeply as have other commitments. I did however try to force the load_app to load as

Re: [web2py] Re: Web3py

2019-05-18 Thread 黄祥
test reload apps with gunicorn server and reloader=True, can run at first, but when hit 'reload apps' it return an error on terminal *web3py/web3py/core.py* bottle.run(server='gunicorn', host=host, port=int(port), reloader=True) [2019-05-18 18:43:48 +0700] [47687] [INFO] Starting gunicorn 19.9.0

Re: [web2py] Re: Web3py

2019-05-18 Thread 黄祥
> > What OS are you testing on? > mac, linux via docker (ubuntu, debian, centos or fedora) btw, seems not related with os, like root cause is in the web server module (parameter to run web server perhaps (not sure just guess) ), see previous message best regards, stifan -- Resources: -

Re: [web2py] Re: Web3py

2019-05-18 Thread 黄祥
*web3py/web3py/core.py* tried bottle.run(server='tornado', host=host, port=int(port), reloader=True) and bottle.run(host=host, port=int(port), reloader=True) got same result, edit and add new function, routes for not work tested work for edit and add new function (but still routes for still

RE: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
Hi Stifan, What OS are you testing on? BR John From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of ?? Sent: 18 May 2019 08:14 To: web2py-users Subject: Re: [web2py] Re: Web3py Also, web3py uses this: https://pypi.org/project/reloader/ The docs have

Re: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
Running reload manually works as advertised on PyPi On Saturday, 18 May 2019 13:03:59 UTC+2, John Bannister wrote: > > Same result unfortunately > > On Saturday, 18 May 2019 10:50:34 UTC+2, Massimo Di Pierro wrote: >> >> what if you do not user tornado and replace >> >>

Re: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
Same result unfortunately On Saturday, 18 May 2019 10:50:34 UTC+2, Massimo Di Pierro wrote: > > what if you do not user tornado and replace > > bottle.run(server='tornado', host=host, port=int(port)) > > with > > bottle.run(host=host, port=int(port)) > > it is very strange. Please try test the

Re: [web2py] Re: Web3py

2019-05-18 Thread Massimo Di Pierro
what if you do not user tornado and replace bottle.run(server='tornado', host=host, port=int(port)) with bottle.run(host=host, port=int(port)) it is very strange. Please try test the reloader module on its own. On Friday, 17 May 2019 23:09:49 UTC-7, 黄祥 wrote: > > Does it print this when you

RE: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
To: web2py-users Subject: Re: [web2py] Re: Web3py Also, web3py uses this: https://pypi.org/project/reloader/ The docs have an example. Does this module work for you? On Friday, 17 May 2019 22:12:39 UTC-7, Massimo Di Pierro wrote: Does it print this when you press [reload]? [OK] reloaded

Re: [web2py] Re: Web3py

2019-05-18 Thread 黄祥
> > Also, web3py uses this: > https://pypi.org/project/reloader/ > The docs have an example. Does this module work for you? > yes reloader already installed, since it's written on requirements.txt git clone https://github.com/web2py/web3py cd web3py pip install -r requirements.txt perhaps some

Re: [web2py] Re: Web3py

2019-05-18 Thread 黄祥
> > Does it print this when you press [reload]? > yes it is $ ./web3py-start apps ___ __ __ | / / / / __ |/___ \/ __ \ \/ / | | / / /_ / /_/ /___/ / /_/ /\ / | | /| / / __/ / __ //__ / / / / | |/ |/ / /___/ /_/ /___/ / / / /

Re: [web2py] Re: Web3py

2019-05-17 Thread Massimo Di Pierro
Also, web3py uses this: https://pypi.org/project/reloader/ The docs have an example. Does this module work for you? On Friday, 17 May 2019 22:12:39 UTC-7, Massimo Di Pierro wrote: > > Does it print this when you press [reload]? > > [OK] reloaded _dashboard > [OK] reloaded myapp > [OK]

Re: [web2py] Re: Web3py

2019-05-17 Thread Massimo Di Pierro
Does it print this when you press [reload]? [OK] reloaded _dashboard [OK] reloaded myapp [OK] reloaded todo [OK] reloaded superheroes [OK] reloaded examples [OK] reloaded _scaffold On Friday, 17 May 2019 16:03:18 UTC-7, John Bannister wrote: > > For me I have not

Re: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
For me I have not installed any npm or other. Clean python 3 virtual environment into which I installed web3py on Ubuntu. Base install on windows 10 as well same. All works fine apart from the reloading. I can try to set up on one of my Centos 7 servers later tomorrow but am pretty sure its

Re: [web2py] Re: Web3py

2019-05-17 Thread 黄祥
> > Editing apps and reloading forks for me. Please try again and let's try > figure out why does not work for you. > after tried latest commit (110), guess when it's work on you, but not work on us, perhaps related with module installed (python or js via npm) on your side, but not installed

Re: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
Update on this :- Just tried it on native windows10 python3.7 and same results. New functions return error 404 until server restart. BR John On Friday, 17 May 2019 18:49:28 UTC+2, 黄祥 wrote: > > problem still exist (in commits 110) only superheroes app traceback error > is gone when hit

Re: [web2py] Re: Web3py

2019-05-17 Thread 黄祥
problem still exist (in commits 110) only superheroes app traceback error is gone when hit 'reload apps': 1. 'routes for ' disappears after hit 'reload apps' for : - scaffold - myapp but for _dashboard, example, todo still exist (appears as expected) 2. editing and adding new function in

RE: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
helloworld accessible. After server restart all are. BR John From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Massimo Di Pierro Sent: 17 May 2019 17:12 To: web2py-users Subject: Re: [web2py] Re: Web3py I fixed the database locking problem. missing db.commit

Re: [web2py] Re: Web3py

2019-05-17 Thread Massimo Di Pierro
I fixed the database locking problem. missing db.commit() Editing apps and reloading forks for me. Please try again and let's try figure out why does not work for you. It is intentionally reloading all apps but this can easily be changed. I will change it. Massimo On Friday, 17 May 2019

RE: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
Hi Massimo, I have tried that but it has no effect. It seems to be doing something for a while but the only way I can get changes to appear is to restart the server. Basically what I did was to copy and rename the helloworld action a few times so helloworld1 …….helloworld7 (all in same

Re: [web2py] Re: Web3py

2019-04-23 Thread Massimo Di Pierro
stupid was an experiment. the _dashboard is based on some variation of it. I do not think it good enough for what people expect from a css framework today. The collection of pure css effects in there has some value but that's all. On Tuesday, 23 April 2019 21:34:41 UTC-7, Dave S wrote: > > > >

Re: [web2py] Re: Web3py

2019-04-23 Thread Dave S
On Saturday, April 20, 2019 at 5:25:01 PM UTC-7, Massimo Di Pierro wrote: > > I have been looking more into veutify. I have some reservations. > I think a good CSS framework (for web3py) should be JS agnostic, even if > the examples use vue.js. > I think effects should be done in CSS only, not

Re: [web2py] Re: Web3py

2019-04-23 Thread Dave S
On Tuesday, April 23, 2019 at 8:44:26 AM UTC-7, 黄祥 wrote: > > the web2py admin is different. The web3py one is much more spartan. But >> the functions that need to be ported to zip/unzip apps are indentical. >> > > not sure got the meaning of spartan > "spartan", "spare", and "barebones" all

Re: [web2py] Re: Web3py

2019-04-23 Thread 黄祥
> > the web2py admin is different. The web3py one is much more spartan. But > the functions that need to be ported to zip/unzip apps are indentical. > not sure got the meaning of spartan tested last commit, all errors above gone (_dashboard and _scaffold) just a note for default

Re: [web2py] Re: Web3py

2019-04-22 Thread Massimo Di Pierro
my mistake. I added it. the web2py admin is different. The web3py one is much more spartan. But the functions that need to be ported to zip/unzip apps are indentical. On Monday, 22 April 2019 17:14:07 UTC-7, 黄祥 wrote: > > 127.0.0.1 - - [22/Apr/2019 03:08:12] "GET /dashboard HTTP/1.1" 303 0 >>

Re: [web2py] Re: Web3py

2019-04-22 Thread 黄祥
> > 127.0.0.1 - - [22/Apr/2019 03:08:12] "GET /dashboard HTTP/1.1" 303 0 > 127.0.0.1 - - [22/Apr/2019 03:08:12] "GET /_dashboard/static/index.html > HTTP/1.1" 404 459 > 127.0.0.1 - - [22/Apr/2019 03:08:56] "GET /_dashboard/ HTTP/1.1" 404 459 > 127.0.0.1 - - [22/Apr/2019 03:09:31] "GET

Re: [web2py] Re: Web3py

2019-04-22 Thread 黄祥
> > Traceback (most recent call last): > File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 460, 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

Re: [web2py] Re: Web3py

2019-04-22 Thread Massimo Di Pierro
I will work on auth. I could use some help with _dashboard. The "create app", "upload app" and "pack app" buttons do not work but this logic should work the same as in web2py. Should be easy to backport if somebody can help this week. Massimo On Sunday, 21 April 2019 09:32:27 UTC-7, Kevin

Re: [web2py] Re: Web3py

2019-04-21 Thread 黄祥
Traceback (most recent call last): File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 460, 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_module return

Re: [web2py] Re: Web3py

2019-04-21 Thread Kevin Keller
I was wrong.. Found a recent integration with bottle and oauthlib.. https://github.com/thomsonreuters/bottle-oauthlib/blob/master/README.md Now we only need to figure out jwt and easy rest crud.. Which bottle is perfect for and finally use the before mentioned openapi generator with bottle and

Re: [web2py] Re: Web3py

2019-04-21 Thread Kevin Keller
Authentication + authorization and documentation of endpoints are actually the hardest part. There is a. Flask based framework called connexxion which asks you to create the openapi spec before the code which has jwt and oauth2 build in as. Well. Then there are flask Rebar which can use jwt and

Re: [web2py] Re: Web3py

2019-04-20 Thread 黄祥
scaffolding app would be nice to have example of authentication (user registration, login and logout) and to update the data, e.g. update todo list on todo app just wondering, if form used manually using javascript, is the field validation on pydal, still can work ? e.g. requires=IS_NOT_EMPTY()

Re: [web2py] Re: Web3py

2019-04-20 Thread Massimo Di Pierro
I have been looking more into veutify. I have some reservations. I think a good CSS framework (for web3py) should be JS agnostic, even if the examples use vue.js. I think effects should be done in CSS only, not in JS. vuetify does not follow this rule. Also vuetify is really designed for use

Re: [web2py] Re: Web3py

2019-04-20 Thread Anthony
On Friday, April 19, 2019 at 6:41:34 PM UTC-4, Carlos Cesar Caballero wrote: > > 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

Re: [web2py] Re: Web3py

2019-04-20 Thread Anthony
On Friday, April 19, 2019 at 5:47:31 PM UTC-4, Carlos Cesar Caballero wrote: > > Yes, but that's not about the number of code lines, that's about the code > organization and readability. > At least with the example given, I don't see a lot of difference in organization or readability

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

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

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 > > | / / / / __ |/___ \/ __ \ \/ / > | | / / /_ / /_/ /___/ / /_/ /\ / > | | /| / / __/ / __ //__ / / / / > | |/ |/ / /___/ /_/ /___/ / / / / >

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

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

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

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

  1   2   >