[web2py] Fwd: (DRAFT) Beta Launch of Cloud Developmet Platform with Support for PY4WEB, WEB2PY, EMMETT and others

2024-05-10 Thread Kevin Keller
Hello everyone, We (John and I) would like to invite you to try our Cloud Development Platform, which we call WEBSSON , which lets you create PY4WEB, WEB2PY and EMMETT environments fully hosted in the Cloud in a matter of clicks and use a Cloud based

Re: [web2py] Rocket bug in web2py 2.21.1?

2021-08-08 Thread Kevin Keller
Use the newest version from github. There the issue is fixed. Am So., 8. Aug. 2021 um 21:32 Uhr schrieb 'jimka...@yahoo.com' via web2py-users : > Hi, > Finally migrated to 2.21.1 on macOS BigSur, using Python 3.9.6 > > Good news is that everything so far seems to work fine but there is a >

Re: [web2py] How to read image in blob format from a existing db

2021-05-19 Thread Kevin Keller
I filed a bug report for this on the pydal and py4web repo. Am Di., 18. Mai 2021 um 20:45 Uhr schrieb Kevin Keller : > Potentially. I woukd file a problem in github and use raw sql as > workaround for now. > > Adding the py4web community to this > > > > > &g

Re: [web2py] How to read image in blob format from a existing db

2021-05-18 Thread Kevin Keller
8\x1c4l\x04\x84\xce 0\x13\xc6\x01\r\xdd\xd0' > > > Cheers > > -- > Sent from Canary <https://canarymail.io> > > On martes, may. 18, 2021 at 1:51 p. m., Kevin Keller > wrote: > I think you have to convert the image file to binary data before saving > tad blob etc..? >

Re: [web2py] How to read image in blob format from a existing db

2021-05-18 Thread Kevin Keller
I think you have to convert the image file to binary data before saving tad blob etc..? https://pynative.com/python-mysql-blob-insert-retrieve-file-image-as-a-blob-in-mysql/ On Tue, May 18, 2021, 19:04 Chris wrote: > Hi, i’m trying to read images from a existing sqlite db. For some reason >

Re: [web2py] QR code generation from markmin

2021-03-02 Thread Kevin Keller
Hey Peter! I don't see any code in the markmin python script that could generate qr codes. I think the ones that are there are static. You can use a qr code generator lib with python and combine with markmin qr Syntax though. I think. On Mon, Mar 1, 2021, 15:59 Peter Woolf wrote: > Hello,

Re: [web2py] py4web jwt ?

2021-03-01 Thread Kevin Keller
a < > ml.richard.vez...@gmail.com> ha scritto: > >> Thanks >> >> On Fri, Feb 26, 2021 at 1:43 PM Kevin Keller wrote: >> >>> Look for the email thread with the following title in the py4web google >>> group and you ll find a way: >>> >>&

Re: [web2py] py4web jwt ?

2021-02-26 Thread Kevin Keller
ssion_token as jwt, no? >> >> On Thursday, February 20, 2020 at 10:00:00 PM UTC+3, Kevin Keller wrote: >>> >>> With a Spa the routing is done in Javascript in the Browser. >>> >>> So Javascript or Vue / React etc need. To check if the user has a ac

Re: [web2py] Re: auth.signature not working

2021-02-15 Thread Kevin Keller
How did you solve it? On Mon, Feb 15, 2021, 17:33 António Ramos wrote: > Thank you Jim but i found the problem. > My fault this time. > Thank you again. > > PS. Its just me or this forum is abandoned? Should i go elsewhere for help > ? > > Em seg., 15 de fev. de 2021 às 15:46, António Ramos >

Re: [web2py] PostgreSQL error on db.currs_stats[0] = {..}

2020-11-14 Thread Kevin Keller
Probably also something for @Leonel Câmara . Can you compare the raw sql of Mysql and PostgreSQL of what you are trying to do please? And post it here, then we can probably see what needs to be done. Thanks! Am Sa., 14. Nov. 2020 um 10:04 Uhr schrieb Dmitrii Ermolaev <

Re: [web2py] PostgreSQL - column "COLUMN" must appear in the GROUP BY clause or be used in an aggregate function LINE 1:

2020-11-14 Thread Kevin Keller
I think @Leonel Câmara would know best what is going on here. My uneducated guess is that you are using Postgresql12 and that there were some major changes from postgres11 to postgres12. Either Pydal has not caught up yet, or since pydal is not strictly an ORM, you just have to actually adapt

Re: [web2py] web2py docker container

2020-09-21 Thread Kevin Keller
Thank you!! On Mon, Sep 21, 2020, 18:47 Christian Varas wrote: > Thanks! Is really useful :) > > El El lun, 21 de sep. de 2020 a la(s) 13:43, cabildocl > escribió: > >> Hello, I share with you the web2py docker container. include web2py, >> python3, nginx and gunicorn. >> >> >>

Re: [web2py] Custom JWT login -> Login validated user without a password.

2020-09-14 Thread Kevin Keller
Nope, its not stupid. At least not as long as you store data in the local database of your app that is not stored in the directory of your identity management system. Then you would just duplicate data and I would just use the claims from the IDM to work in the app. But if your app stores data

Re: [web2py] deploy web2py with gunicorn, Nginx y HTTPS

2020-09-12 Thread Kevin Keller
Gracias! Am Sa., 12. Sept. 2020 um 17:10 Uhr schrieb cabildocl : > I wrote an article in Spanish on how to deploy web2py with https > > > http://cabildocl.blogspot.com/2020/09/implementar-web2py-con-gunicorn-nginx-y.html > > > -- > Resources: > - http://web2py.com > - http://web2py.com/book

Re: [web2py] Custom JWT login -> Login validated user without a password.

2020-09-11 Thread Kevin Keller
I am not sure I understand what you have done completely, but let me give it a shot at the point where you ask how to validate a jwt token. The IDP that created the JWT token will sign the JWT token. So you need to send the token e.g. via POST to web2py and then use pyjwt to verify the token with

[web2py] QuicknDirty How-To for SSO between web2py and py4web with KeyCloak

2020-08-31 Thread Kevin Keller
In web2py put this in your db.py: # Define oauth application id and secret. Kcloak_CLIENT_ID='' Kcloak_CLIENT_SECRET="X" ## import required modules try: import json except ImportError: from gluon.contrib import simplejson as json from gluon.contrib.login_methods.oauth20_account

Re: [web2py] Re: Administration disable communication is insecure

2020-08-31 Thread Kevin Keller
linux server. Here is the last email that I wrote how to do it with ubuntu 20.04: Kevin Keller Do., 20. Aug., 15:45 (vor 11 Tagen) an web2py-users Hey everyone, I struggled last night to setup web2py on my VPS Linux server which uses ubuntu 20.04. I had to update the script with multiple edits

[web2py] German Translation

2020-08-20 Thread Kevin Keller
I am currently updating web2pys German translation of the sample app. Currently its a mix of German, Catalan and English. Will push some updates soon, but thought to just already send a heads up. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Updted Nginx+Ubuntu20.04+web2py script

2020-08-20 Thread Kevin Keller
Hey everyone, I struggled last night to setup web2py on my VPS Linux server which uses ubuntu 20.04. I had to update the script with multiple edits. Most of them around new pip syntax, updated requirements of nginx for self-signed certs and updated package names. I will create a pull request

Re: [web2py] Re: modules: NameError("name 'reload' is not defined",)

2020-08-18 Thread Kevin Keller
I see there is an open issue on git from 8 days ago: https://github.com/web2py/web2py/issues/2341 So just FYI it is already reported. Its a strange error. Must be somewhere in the module save function and after save it should trigger the compile which obviously does not work anymore either.

Re: [web2py] Re: modules: NameError("name 'reload' is not defined",)

2020-08-18 Thread Kevin Keller
Same issue here with newest web2py Am Di., 18. Aug. 2020 um 07:08 Uhr schrieb 'Annet' via web2py-users < web2py@googlegroups.com>: > I reported the same problem some time ago. > > When I edit a module and save it I get this nameError. Since I am > importing the modules into other applications I

Re: [web2py] Re: Has anybody had experience with Visual Studio Code Remote Development?

2020-08-10 Thread Kevin Keller
Ok cool Andrew. Really good to know. Will give another try then. On Tue, Aug 11, 2020, 02:20 AGRogers wrote: > Thanks Villas. That's encouraging. > > On Tue, 11 Aug 2020, 2:17 am villas, wrote: > >> In the absence of other replies... >> >> Massimo has mentioned (in the py4web group) >>

Re: [web2py] Re: Has anybody had experience with Visual Studio Code Remote Development?

2020-08-10 Thread Kevin Keller
I tried to use it once remotely, not even web2py related, but there were quite some hoops to jump through, as far I as remembered. You have to add some custom code to your app to make communicate etc. and I could not be bothered. Anyways, I went back to just use vim with several plugins that

[web2py] Re: 2.19.1 redis sessions problem

2020-06-18 Thread Kevin Keller
Is there any update on this or will we not be able to use redis again? ;) I see there is a redis pull request from last year too. On Saturday, 28 March 2020 11:30:11 UTC+1, Jose C wrote: > > Just started testing version 2.19.1 (prior to upgrading) with py3.6 and it > appears that when sessions

Re: [web2py] Re: RestAPI: how to restrict query results to data belonging to logged in user?

2020-05-27 Thread Kevin Keller
The "proper" way would be to define "scopes" in your application. Scopes define who has access to which data. You can also call it roles or tags or whatever. Scopes is the term that is used by OAuth/OpenID connect, which is usually used to secure APIs. Normally you would get an OpenID (OIDC) ID

Re: [web2py] Re: Credential (email) encryption

2020-05-22 Thread Kevin Keller
transparently. You would need to check your database features and configuration for that and also configure web2py to use the database key when connecting etc. On Fri, 22 May 2020, 12:57 Kevin Keller, wrote: > Without having checked the code, i am pretty sure that the builtin Auth > Modul of

Re: [web2py] Re: Credential (email) encryption

2020-05-22 Thread Kevin Keller
Without having checked the code, i am pretty sure that the builtin Auth Modul of Web2py expects a plaintext email in the username field when checking the credentials. I suppose now it fails as the encrypted email value does simply not match the plaintext one. You would need to modify the Auth

Re: [web2py] Re: debian 10 : mysql Ver 8.0.19 f : mysql_secure_installation

2020-04-22 Thread Kevin Keller
I think there is an issue with web2py not supporting mysql version 8 and above. On Wed, 22 Apr 2020, 03:20 Jim S, wrote: > In your second post above you're connecting to mysql with user usertest > and a password. > > In you web2py example you're connecting with user root. > > I'm guessing

Re: [web2py] Installation

2020-04-05 Thread Kevin Keller
Thanks for reporting this. Maybe there is something wrong with the one click installer at the moment. Just download the source version for normal users (py3) extract it and run python3 web2py.py. That should get you going. On Sun, 5 Apr 2020, 12:20 David Swarbrick, wrote: > I also tried

Re: [web2py] DId.app auth is good for web2py apps ?

2020-03-13 Thread Kevin Keller
You need to change your okta tenant URLs and the client Id and Secret. I still points to my tenant :) On Thu, Mar 12, 2020 at 3:05 PM Kevin Keller wrote: > This goes into your db.py and you also need to install okta_jwt via pip. > > I still haven figured it out how to terminate th

Re: [web2py] DId.app auth is good for web2py apps ?

2020-03-12 Thread Kevin Keller
Kevin Keller wrote: > Okta_CLIENT_ID='0x' > Okta_CLIENT_SECRET="x" > > ## import required modules > try: > import json > except ImportError: > from gluon.contrib import simplejson as json > from gluon.contrib.login_methods.oauth20_account import OAuthAcc

Re: [web2py] DId.app auth is good for web2py apps ?

2020-03-12 Thread Kevin Keller
8000/OktaWF/default/index') session.renew(clear_session=True) session.forget(response) return next auth.settings.login_form=OktaAccount() On Wed, Mar 11, 2020 at 4:01 PM António Ramos wrote: > Thank you Kevin , please share... > > > Em qua., 11 de mar. de 2020 às 14:53, Kevin

Re: [web2py] DId.app auth is good for web2py apps ?

2020-03-11 Thread Kevin Keller
Looks nice enough, though it is missing an easy way to configure scopes and claims. It dont see it anywhere in their free account actually. I would probably rather advice to go with Auth0 or Okta. I work for Okta so that is why I have integrated web2py with Okta in a sample app. I can send you

Re: [web2py] Re: The PyDal/Yatl Web2Py/Py4web Emmet/Weppy Ecosystem

2020-02-27 Thread Kevin Keller
Hey Jim, Weppy is now re-named to Emmet: https://github.com/emmett-framework/emmett On Thu, Feb 27, 2020 at 6:38 PM Jim S wrote: > Kevin > > I'm curious about your comment on Weppy/Emmet evolving. Looks like there > has been only 1 commit in the past 16 months or so (it is

[web2py] The PyDal/Yatl Web2Py/Py4web Emmet/Weppy Ecosystem

2020-02-27 Thread Kevin Keller
I was thinking, just by how often I go back to Web2Py, what an excellent framework it is and the progress of Py4Web is also exciting, while also noticing how the pydal/yatl based framework Weppy/Emmet is evolving, that really there is no need anymore to think in terms of the future of a single

[web2py] Py4Web "tags" should be SCOPES

2020-02-24 Thread Kevin Keller
Hey, I would like to suggest, that if Py4Web is supposed to be an API first framework that it adheres to modern auth standards right out of the gate. Apart from having the ability to provide JWT access tokens and more Oauth2 plugins then just facebook and google ( all things I started to

Re: [web2py] py4web jwt ?

2020-02-20 Thread Kevin Keller
With a Spa the routing is done in Javascript in the Browser. So Javascript or Vue / React etc need. To check if the user has a access or id_token and if not redirect to the login page to obtain it. Doing crud and be able to secure those crud rest routes will be critical for productivity. So we

[web2py] Re: Expose db.auth_user table via rest api

2020-02-18 Thread Kevin Keller
OPTIONS(*args,**vars): print "OPTION called" return True return dict(GET=GET,POST=POST,PUT=PUT,DELETE=DELETE,OPTIONS=OPTIONS) On Tuesday, 18 February 2020 11:47:22 UTC-8, Kevin Keller wrote: > > I didnt know I need to post the data as form data. > > Now it work

[web2py] Re: Expose db.auth_user table via rest api

2020-02-18 Thread Kevin Keller
) return dict(db[table_name].validate_and_insert(data)) On Tuesday, 18 February 2020 11:02:20 UTC-8, Kevin Keller wrote: > > Even when I manually try to convert the post data I get the error: > > def POST(table_name,**vars): > restdata=request.vars > >

[web2py] Re: Expose db.auth_user table via rest api

2020-02-18 Thread Kevin Keller
Even when I manually try to convert the post data I get the error: def POST(table_name,**vars): restdata=request.vars return dict(db[table_name].validate_and_insert(restdata.decode("utf-8"))) On Tuesday, 18 February 2020 10:01:14 UTC-8, Kevin Ke

[web2py] Re: Expose db.auth_user table via rest api

2020-02-18 Thread Kevin Keller
eturn dict(content=parser.response) def POST(table_name,**vars): return dict(db[table_name].validate_and_insert(**vars)) return locals() On Tuesday, 18 February 2020 10:01:14 UTC-8, Kevin Keller wrote: > > When creating a simple rest api with web2py: > > @r

[web2py] Expose db.auth_user table via rest api

2020-02-18 Thread Kevin Keller
When creating a simple rest api with web2py: @request.restful() def api(): def GET(*args, **vars): parser=db.parse_as_rest('auto',args,vars) return dict(content=parser.response) def POST(table_name,**vars): return

Re: [web2py] Re: Looking for web2py developer for Italian small company

2020-02-13 Thread Kevin Keller
Being self contained, simple and with smartgrid, integrated Auth, and even wiki engine and now again with updated pyrtf web2py could still have great future as a a framework for company internal web database apps (also easy field calculations) to replace I. E. Lotus notes or ms access apps and

Re: [web2py] py4wb simplification

2020-02-02 Thread Kevin Keller
will try do it and > post findings. :-) > > On Sunday, 2 February 2020 03:43:40 UTC-8, Kevin Keller wrote: >> >> Hey, >> >> Regarding the now code . >> >> I think its awesome. >> >> Immediate question is though, how I could replace py4web bu

Re: [web2py] py4wb simplification

2020-02-02 Thread Kevin Keller
Hey, Regarding the now code . I think its awesome. Immediate question is though, how I could replace py4web build in auth with an outside IDM using OIDC/Oauth2? I understand since Py4web is so modular now, I can figure it out myself with 3rd party components. But I think it would be a common

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-23 Thread Kevin Keller
t;>>> >>>>> Now I have to a small adpatation to my app because modsecurity has a >>>>> new version and they changed some things, and I was thinking that maybe I >>>>> can port all to py4web and have a fresh new start, but I'm not sure..., I >>

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-22 Thread Kevin Keller
ient-side javascript much yet, other than jquery. > > -Jim > > On Wednesday, January 22, 2020 at 4:31:11 PM UTC-6, Kevin Keller wrote: >> >> Jim, >> >> Could your helpers be considered to be added to thr py4web code base? >> >> If you say you

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-22 Thread Kevin Keller
Jim, Could your helpers be considered to be added to thr py4web code base? If you say you have a sqlform.grid equivalent or something in that direction? I think there was mtable that should take the spot, but haven't seen any examples yet or at least none thst would replace a sqlform or

Re: [web2py] Re: warning: new pydal

2020-01-06 Thread Kevin Keller
In postresql? What issues do you have? On Mon, Jan 6, 2020 at 7:24 PM Leonel Câmara wrote: > I seem to be having quite a few issues with json and jsonb fields. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code)

[web2py] Took Py4Web on a spin.. few errors

2019-12-17 Thread Kevin Keller
Hey, I tried py4web from github today on ubuntu 18.04 python 3.6.9. Using the app scaffold creating a new app: works good adding new fields in models, works ok: sometimes I get the error "table persons already exists". I only have that table persons. I need to restart. Using Py4Web to

Re: [web2py] Re: Web2py with python 3.8.0

2019-11-29 Thread Kevin Keller
Maybe, it wasn't on the radar of the django developers either and had to be fixed in the framework after python3 was released. Happens sometimes I suppose, hard to keep up with depreciation of functions and the impact on a framework. Anyways, I suppose we juar have to file the bug reports and

Re: [web2py] Re: Web2py with python 3.8.0

2019-11-29 Thread Kevin Keller
Some deprecated functions have been removed in 3.8 finally. Hence py4web and web2py have to adapt to the new situation. Django went through the same process already. On Fri, 29 Nov 2019, 14:11 Woody, wrote: > What is causing the problem with Python 3.8? Is it causing problems with > other

[web2py] py4web

2019-10-10 Thread Kevin Fonseca
hi, i would like to now what will happen with web2py when py4web is implemented? -- 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] problems running PY4WEB

2019-10-10 Thread Kevin Fonseca
i am having problems when i tried to run PY4WEB de error log is : 2019-10-10 13:23:10,259: Error running WSGI application 2019-10-10 13:23:10,277: FileNotFoundError: [Errno 2] No such file or directory: 'apps/__init__.py' 2019-10-10 13:23:10,277: File

[web2py] Py4Web Rest API Test

2019-07-26 Thread Kevin Keller
Hello, this is in my controller: from pydal.restapi import RestAPI, Policy policy = Policy() policy.set('superhero', 'GET', authorize=True, allowed_patterns=['*']) policy.set('*', 'GET', authorize=True, allowed_patterns=['*']) policy.set('*', 'PUT', authorize=False) policy.set('*', 'POST',

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Kevin Keller
eme will it use ? >> >> Regards >> >> Em qua, 24 de jul de 2019 às 09:44, Kevin Keller >> escreveu: >> >>> Would live to try it today. >>> >>> Is there documentation how I can enable to require auth and use JWT for >>> the

[web2py] Re: web3py -> py4web

2019-07-24 Thread Kevin Keller
Would live to try it today. Is there documentation how I can enable to require auth and use JWT for the PyDal REST API? On Wednesday, 24 July 2019 07:40:27 UTC+2, Massimo Di Pierro wrote: > > OK. I know. I am not good with names. > But there are lots of requirements to be fulfilled. >

Re: [web2py] Re: Anthony was right... web3py has a big naming conflict

2019-07-22 Thread Kevin Keller
+1 for Massimo On Mon, 22 Jul 2019, 19:05 António Ramos, wrote: > Just call it > *Massimo* > It is very well deserved right ??? > > Em seg, 22 de jul de 2019 às 17:42, Ivica Kralj > escreveu: > >> I can't let gluon go :) so how about >> >> >> Gluonic >> >> >> trademark seems to be available

[web2py] Scaffold Web2py Models and SQLForm.smartgrid

2019-05-19 Thread Kevin Keller
Hello, has anyone written a scaffolder ideally web based, where a non technical user can define tables and fields including relations and the new app getes generated and put into the applications folder or by creating a new controller with SQLFORM.smartgrid on the tables defined by the user?

Re: [web2py] Re: Web3py

2019-04-21 Thread Kevin Keller
and we are good to go. On Sun, 21 Apr 2019, 12:05 Kevin Keller, wrote: > 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 cod

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

[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] Enjoying web2py

2019-04-18 Thread Kevin Keller
Just wanted to say that im working on app on an old Acer one 32 bit 2gb machine with web2py, midori as Browser and Vim as code editor and I'm enjoying it a lot! Thanks for creating such a great batteries included framework. I barely had to touch html so far to get the prototype working and I

Re: [web2py] Re: Problem with oracle query

2019-04-16 Thread Kevin Keller
When a table is created in Oracle, it is always created in uppercase letters, if not created by using quotes. create table test= TEST create table "test" = test it is very likely that the table when created, was created without quotes and hence the table name is saved in uppercase letters. Now

[web2py] Thoughts on Rules+Workflow engine

2019-04-15 Thread Kevin Keller
Hey everyone, I am pondering currently to create a web app that can create dynamic forms, which when submitted create a "document". The forms can be configured by users. Each document is attached to a workflow with different statuses, i.e. "rejected" "approved" After submission and during

Re: [web2py] Re: Does web2py support SSE (server sent events) from HTML5?

2019-04-14 Thread Kevin Keller
Whats wrong with polling every so often? On Sun, 14 Apr 2019, 19:41 Kevin Keller, wrote: > Should do it > > https://www.tornadoweb.org/en/stable/wsgi.html > > On Sun, 14 Apr 2019, 09:18 Massimo Di Pierro, > wrote: > >> I do not know. >> >> On Satur

Re: [web2py] Re: Does web2py support SSE (server sent events) from HTML5?

2019-04-14 Thread Kevin Keller
Should do it https://www.tornadoweb.org/en/stable/wsgi.html On Sun, 14 Apr 2019, 09:18 Massimo Di Pierro, wrote: > I do not know. > > On Saturday, 13 April 2019 12:06:46 UTC-7, João Matos wrote: >> >> It would be great if web3py would support SSE. >> >> For now, the websocket solution would

Re: [web2py] YATL + pyDAL with Flask.. template not rendering with right variable

2019-04-14 Thread Kevin Keller
.py and other upcoming modules > framework agnostic. If you have ideas about how to best do that, please let > me know > > On Saturday, 13 April 2019 10:03:49 UTC-7, Kevin Keller wrote: >> >> Changing the import headers of form.py from web3py like this: >> >> i

Re: [web2py] YATL + pyDAL with Flask.. template not rendering with right variable

2019-04-13 Thread Kevin Keller
u do with bottle is easily transferrable to Flask or Pyramid as well with minor modifications.. On Sat, Apr 13, 2019 at 6:25 PM Kevin Keller wrote: > Ok got it.. just forgot to actually use yatl right... > > from flask import Flask > from yatl import render, SPAN > app = Flask(__name

Re: [web2py] YATL + pyDAL with Flask.. template not rendering with right variable

2019-04-13 Thread Kevin Keller
imiters="{{ }}") app.run(host='0.0.0.0',use_reloader=False) On Sat, Apr 13, 2019 at 6:06 PM Kevin Keller wrote: > return render(example,context={'rows':rows}, delimiters="{{ }}") > > Also does not work.. > > On Sat, Apr 13, 2019 at 5:47 PM Kevin Keller wrote:

Re: [web2py] YATL + pyDAL with Flask.. template not rendering with right variable

2019-04-13 Thread Kevin Keller
return render(example,context={'rows':rows}, delimiters="{{ }}") Also does not work.. On Sat, Apr 13, 2019 at 5:47 PM Kevin Keller wrote: > I only get the h1 Hello World in the browser, but I struggle to pass over > values to the templates with yatl > > is context=(rows

[web2py] YATL + pyDAL with Flask.. template not rendering with right variable

2019-04-13 Thread Kevin Keller
I only get the h1 Hello World in the browser, but I struggle to pass over values to the templates with yatl is context=(rows=rows) the correct way? See the last return statement. The print command outputs "Chair" as expected. The HTML file should output Hello! Chair from flask import

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 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 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 Kevin Keller
n 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 already wondering about changing bottle with flask, but I dont know >> if

Re: [web2py] Custom validator broken in 2.18.4, working in 2.17.2

2019-04-05 Thread Kevin Keller
Could you create a ticket for this please? https://github.com/web2py/web2py/issues Thanks! On Thu, Apr 4, 2019 at 10:52 PM David Manns wrote: > The table in question has a field: > > Field('Paiddate', 'date', requires = [IS_EMPTY_OR(IS_DATE()), > IS_EMPTY_OR(IS_MEMBERSHIP_YEAR_END())]), >

[web2py] Re: Validation messages of extra fields in auth_user don't comply with available translations

2019-04-05 Thread Kevin Keller
Wow that must be annoying. Did you find any workaround? On Thursday, 4 April 2019 21:25:10 UTC+2, João Matos wrote: > > When creating extra fields for auth_user, the validation messages for > those fields are always in English. They don't comply with the translations > available. > > This

[web2py] Re: New International Telegram Support Group

2019-04-05 Thread Kevin Keller
Good group, really helped me to advance my proeject so much quicker. In fact, couldnt have gotten here without them. Thanks! On Thursday, 4 April 2019 22:40:51 UTC+2, Ari Lion BR Sp wrote: > > Hey, Carlos, thanks for having created this group. Now I can solve my > questions Live > > :-) > > >

Re: [web2py] Re: Error Ticket Includes Sensitive Information

2019-04-04 Thread Kevin Keller
Can errror messags and tickets in production not be restricted to server log files and disabled to be displayed for users or at least the ticket itself made inaccessbile to normal users? On Thu, Apr 4, 2019 at 4:38 PM zm wrote: > For what it's worth, I did post to the developer list, however it

Re: [web2py] Re: Newst Trunk Edition (4th April 2019) rocket wont start

2019-04-02 Thread Kevin Keller
Overcame the issue for now using apache and mod_wsgi with self-signed cert.. But something is definietly wrong with the rocket server at the moment.. On Tue, Apr 2, 2019 at 10:50 AM Kevin Keller wrote: > Same on a totally different fresh ubuntu server with python 3.6.. with > versio

[web2py] Re: Newst Trunk Edition (4th April 2019) rocket wont start

2019-04-02 Thread Kevin Keller
Same on a totally different fresh ubuntu server with python 3.6.. with version from github.. On Tuesday, 2 April 2019 10:44:24 UTC+2, Kevin Keller wrote: > > On no.. it doesnt... > > On Tuesday, 2 April 2019 10:42:52 UTC+2, Kevin Keller wrote: >> >> Reverting to the v

[web2py] Re: Newst Trunk Edition (4th April 2019) rocket wont start

2019-04-02 Thread Kevin Keller
On no.. it doesnt... On Tuesday, 2 April 2019 10:42:52 UTC+2, Kevin Keller wrote: > > Reverting to the version from the zip file on home page ("For Users") > works.. > > On Tuesday, 2 April 2019 10:32:16 UTC+2, Kevin Keller wrote: >> >> Works fine o

[web2py] Re: Newst Trunk Edition (4th April 2019) rocket wont start

2019-04-02 Thread Kevin Keller
Reverting to the version from the zip file on home page ("For Users") works.. On Tuesday, 2 April 2019 10:32:16 UTC+2, Kevin Keller wrote: > > Works fine on windows10, python 3.7.1 without ssl and firing it up > locally.. > > On Tuesday, 2 April 2019 10:27:46

[web2py] Re: Newst Trunk Edition (4th April 2019) rocket wont start

2019-04-02 Thread Kevin Keller
Works fine on windows10, python 3.7.1 without ssl and firing it up locally.. On Tuesday, 2 April 2019 10:27:46 UTC+2, Kevin Keller wrote: > > Centos7 > Python 3.7.1 > > git cloning this repo just now, generating ssl certs and then starting up > > like this: > python3.

[web2py] Newst Trunk Edition (4th April 2019) rocket wont start

2019-04-02 Thread Kevin Keller
Centos7 Python 3.7.1 git cloning this repo just now, generating ssl certs and then starting up like this: python3.7 web2py.py -k myapp.key -c myapp.crt -i 0.0.0.0 -p 8000 trhows this after punching id admin pass: Exception in thread Thread-2: Traceback (most recent call last): File

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

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

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

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

Re: [web2py] Re: Web3py reboot

2019-03-18 Thread Kevin Keller
thought. On Mon, Mar 18, 2019 at 3:47 AM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > 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: >> >>

[web2py] Web3py reboot

2019-03-17 Thread Kevin Keller
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 that would be able to justify the rename and a reboot. That would also mean to update the web page and various resources. The reason is simple : It seems

Re: [web2py] error 'module' object has no attribute 'pbkdf2_hmac' when trying to add user (Ver 2.18.4)

2019-03-15 Thread Kevin Keller
Can you also test it with python3 please? On Fri, Mar 15, 2019 at 5:11 PM Stephan wrote: > Hello there, > > > when trying to add a user in the empty user table via appadmin, I get this > error: *'module' object has no attribute 'pbkdf2_hmac'* > Seems to be related to password encryption? > > >

Re: [web2py] Web2py Windows edition with 3.x Interpreter

2019-03-12 Thread Kevin Keller
Whats the problem with pydal John? On Tue, Mar 12, 2019 at 5:37 PM Jitun John wrote: > Apologies for the delay... > I think my program has issues with new version of pydal 19.02, while it > works fine on pydal 18.08 > > Thanks Nico for all the hard work. > I will test and let you know soon. > >

[web2py] OAuth2 Provider for Web2py

2019-03-09 Thread Kevin Keller
Would anyone know how I can use web2py as an oauth2 provider? I would like to use Oracle Jet as frontend and web2py as backend via building a rest API. Oracle Jet supports OAuth2 natively to easily create CRUD models that are protected with Oauth2. Otherwise I would need to create a rest call

Re: [web2py] Re: Poweredby error

2019-03-08 Thread Kevin Keller
Hey Daniel, we need a bit more details to be able to see what is going on. We can not see what the ticket text says from the link that you posted. Please share the full traceback. Give us a glimbs what you want to achieve and what you have already done. Which models/functions are doing the main

[web2py] Re: web2py 2.18.3 is OUT

2019-03-04 Thread Kevin Keller
Just tested it.. works fine now. Your fix works. Thanks heaps! On Monday, 4 March 2019 18:45:27 UTC+1, Leonel Câmara wrote: > > Kevin I didn't test that, but this fix should indeed fix auth messages as > well since they're also LazyT objects that go into session.flash > -

[web2py] Re: web2py 2.18.3 is OUT

2019-03-04 Thread Kevin Keller
ahh it does fix it.. I applied your fix wrong.. Thanks!!! On Monday, 4 March 2019 18:40:08 UTC+1, Kevin Keller wrote: > > Create a sample app i.e. with the wizard or create a page that needs login > with the inbuild l

[web2py] Re: web2py 2.18.3 is OUT

2019-03-04 Thread Kevin Keller
Create a sample app i.e. with the wizard or create a page that needs login with the inbuild login form and try to login. The flash message will have the "b" in front off it.. Your fix may address the problem with the other flash messages, but not with the messages from the authapi.py On

  1   2   3   4   >