[web2py] Re: Front end framework

2024-02-16 Thread Massimo Di Pierro
I do not know how much different 4 and 5 are. Only the names of the classes in the forms may be an issue. I would recommend you try it with BS 5 and if you run into any issue it may be possible to address it with a new adapter or, maybe easier, a few lines of JS. On Monday 12 February 2024 at

[web2py] Re: Exception Error: 'Field' object has no attribute '__dir__'

2023-12-28 Thread Massimo Di Pierro
This is fixed in master, although I failed to reproduce. Thanks for reporting it and suggesting the fix. On Tuesday 12 December 2023 at 02:06:28 UTC-8 mostwanted wrote: > Is there something wrong with the upload functionality or is just my app? > > On Friday, December 8, 2023 at 7:39:49 PM

[web2py] Re: web2py 2.27.1 released

2023-12-28 Thread Massimo Di Pierro
yes. sorry had forgotten to push the tags. -- 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

[web2py] Re: is upgrade still experimental ?

2023-12-28 Thread Massimo Di Pierro
I think it will always be experimental. I do not want to take any responsibility for breaking your local installation. :-) On Monday 20 November 2023 at 06:20:33 UTC-8 Ramos wrote: > hello is the upgrade button still experimental ? > [image: image.png] > > > > [image: image.png] > > Regards >

[web2py] web2py 2.27.1 released

2023-11-16 Thread Massimo Di Pierro
web2py 2.27.1 was released - some linting and formatting - added support to Python 3.11 - fixed regexen and classname - removed a circular dependency -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] web2py 2.26.1 released

2023-10-29 Thread Massimo Di Pierro
Changelog: - adds support of python up to version 3.11 - fixes a bug with serialization of headers introduced in version 2.25.1 - improves handling of unstable db connections in the scheduler I remind you that py4web has been out for 5 years now as successor of web2py. It has the same template

[web2py] Re: web2py 2.25.1 - bug when running interactive shell?

2023-10-29 Thread Massimo Di Pierro
n a clean version of web2py: > > command: python web2py.py -B -S welcome -M > > web2py Web Framework > Created by Massimo Di Pierro, Copyright 2007-2023 > Version 2.25.1-stable+timestamp.2023.10.08.18.44.43 > Database drivers available: sqlite3, imaplib, pymysql, pyodbc > Tr

[web2py] Re: Web2py move to a new server resulted in this 'CommonDialect' object has no attribute 'eq'

2023-10-29 Thread Massimo Di Pierro
Traceback (most recent call last):" > > And so on. > > Here is a dump from the CLI. Everything below the traceback line remains > the same: > > Starting server... > web2py Web Framework > Created by Massimo Di Pierro, Copyright 2007-2023 > Version 2.25.1-stable+time

[web2py] Re: AssertionError: Header names/values must be of type str

2023-10-25 Thread Massimo Di Pierro
I believe this is now fixed in master, thanks to Carlos' suggestion. Can you please give it a try? On Monday, 23 October 2023 at 13:30:34 UTC-7 alex wrote: > Hi, Running web2py in virtualenviroment (python 3.9.5, it happens also in > python 3.10.10) > > > >

[web2py] Re: File Download Broken after Pull Request #2471

2023-10-25 Thread Massimo Di Pierro
I agree with you. I committed your proposed change to master. Please confirm this indeed fixes it and I will make another release. On Wednesday, 4 October 2023 at 08:26:46 UTC-7 CarlosDB wrote: > Hello, > > Today, I downloaded web2py from GitHub to start testing a future update. I > have

[web2py] Re: app not loading external python library

2023-10-25 Thread Massimo Di Pierro
Hello Alex, thank for reporting this problem. Is it only occurring with web2py 2.25.1? On Monday, 23 October 2023 at 14:05:15 UTC-7 alex wrote: > Hi, > > I am running web2py Version 2.25.1-stable in virtualenv (python 3.9.5, it > happens also in python 3.10.10) > > After activating the

[web2py] web2py 2.25.1

2023-10-08 Thread Massimo Di Pierro
Hello everybody, A new version of web2py, 2.25.1, is out. It contains some bug fixes, #2468 #2468 #2236, http headers sanitization, and fixes this vulenarbility https://jvn.jp/en/jp/JVN80476432/ (to be published soon). The vulnerabily does not affect most users. It is only in the optional

[web2py] web2py 2.24.1 released

2023-03-22 Thread Massimo Di Pierro
Hello everybody, web2py 2.24.1 has been released. Thanks to Leonel, Cem, and Mark for bug fixes including: - handling corrupt disk cache - broken application packaging - compare function logic -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: web2py 2.23.0 is giving a 403 error when I try to package my applications

2023-03-22 Thread Massimo Di Pierro
This has been fixed and 2.24.1 released. My apologies for overlooking the issue. On Sunday, 26 February 2023 at 05:51:30 UTC-8 pcwa...@comcast.net wrote: > I submitted an issue #2457 > a month ago. Please leverage that one. > > On Monday, February

[web2py] web2py 2.23.0 released

2022-12-26 Thread Massimo Di Pierro
Hello Everybody, My apologies for not being as engaged in this group as I used to be. web2py 2.23.0 was released. It includes: - DKIM support to emails - More configuration options for 2-factor authentication - Fixed an open redirect vulnerability - Some bugs fixes. Thanks everybody who

[web2py] Re: Git cloning web2py fails. Some issues with recursive cloning of ytal and pydal

2022-06-03 Thread Massimo Di Pierro
fixed. sorry for the mistake. On Tuesday, 31 May 2022 at 08:15:55 UTC-7 kell...@gmail.com wrote: > [image: image.png] > > Am Di., 31. Mai 2022 um 17:13 Uhr schrieb Kevin Keller >: > >> If you try to git clone web2py you will run into a strange error: >> >> Could you have a look Massimo

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

2022-05-07 Thread Massimo Di Pierro
Gunicorn creates processes, not threads so if you have multiple CPUs is takes advantage of them. Threads in python do not work as well because of the GIL and some times make things worse. On Sunday, 17 April 2022 at 16:29:34 UTC-7 xgp.l...@gmail.com wrote: > Hi all, > > What are the advantages

[web2py] Re: Pillow not imported by web2py-win

2022-05-07 Thread Massimo Di Pierro
can you try "pip install pillow" instead of putting it in C:\Users\Dave\web2py_win\web2py_win_2.21.1_py27\web2py\site-packages Not all packages like to be there and it can create problems. On Wednesday, 20 April 2022 at 00:26:48 UTC-7 snide...@gmail.com wrote: > I want to do some simple image

[web2py] Re: wev2py 2.22.1 is out

2022-02-13 Thread Massimo Di Pierro
I am very confused by this. I cannot find any change that could cause this change of behavior. Let me summarize to make sure I am understanding. You observed a change of behavior between 2.21.1 and 2.22 1. The change of behavior only manifests when you declare a default app in routers.py The

[web2py] Re: wev2py 2.22.1 is out

2022-02-13 Thread Massimo Di Pierro
mples/static/web2py_src.zip > the dal directory is empty and it breaks web2py. > > On Tuesday, February 1, 2022 at 4:59:33 AM UTC+1 Massimo Di Pierro wrote: > >> Hello Everybody, >> >> web2py 2.22.1 is out. >> >> Includes a few bug fixes and some

[web2py] wev2py 2.22.1 is out

2022-01-31 Thread Massimo Di Pierro
Hello Everybody, web2py 2.22.1 is out. Includes a few bug fixes and some changes including: - support for mail.sent(reply_to=...), thanks Ofa - fix a bug to enable redis with python3, thanks Leonel - upgraded to latest pydal and yatl Please report any breakages or issues. Massimo --

[web2py] Re: web2py.com down

2022-01-31 Thread Massimo Di Pierro
Indeed it was down. Somehow a file was corrupted. It is fixed now and upgraded to the latest version. On Monday, 31 January 2022 at 17:10:35 UTC-8 snide...@gmail.com wrote: > On Monday, January 31, 2022 at 1:03:28 PM UTC-8 Vlad wrote: > >> Indeed. >> >> On Sunday, January 30, 2022 at 10:20:06

[web2py] Re: belongs DAL syntax to search word contains in list:reference type Field

2021-10-10 Thread Massimo Di Pierro
this should work: nested_select = db(db.address.address.contains('boulevard'))._select(db.address.id) rows = db(db.customer.address.belongs(nested_select) ).select() Notice the _select instead of select makes it a nested select. Without _ it would give the same result with two explicit selects.

[web2py] Re: sqlhtml changes for sqlform.factory, not nice, 2.15.4 versus 2.18.5

2021-10-09 Thread Massimo Di Pierro
Looking at latest version 2.21. The change you mention is only for create forms, not edit forms. It basically say if a field is readable and not writable and has not value, it should not be displayed. It seems the correct behavior to me. Maybe in 1.18 the same logic was incorrectly applied to

[web2py] Re: this not runs . Field('materials', 'list:string','reference malzemeler')

2021-10-05 Thread Massimo Di Pierro
Hello Cassio, the Field constructor takes a name and a type. The type can be "list:reference malzemeler" (assuming you have a table malzemler). Also if you want the value to display something other than the id of a referenced record, you have to specify a record format for the referenced

[web2py] Re: Guidelines for choosing web2py or py4web

2021-10-05 Thread Massimo Di Pierro
I started both projects so I have an opinion on this topic. :-) Use py4web. web2py started in 2007 and it is now 14 years old. We learned a lot from it and py4web was thought of a successor. py4web and web2py share: - the same DAL - the same validators - the same template language (but a

[web2py] Re: Web2py site ssl expired

2021-10-03 Thread Massimo Di Pierro
Thanks for reminding me about this. I will renew it asap. On Wednesday, 22 September 2021 at 00:06:06 UTC-7 snide...@gmail.com wrote: > On Wednesday, September 15, 2021 at 2:39:19 AM UTC-7 dirman wrote: > >> >> Well same from my end. SSL expired >> On Saturday, September 11, 2021 at 2:04:38 PM

[web2py] Happy New Year

2020-12-31 Thread Massimo Di Pierro
I wish you all a happy new year. -- 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

[web2py] Re: 2to3

2020-12-31 Thread Massimo Di Pierro
you can use json-rpc2 with py4web but it is not built-into the framework. It does not need to be. I will post an example. py4web has jwt auth support although the syntax is a different. py4web is not as mature as web2py but very mature. The pros are the speed, the cleaner/leaner implementation

[web2py] Re: web2py 2.21.1 is OUT

2020-12-05 Thread Massimo Di Pierro
._validate() > File > "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py", > > line 1908, in _validate raise Exception(msg) > Exception: Validation error, field:email object at 0x3ebef34de910> > > This is the code of the co

Re: [web2py] web2py 2.21.1 is OUT

2020-12-05 Thread Massimo Di Pierro
ideo full practical example > with py4web, thanks > > [image: image.png] > > > El sáb, 28 nov 2020 a las 0:22, Massimo Di Pierro () > escribió: > >> >> Hello everybody, >> >> first of all my apologies to you all. I have been absent from this list &

[web2py] py4web new docs

2020-11-27 Thread Massimo Di Pierro
https://py4web.com/_documentation/static/en/index.html -- 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

[web2py] web2py 2.21.1 is OUT

2020-11-27 Thread Massimo Di Pierro
Hello everybody, first of all my apologies to you all. I have been absent from this list for some time, mostly because busy with py4web. I made a new release (2.21.1) of web2py which includes mostly small bug fixes but no new features. Please report any problem. At this point web2py has

[web2py] Re: pyDAL looks abandoned?

2020-08-17 Thread Massimo Di Pierro
yes Peewee is more actcie but I would not say pydal is abandoned. pydal is more mature and there were commits as recent as last week. In my opinion it needs very little work and I am reluctant to change things. Many of the issues are requests for new features, some are how to, or support for

[web2py] Re: Sending smses via my web2py

2020-08-05 Thread Massimo Di Pierro
Nice. will integrate with py4web. :-) On Wednesday, 5 August 2020 16:01:18 UTC-7, Jacinto Parga wrote: > > I use https://www.messagebird.com/ > It has a well documented api and works well with web2py > El miércoles, 5 de agosto de 2020 a las 20:58:51 UTC+2, Massimo Di Pierro

Re: [web2py] Re: WAF2PY 1.0

2020-08-05 Thread Massimo Di Pierro
> I have a custom py4web app (non vuejs) managing sensors and gpio (relés) > in a raspberry pi, so I am already familiar with it :). Py4web is so fast > and good! > > Cheers. > Chris, > > El mié., 5 ago. 2020 a las 13:12, Massimo Di Pierro (< > massimo.dipie...@gmail.

[web2py] Re: Sending smses via my web2py

2020-08-05 Thread Massimo Di Pierro
That list of service providers is very old. I sugget you use twilio On Wednesday, 5 August 2020 02:14:11 UTC-7, mostwanted wrote: > > > I am failing to send smses with my app following the book example ( > http://www.web2py.com/books/default/chapter/29/08/emails-and-sms#Emails-and-SMS) > >

[web2py] Important about py4web

2020-08-05 Thread Massimo Di Pierro
There has been a lot of progress in py4web. Aside for the fact that it is faster and leaner than web2py it has the following features: - simple pip install - uses same pydal syntax as web2py - uses same templates as web2py - has Form, Grid, Auth, Flash, T, Cache, Dashboard & Tickets (need more

Re: [web2py] Re: WAF2PY 1.0

2020-08-05 Thread Massimo Di Pierro
Fantastic! we need to port this to py4web. ;-) On Monday, 3 August 2020 15:53:22 UTC-7, Christian Varas wrote: > > Thank you. > > I just tested on Debian 10, but it should work for any other OS as long > the dependencies are met. > The line “apt-get install **dependencies**” I’m the

[web2py] py4web grid

2020-07-13 Thread Massimo Di Pierro
For some people, the lack of a server side form/grid in py4web has been problem and reason not to move. We now have a prototype: https://github.com/web2py/py4web/issues/228 Could use some help testing and feedback. Massimo -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: hi i want to send steam content from webcame to view

2020-07-08 Thread Massimo Di Pierro
Here https://github.com/mdipierro/videomonitor On Wednesday, 8 July 2020 15:22:34 UTC-7, Waleed Truman wrote: > > how can pass steam from video to view > > > in flask can > > )Response(frame, mimetype='multipart/x-mixed-replace; boundary=frame') > > please help me > -- Resources: -

[web2py] Re: Navigation to /appadmin returns "invalid function (default/index)"

2020-06-30 Thread Massimo Di Pierro
Did you get it from github? There was a recent change that maybe could have caused this: https://github.com/web2py/web2py/commit/cf76978a390a70dfc36d3bfe64818fc0cc7226f3 Could you please revert it and see if it fixes your problem? On Thursday, 25 June 2020 16:53:53 UTC-7, E T Bear wrote: > >

[web2py] Re: Navigation to /appadmin returns "invalid function (default/index)"

2020-06-30 Thread Massimo Di Pierro
On Thursday, 25 June 2020 16:53:53 UTC-7, E T Bear wrote: > > Running on an Ubuntu 16.04 LTS system, under Nginx server with WSGI > handler wsgihandler.py. Web2py updated to 2.20.4-stable. Using a > PostgreSQL database. > > Suddenly, I can't navigate to /appadmin nor to /admin/..., get

[web2py] Re: Column auth_user.id not found BUT the column exists.

2020-06-30 Thread Massimo Di Pierro
Somehow the table in db contains the field but the model does not. We need to see you model. On Tuesday, 23 June 2020 07:10:32 UTC-7, Diego Tostes wrote: > > > I am getting this error: > > Traceback (most recent call last): > File "/home/rebec/web2py/gluon/restricted.py", line 227, in

[web2py] Re: two Database syncrho

2020-06-30 Thread Massimo Di Pierro
Yes. Only on PostgreSQL, MySQL and Firebird. Assuming the feature has not been broken over time, I do not know of anybody who used it. On Thursday, 11 June 2020 12:51:48 UTC-7, Ari Lion BR Sp wrote: > > Hi to all, > > I am trying to understand how to use the below feature: > >

[web2py] Re: streamed pyfpdf is stored with wrong fileencoding when using python3

2020-06-30 Thread Massimo Di Pierro
Try a few things things: 1) set content type to "application/*pdf"* 2) set content type to "application/*pdf**; charset=latin1"* *3) * *from io import BytesIOreturn BytesIO(pdf.output(dest='S'))* On Monday, 20 April 2020 22:28:19 UTC-7, Armin Würtenberger wrote: > > Hi, > > I am developing

[web2py] Re: check url agrs / vars after #

2020-06-30 Thread Massimo Di Pierro
You cannot because the browser does not send those to the server. Your only option is to inject some JS in the page that reads it from window.location.hash and POST to an API, after the page is loaded. On Sunday, 28 June 2020 07:37:54 UTC-7, Ari Lion BR Sp wrote: > > > Hi, how to get / check >

[web2py] Re: [py4web] - how to disable some auth actions?

2020-04-29 Thread Massimo Di Pierro
ve any registration made from >> the outside but it would be more secure to also do a server-side prevention >> by disabling actions that do not need. >> >> >> Translated with www.DeepL.com/Translator (free version) >> >> Il giorno sabato 28 marzo 2020 20:30

Re: [web2py] Re: Beginners question on Authentication ...

2020-04-26 Thread Massimo Di Pierro
Hello Jon, unfortunately the documentation has been lagging. Recently we are putting a lot more efforts into py4web which, as you understood, is the natural successor of web2py. py4web is much cleaner and much faster. The Auth side is not quite as battle tested but we plan to release a new and

[web2py] Re: Why do my questions never show up?

2020-04-26 Thread Massimo Di Pierro
Hello Jon, sorry again for the trouble with your questions. First post is always moderated to avoid spam so it may take some time. Once your first post is approved (and it is) you should not have any more trouble posting. Massimo On Tuesday, 21 April 2020 07:58:33 UTC-7, Jon Paris wrote: > >

[web2py] Re: web2py online debugger under python3

2020-04-26 Thread Massimo Di Pierro
what browser? On Monday, 30 March 2020 13:23:57 UTC-7, Clemens wrote: > > Hello everybody! > > I've switched my web2py app from python2 to python3. The app itself works > fine, but the web2py online debugger doesn't work anymore and is mostly > freezing. Sometimes a get the following error

[web2py] Re: [py4web] - how to disable some auth actions?

2020-04-26 Thread Massimo Di Pierro
Yes we should have these all but one. Will put it on the todo list. Rearranging in order of priority with some comments below: 1) Require passwords of various complexity (WIP= Work In Progress) 2) Force logout after x hours (WIP) 3) No re-use of the last password (WIP) 4) Force new password on

[web2py] Re: web2py with python 2.7 and web2py running on python 3

2020-04-25 Thread Massimo Di Pierro
Can you please try these: https://web2py.com/examples/static/nightly/web2py_win_py27.zip https://web2py.com/examples/static/nightly/web2py_win_py37.zip https://web2py.com/examples/static/nightly/web2py_osx_py27.zip https://web2py.com/examples/static/nightly/web2py_osx_py37.zip On Sunday, 29

[web2py] Update on web2py binaries

2020-04-25 Thread Massimo Di Pierro
First of all thanks to Nico Zanferrari for all his work on creating new binaries. It took me a while but I have now incorporated them into my deployment process. You can find them here: https://web2py.com/examples/static/nightly/web2py_win_py27.zip

[web2py] Re: Standard way of removing X-Powered-By: web2py http header?

2020-04-12 Thread Massimo Di Pierro
yes. This can be in the user's code: response.headers['X-Powered-By'] = 'xping' On Sunday, 12 April 2020 12:47:31 UTC-7, Alex Beskopilny wrote: > > cd web2py/gluon > grep -r X-Powered-By > ./globals.py:self.headers['X-Powered-By'] = 'xping' > > > воскресенье, 12 апреля 2020 г., 16:02:13

[web2py] Re: 2.19.1 redis sessions problem

2020-03-29 Thread Massimo Di Pierro
Sorry. We should fix this. Will look into it asap. On Sunday, 29 March 2020 15:38:27 UTC-7, Jim S wrote: > > FWIW - I've abandoned redis for sessions. I can't get it to work reliably > and no one seems interested in fixing it. I submitted some patches but > they were rejected. So, I've moved

[web2py] Re: New-py4web-group

2020-03-28 Thread Massimo Di Pierro
, 28 de março de 2020 16:46:26 UTC-3, Massimo Di Pierro escreveu: >> >> We ave a new group for py4web questions and discussions: >> >> https://groups.google.com/forum/#!forum/py4web >> >> Please also use it for pydal, yatl, and pluralize questions. >

[web2py] Re: [py4web] - how to disable some auth actions?

2020-03-28 Thread Massimo Di Pierro
DeepL.com/Translator (free version) > > Il giorno sabato 28 marzo 2020 20:30:48 UTC+1, Massimo Di Pierro ha > scritto: >> >> not possible yet. I can implement it easily but I would like to >> understand some use cases. >> >> On Saturday, 28 March 2020 10:12:32 UTC

[web2py] New-py4web-group

2020-03-28 Thread Massimo Di Pierro
We ave a new group for py4web questions and discussions: https://groups.google.com/forum/#!forum/py4web Please also use it for pydal, yatl, and pluralize questions. For web2py specific questions, please use the per-existing group. -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: py4web group

2020-03-28 Thread Massimo Di Pierro
Yes it is time: https://groups.google.com/forum/#!forum/py4web On Saturday, 28 March 2020 07:10:34 UTC-7, Daniel Guilhermino wrote: > > Hi/Ciao Massimo, > > I know that this question has already been raised, but I believe that for > the evolution of the number of people who will use py4web,

[web2py] Re: [py4web] - how to disable some auth actions?

2020-03-28 Thread Massimo Di Pierro
not possible yet. I can implement it easily but I would like to understand some use cases. On Saturday, 28 March 2020 10:12:32 UTC-7, Paolo Caruccio wrote: > > In py4web is there any way to disable some auth actions? I can't find > anything in the code about this. > > In web2py this is possible

Re: [web2py] web2py 2.19.1 is OUT

2020-03-24 Thread Massimo Di Pierro
alle ore 03:50 Lovedie JC >> ha scritto: >> >>> I've updated it. >>> Flawless >>>  >>> Good work. Much appreciated. >>> Regards >>> >>> On Sun, Mar 22, 2020, 04:28 Christian Varas wrote: >>> >>>> Than

[web2py] Re: python3 + web2py + Lighttpd + fastcgi

2020-03-23 Thread Massimo Di Pierro
I guess we would have to replace calls to thread. to threading. Why not use nginx which is kind of the standard today? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: py4web in Google App Engine route app

2020-03-23 Thread Massimo Di Pierro
timestamp datetime.datetime(2020, 3, 23, 11, 48, 18) > client_ip 127.0.0.1 > error [Errno 13] Permission denied: '/_default' -> '/myapp' > snapshot > timestamp 2020-03-23T11:48:18.745672 > python_version 3.7.5 (default, Nov 20 2019, 09:21:52) > > > > > > > El

[web2py] Re: python3 + web2py + Lighttpd + fastcgi

2020-03-22 Thread Massimo Di Pierro
, cgi.escape(`environ[name]`)) > ^ > SyntaxError: invalid syntax > > > As i told you before the "L" cases i fixed them, but this others errors > dont know how to fixed them. > > > Thanks for your help. > > > > El sábad

Re: [web2py] web2py 2.19.1 is OUT

2020-03-21 Thread Massimo Di Pierro
he old broken ones. > I'm working for buiding the new binaries - you cannot just replace the > sources inside because the main web2py.py program has been changed. > > Nico > > Il giorno sab 21 mar 2020 alle ore 22:52 Massimo Di Pierro < > massimo.dipie...@gmail.com> ha scri

[web2py] Re: python3 + web2py + Lighttpd + fastcgi

2020-03-21 Thread Massimo Di Pierro
Fixed right now on github. Python 3 does not like the L On Saturday, 21 March 2020 16:11:38 UTC-7, patito feo wrote: > > Hi all, > > I've been trying to run web2py using python3 but unable to do it sucessful. > Using latest build 2.19.1 > > I keep getting this error: > > Traceback (most recent

[web2py] web2py 2.19.1 is OUT

2020-03-21 Thread Massimo Di Pierro
Sorry it took so long. Web2py 2.19.1 is finally out. It contains many small bug fixes including better support for python 3.6, 3.7, and 3.8 https://travis-ci.org/github/web2py/web2py -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: error

2020-03-21 Thread Massimo Di Pierro
Sorry. need more info. What has coursera got to do with web2py? On Friday, 20 March 2020 23:20:09 UTC-7, Rashdan Hadri wrote: > > I cant seem to log in when i get redirected from COursera python basics > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: tailwindcss with web2py ?

2020-03-21 Thread Massimo Di Pierro
The barrier of entry seems pretty high. What do you like about it? On Friday, 20 March 2020 04:37:23 UTC-7, Ramos wrote: > > any thoughts about tailwindcss ? > > Seems to me that could be the best option for web2py as it is very > programable as we all like :) > > just one nice thing i like... >

[web2py] Re: web2py 2.18.5 breaks mysql connection

2020-03-21 Thread Massimo Di Pierro
; Regards > Donald > > On Friday, April 12, 2019 at 4:59:55 AM UTC+1, Massimo Di Pierro wrote: >> >> will release 2.18.6 asap. fixed in pydal master >> >> On Tuesday, 9 April 2019 17:43:43 UTC-7, var...@seas.upenn.edu wrote: >>> >>> >&g

[web2py] Re: Error (web2py on GAE): ImportError: No module named gluon.settings

2020-03-21 Thread Massimo Di Pierro
Maybe the file got deleted or corrupted or excluded fro deployment? It exists in web2py. On Tuesday, 17 March 2020 12:21:43 UTC-7, PRACHI VAKHARIA wrote: > > *web2py on GAE* gives the following error: > > > *ImportError: No module named gluon.settings >

[web2py] Re: MacOS Catalina, Apache SSL

2020-03-21 Thread Massimo Di Pierro
Do not use apache. You do not need it. f you need to serve from outside to osx, consider nginx. On Tuesday, 17 March 2020 08:42:48 UTC-7, Karl McHugh wrote: > > I'm having trouble setting up web2py with the following setup: > > MacOS Catalina, > Apache, > SSL > web2py > > I've been unable to

[web2py] Re: py4web in Google App Engine route app

2020-03-21 Thread Massimo Di Pierro
This is a good solution. One trick is to symlink _default to myapp On Monday, 16 March 2020 02:17:56 UTC-7, Jacinto Parga wrote: > > Finally solved. > >1. I add an entrypoint to the app.yaml . The app runs fine: >runtime: python37 >entrypoint: gunicorn -b :8080 -w 2 main:app > >

[web2py] Re: 6th book release

2020-03-21 Thread Massimo Di Pierro
The book online has some edits. Not major. On Saturday, 14 March 2020 10:47:47 UTC-7, Andrea Fae' wrote: > > What are the differences between 5th book release and 6th online book > prerelease? > thank you > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

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

2020-03-21 Thread Massimo Di Pierro
Did you get this to work. This is very valuable. I can help fix it during the week-end. Not going anywhere. ;-) On Friday, 13 March 2020 06:00:40 UTC-7, Kevin Keller wrote: > > You need to change your okta tenant URLs and the client Id and Secret. > > I still points to my tenant :) > > > > >

Re: [web2py] pyweb login

2020-03-21 Thread Massimo Di Pierro
Try rm -rf app and python3.7 -m pip install -U py4web I think you have an old buggy version On Monday, 9 March 2020 14:43:47 UTC-7, Maurice Waka wrote: > > still getting same results. > see image attached. > > > On Tue, Mar 10, 2020 at 12:25 AM Jim S wrote: > >> Can you now run >> >> >>

[web2py] Re: Py4Web fields of type 'upload' not working

2020-03-21 Thread Massimo Di Pierro
Please open a ticket about this. On Monday, 9 March 2020 03:42:54 UTC-7, John Bannister wrote: > > Hi All, > > Still struggling a lot with fields of type 'upload'. Whatever I try the > field remains None. Any help greatly appreciated. > > Typical use case is as follows: > > Model: >

[web2py] Re: Py4web readonly Form

2020-03-21 Thread Massimo Di Pierro
You may be right but what is the meaning of submitting and accepting a readonly form? What is a use case? On Friday, 6 March 2020 00:53:17 UTC-8, John Bannister wrote: > > Hi All, > > I have been testing Py4web and have the following to produce basically a > 'view record' option :- > > def

[web2py] Re: how to expire sessions in py4web

2020-03-21 Thread Massimo Di Pierro
Session and login information are not same. The latter is stored in the former. When you logout it clears the login info in the session but does not clear the session. There is no need. You can of course do session.clear() if you want. Sessions tells py4web (or web2py) that you are the same

Re: [web2py] Re: off topic - Alpine JS as an alternative to vuejs/react

2020-03-21 Thread Massimo Di Pierro
I tried Alpine. It is very slow compared to vue.js. For me it was a non-starter. On Friday, 28 February 2020 07:21:27 UTC-8, Ramos wrote: > > maybe this is helpful > > https://www.alpinetoolbox.com/ > > Em sex., 28 de fev. de 2020 às 06:19, Massimo Di Pierro < > ma

[web2py] Re: prettydate in py4web

2020-02-27 Thread Massimo Di Pierro
Ho, there is no pretty date. But there is no need because this is better: https://pypi.org/project/humanize/ On Thursday, 27 February 2020 13:26:23 UTC-8, Maurice Waka wrote: > > what changed in py4web with this: > > [[=prettydate(reply.modified_on)]] > > > > which is in web2py? > > > Regards

[web2py] Re: LOAD in py4web

2020-02-27 Thread Massimo Di Pierro
never heard of unpolly.js and cannot find it. Have a link? On Wednesday, 26 February 2020 19:32:20 UTC-8, Carlos Costa wrote: > > LOAD is a very cool thing! And beginners just say WOW when they can create > ajax-like experience so easy. > But, IMO, it lacks some important features for modern

[web2py] Re: off topic - Alpine JS as an alternative to vuejs/react

2020-02-27 Thread Massimo Di Pierro
wow. Alpine is pretty good. I will give it a try. On Monday, 24 February 2020 08:33:28 UTC-8, Ramos wrote: > > vuejs is awesome but for simple stuff maybe alpine js is simpler. > Just asking your thoughts if any... > https://github.com/alpinejs/alpine > -- Resources: - http://web2py.com -

[web2py] Re: PY4WEB request.vars error

2020-02-27 Thread Massimo Di Pierro
Or request.json() to for content-type: application/json. That's what I use the most in POST On Monday, 24 February 2020 07:52:46 UTC-8, Ruslan Gareev wrote: > > Hi! > > Now in py4web it will be (if POST vars): > request.forms.message or request.POST.message > > or if GET vars: >

[web2py] Re: Py4web: ¿Practical example step by step?

2020-02-27 Thread Massimo Di Pierro
t? > > El miércoles, 22 de enero de 2020, 1:25:05 (UTC-5), Massimo Di Pierro > escribió: >> >> I am preparing one. It will be done in 2 weeks. Promise. >> >> On Tuesday, 21 January 2020 01:15:27 UTC-8, Dave S wrote: >>> >>> >>> &

[web2py] Re: LOAD in py4web

2020-02-23 Thread Massimo Di Pierro
We can add it in utils. But before we do. Do other peopl find it useful? Is that a pattern we should encourage vs, for example, vue.js? On Sunday, 23 February 2020 10:18:51 UTC-8, RHC wrote: > > HI, > > I am beginning to experiment with py4web, I like the sound of it and I am > looking to

[web2py] Re: web2py upgrade from 2.16.1

2020-02-23 Thread Massimo Di Pierro
If you upgrade web2py to the latest and you continue to use python 2.7 everything should work as expected. We do continue to promise python 2.7 backward compatibility (and this is all that we promised). If you chose to upgrade to python 3.7 than your app will probably no longer work. You will

[web2py] Re: unexpected end of stream - py4web

2020-02-22 Thread Massimo Di Pierro
Can you show us some minimum code to rproduce? On Friday, 21 February 2020 20:38:08 UTC-8, Edoardo Torrini wrote: > > Hi > > I create a project client/server compose by an application mobile (client) > and a webservice (py4web). > the application create request to the webservice and the server

[web2py] Re: pydal bug!

2020-02-20 Thread Massimo Di Pierro
do auth.inject = False On second thought. This should be default because can be an information leak issue. On Thursday, 20 February 2020 07:47:00 UTC-8, Ramos wrote: > > this is the result > [image: image.png] > of this code . Why do i get user ??? > @action('colors') > @action.uses( session,

[web2py] Re: py4web and record versioning

2020-02-20 Thread Massimo Di Pierro
.139976984930736' > > > > On Tuesday, February 18, 2020 at 8:07:25 PM UTC-8, Carlos Hanson wrote: >> >> Greetings, >> >> I just started using py4web, and I'm very excited to do so. >> >> Has there been any more thought on this issue? I was partially into a ne

[web2py] Re: buefy for bulma /py4web

2020-02-20 Thread Massimo Di Pierro
I only picked bulma because it is truly js agnostic. On Tuesday, 18 February 2020 10:03:46 UTC-8, Ramos wrote: > > py4web has bulma out of the box > so i guess buefy is more advisable than vuetify to use with py4web right ? > > https://buefy.org/ > -- Resources: - http://web2py.com -

[web2py] Re: ERROR on Request

2020-02-20 Thread Massimo Di Pierro
in py4web request is the bottlepy request. https://bottlepy.org/docs/dev/api.html#the-request-object There is no now. You can use datetime.timetime.now() On Tuesday, 18 February 2020 08:34:51 UTC-8, Maurice Waka wrote: > > BUT > Now I get this: > > Field('modified_on', 'datetime',

[web2py] Re: Future of web2py

2020-02-20 Thread Massimo Di Pierro
It will continue fix bugs. I will add new features as long the same features overlap with py4web. Honestly web2py has not needed much attention in a while. I do recommend that people move their apps to py4web simply because I believe the latter is better. On Tuesday, 18 February 2020 07:36:24

[web2py] Re: MySQL server has gone away - py4web

2020-02-20 Thread Massimo Di Pierro
quot;/home/parra/py4web/py4web/core.py", line 239, in on_request >>> db._adapter.reconnect() >>> NameError: name 'db' is not defined >>> >>> >>> >>> >>> On Sunday, February 16, 2020 at 10:22:48 PM UTC-3, Massimo Di Pierro >

Re: [web2py] Web2py sessions in scheduler

2020-02-17 Thread Massimo Di Pierro
Try session._forget = True Yet this should not be happening so hard to suggest a fix without seeing the code. On Monday, 17 February 2020 17:44:32 UTC-8, Frédéric Samson wrote: > > I tried this in the model file : > > if request.is_scheduler: > session.forget(response) > > and > > if

[web2py] Re: py4web translations

2020-02-17 Thread Massimo Di Pierro
You have to pass T to the view @action('index') @action.uses('index.html', T) def index(): return dict(message="hello world", T=T) # in view [[=T(message)]] or @unauthenticated def index(): return dict(message="hello world") and it is all automatic. Need the latest common.py

[web2py] Re: PY4WEB socketIO

2020-02-17 Thread Massimo Di Pierro
It would be trivial to implement it like flask does. You can do it right now using the bottlepy way: https://pypi.org/project/bottle-websocket/ or https://github.com/marlboromoo/bottle-socketio-example py4web uses bottle under the hood. The problem is that I would like something better than

[web2py] Re: MySQL server has gone away - py4web

2020-02-17 Thread Massimo Di Pierro
defined > > > > > On Sunday, February 16, 2020 at 10:22:48 PM UTC-3, Massimo Di Pierro wrote: >> >> The db fixture should automatiically try reconnect. >> >> To help me debug can you edit py4web/core.py and add the line below

[web2py] Re: validator formatter when validation fails

2020-02-17 Thread Massimo Di Pierro
I think this is fixed now. Please give it a try. On Monday, 17 February 2020 13:53:34 UTC-8, Eric wrote: > > In py4web, when form validation fails on a datetime field, py4web throws > and exception. > In the IS_DATETIME validator, when validation fails, validate() returns > value as string (the

  1   2   3   4   5   6   7   8   9   10   >