Re: [web2py] Re: Error accessing app edit

2019-03-17 Thread Massimo Di Pierro
can you provide a minimal controller default.py so we can reproduce and fix it? On Sunday, 17 March 2019 20:55:59 UTC-7, Lovedie JC wrote: > > Python 3. > I moved to python 3 > Regards > > On Mon, 18 Mar 2019, 05:49 Massimo Di Pierro > wrote: > >> This says you are using python 3. Is your app

Re: [web2py] Re: Error accessing app edit

2019-03-17 Thread Lovedie JC
Python 3. I moved to python 3 Regards On Mon, 18 Mar 2019, 05:49 Massimo Di Pierro wrote: > This says you are using python 3. Is your app build for python 3 or python > 2? > > > On Sunday, 17 March 2019 08:01:07 UTC-7, Maurice Waka wrote: >> >> When clicking on the edit button for my app, I get

[web2py] Re: Error accessing app edit

2019-03-17 Thread Massimo Di Pierro
This says you are using python 3. Is your app build for python 3 or python 2? On Sunday, 17 March 2019 08:01:07 UTC-7, Maurice Waka wrote: > > When clicking on the edit button for my app, I get this error: > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > 10. > 11. > 12. > 13. > 14. > 15. > 16.

[web2py] Re: Web3py reboot

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

Re: [web2py] Re: Poweredby error

2019-03-17 Thread Massimo Di Pierro
:-) On Saturday, 16 March 2019 13:02:03 UTC-7, Daniel Guilhermino wrote: > > Hi Massimo, > > I just checked and it's working perfectly now! > > Many thanks, long life and prosper to you and Web2py! > > Best regards. > > Daniel Guilhermino > > Em sexta-feira, 15 de março de 2019 00:50:38 UTC-3,

[web2py] Re: Web2py install script python 3/Apache/Ubuntu

2019-03-17 Thread Massimo Di Pierro
In 2019 I really do not feel recommending using Apache to anybody. nginx has clearly won this battle. On Sunday, 17 March 2019 19:35:55 UTC-7, gertk wrote: > > apt-get install libapache2-mod-wsgi-py3 > > laupäev, 16. märts 2019 15:34.22 UTC+2 kirjutas Mamisoa Andriantafika: >> >> This script

Re: [web2py] Re: Web2py binaries

2019-03-17 Thread Massimo Di Pierro
Fantastic. Will process this within the week and make it the new default. On Friday, 15 March 2019 07:55:16 UTC-7, Nico Zanferrari wrote: > > Hi all, > > I've was successful in making the experimental Mac app, too, with python3. > Grab it from https://github.com/nicozanf/web2py-pyinstaller ,

[web2py] Re: "NameError: name 'pydal' is not defined" when function has typing type in def

2019-03-17 Thread Massimo Di Pierro
I do not understand. this: row: pydal.objects.Row = table[rec_id] is not a valid Python code. Also, as you say pydal is not imported. Moreover Row is an internal class, you should not try redefine it. Can you explain what you are trying to achieve? Maybe there is a better way. On Friday, 8

[web2py] Re: web2py 2.18.4 is OUT

2019-03-17 Thread Massimo Di Pierro
can you provide steps to reproduce? On Thursday, 14 March 2019 23:49:22 UTC-7, Константин Комков wrote: > > I think I saved error in my app and after that I have error in web2py. > invalid syntax (, line 14)Версия > web2py™ Version 2.18.4-stable+timestamp.2019.03.13.05.27.54 > Python Python

[web2py] Re: Web2py install script python 3/Apache/Ubuntu

2019-03-17 Thread gertk
apt-get install libapache2-mod-wsgi-py3 laupäev, 16. märts 2019 15:34.22 UTC+2 kirjutas Mamisoa Andriantafika: > > This script works with python 3 but is under nginx: > > > https://raw.githubusercontent.com/arisobel/web2py_scripts/master/setup-web2py-nginx-p3-uwsgi-ubuntu.sh > > > > Le samedi 16

[web2py] How to show log event while form is submitted

2019-03-17 Thread isi_jca
Hi, I have a form, when I click on submit button it is start processing and saving data (events) in table tlogproceso: Controller def fprocess (): form = SQLFORM.factory (Field ('filename', 'upload', uploadfolder = os.path.join (request.folder, 'uploads'), label = 'DB file')) if

[web2py] Error when deleting items

2019-03-17 Thread Maurice Waka
This is my simple code when using to delete items from my database. grid = SQLFORM.grid(db.answered.author == auth.user.id, editable=False, searchable=False, details= False, fields=None, csv=None, links=None, create= False, field_id=None, selectable=lambda ids:delete_them(ids)) return

[web2py] Re: Is it possible to log all errors to a log file using Python's logging?

2019-03-17 Thread Anthony
You can set up a custom error handler and do the logging there: http://web2py.com/books/default/chapter/29/04/the-core#Routes-on-error. Anthony On Sunday, March 17, 2019 at 12:59:18 PM UTC-4, João Matos wrote: > > Hello, > > Is it possible to log all errors (the same ones that go to the

[web2py] Re: I would like to log of all SQL commands web2py sends to SQLite. Is it possible?

2019-03-17 Thread Anthony
See http://web2py.com/books/default/chapter/29/04/the-core#Logging. For the logging.conf file format, see https://docs.python.org/2/library/logging.config.html#logging-config-fileformat. You'll need to set up a handler for the "pyDAL" logger, which is what the DAL uses for logging. On

[web2py] I get a strange syntax error if I divide a = web2py "command" in 2 lines inside a HTML file

2019-03-17 Thread João Matos
Hello, If I use this code, everything works =A(T('You have unread notifications'), _href=URL('default', 'index', user_signature=True)) if count else '' However, if I divide it in 2 lines, using proper ( ), I get a syntax error =(A(T('You have unread notifications'),

[web2py] Re: Is it possible to make a form field depend on another form field without submiting the form?

2019-03-17 Thread João Matos
I'll check it out in the next days, thanks. sexta-feira, 15 de Março de 2019 às 11:34:09 UTC, Leonel Câmara escreveu: > > Here's an example I made long ago, I would do things differently nowadays > but it shows how it can be done. > > https://groups.google.com/forum/#!topic/web2py/z_lGYsO6LKE >

[web2py] Is it possible to log all errors to a log file using Python's logging?

2019-03-17 Thread João Matos
Hello, Is it possible to log all errors (the same ones that go to the app\errors dir) to a log file using Python's logging? Thanks, JM -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Filtering through a selected group of entities with a search function

2019-03-17 Thread mostwanted
I have a table of companies that offer variable services, what i want is to enable my users to search for companies that offer a desired service *(which i have been able to achieve)* and then from that very list of companies displayed in that page be able to filter through them and search for

[web2py] Error accessing app edit

2019-03-17 Thread Maurice Waka
When clicking on the edit button for my app, I get this error: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. Traceback (most recent call last): File "/home/mauricewaka/web2py/gluon/restricted.py", line 219, in restricted exec(ccode, environment) File

[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

[web2py] Git: save init application as separate repo from web2py, and exclude the init directory?

2019-03-17 Thread Tom Campbell
My (soon to be production) code is in the application named init. Obviously init is surrounded by the web2py installation itself. We will want to preserve the working version of web2py in a git repo since it's likely we will update web2py separately from the init app. I assume the best practice

[web2py] Re: I would like to log of all SQL commands web2py sends to SQLite. Is it possible?

2019-03-17 Thread João Matos
Thanks Anthony, I activated debug=True in DAL but I can't find any log file. Do you have any idea where it is created? domingo, 17 de Março de 2019 às 00:26:54 UTC, Anthony escreveu: > > Also, if you set DAL(..., debug=True), I believe all SQL commands will be > logged to the "pyDAL" logger. >