[web2py] Stats from Jetbrains

2018-09-04 Thread Carlos Cesar Caballero Díaz
Hi, there are some interesting stats published by Jetbrains https://www.jetbrains.com/research/devecosystem-2018/python/ Greetings. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/iss

Re: [web2py] Re: Exporting a table to csv

2018-09-04 Thread Chris Insinger
Hi Dave, You’re right, I’m using python3. I thought it might be related to that so yesterday I added an issue on the github site for the book: https://github.com/web2py/web2py-book/issues/393 If that’s the wrong place/way please let me know. Regards, Chris Sent from my iPhone >> On 5 Sep 2

[web2py] Re: How to add variable in function which called inside ajax function

2018-09-04 Thread Dave S
On Tuesday, September 4, 2018 at 6:23:03 AM UTC-7, Константин Комков wrote: > > Hello, can you take advice can I send variables in web2py function - ajax > or I need to use jquery function. > Can somebody show example how to send variables with jQuery.ajax and get > answer from server (controll

[web2py] Re: Python 3.7 Compiled Apps

2018-09-04 Thread Donald McClymont
The key bit of the error is: File "C:\web2py\gluon\compileapp.py", line 470, in read_pyc return marshal.loads(data[marshal_header_size:]) ValueError: bad marshal data (invalid reference) I have also done a bit more digging and this seems to be caused by PEP 552 and for python 3.7 it appea

[web2py] Re: Exporting a table to csv

2018-09-04 Thread Dave S
On Monday, September 3, 2018 at 10:31:25 PM UTC-7, Chris_I wrote: > > Hi there, > > Found a way to solve it, and thought I'd share in case others search on > this topic. > > Replace the str(...) below with str(...).encode(), so that it looks like > this: > > open('test.csv', 'wb').write(str(db(db

[web2py] Re: Web2py ports busy

2018-09-04 Thread Jim S
Sounds like you already have web2py (or something else) running on that port. You can try running on a different port using: python web2py.py -p 8001 Or, use the tools on your host os to determine what is running on port 8000 and stop that process. -Jim On Tuesday, September 4, 2018 at 4:52:

[web2py] Re: HELP: Communication error

2018-09-04 Thread Dave S
On Tuesday, September 4, 2018 at 1:09:33 PM UTC-7, Dave S wrote: > > > > On Sunday, September 2, 2018 at 10:41:30 AM UTC-7, Massimo Di Pierro wrote: >> >> It is probably a permission issue and the web server do not have write >> permission in your app folder. >> > > If it was "working last night

[web2py] Re: HELP: Communication error

2018-09-04 Thread Dave S
On Sunday, September 2, 2018 at 10:41:30 AM UTC-7, Massimo Di Pierro wrote: > > It is probably a permission issue and the web server do not have write > permission in your app folder. > If it was "working last night", I would be wondering what changed the permissions. web2py Restoring backups

[web2py] Re: How to add variable in function which called inside ajax function

2018-09-04 Thread Константин Комков
I saw it, I want to see controller вторник, 4 сентября 2018 г., 19:48:07 UTC+3 пользователь Joe Barnhart написал: > > > $.ajax({ > data: {a:2, b:3}, > url: "{{=URL('loadAdditonalInfo')}}", > success: my_success_fcn(ret) > )}; > > > Something like this, from memory... > > You can get more de

[web2py] Re: How to add variable in function which called inside ajax function

2018-09-04 Thread Joe Barnhart
$.ajax({ data: {a:2, b:3}, url: "{{=URL('loadAdditonalInfo')}}", success: my_success_fcn(ret) )}; Something like this, from memory... You can get more details at the jQuery website. It has excellent docs. Joe On Tuesday, September 4, 2018 at 6:23:03 AM UTC-7, Константин Комков wrote: >

[web2py] Re: pydal metadata in db

2018-09-04 Thread Joe Barnhart
I'm worried about losing control over the db migration process. Using MySql it is fairly common for the migration process to go wrong, as MySql doesn't do will with adding and deleting multiple columns. I often need to drop a few tables, delete the corresponding file in 'databases' and then f

[web2py] Re: Can't understand this error in gluon/rewrite.py

2018-09-04 Thread Leonel Câmara
The problems seems to be in the controllers and not in the application list since looking at your logs they seem to be fine. Notice that "load" does not check if the controllers are coming just with "DEFAULT" string. https://github.com/web2py/web2py/blob/master/gluon/rewrite.py#L283 Can you lo

[web2py] Re: How to add variable in function which called inside ajax function

2018-09-04 Thread Константин Комков
Hello, can you take advice can I send variables in web2py function - ajax or I need to use jquery function. Can somebody show example how to send variables with jQuery.ajax and get answer from server (controller and js in view). For example we have a = 2 and b = 3. I want to get from server a+b.

[web2py] Web2py ports busy

2018-09-04 Thread FRANK OJAMBO
how can i deploy or install web2py on domain hosting . each time i try to run the command "python web2py.py" i get please visit: http://127.0.0.1:8000/ use "kill -SIGTERM 3

[web2py] Re: Can't understand this error in gluon/rewrite.py

2018-09-04 Thread Lisandro
Thank you all for your help. I've tried to log the value of routers.BASE.applications, but I'm facing an weird situation: The traceback shows that the error is at line 1241 of gluon/rewrite.py (the second line): if self.args: if self.args[0] in self.functions or self.args[0] in self.control