Re: [web2py] Re: Migrations

2018-12-07 Thread Massimo Di Pierro
Welcome to the team! On Tuesday, 27 November 2018 13:28:51 UTC-8, Ben Duncan wrote: > > LOL - Understand, can throw down C with the Best of them, write > applications (myriad of programming languages) and setup Databases and > design them in my sleep, > but this is my first in a career that sp

[web2py] Re: AWS Lambda Deployment Recipe

2018-12-07 Thread Massimo Di Pierro
Good job! If you change that to a markdown or html page we can post on the web2py web site. I would also be happy to take the code from your example and turn it into a script that shops with web2py. Want to propose one? On Tuesday, 27 November 2018 15:51:54 UTC-8, appjar...@gmail.com wrote: > >

Re: [web2py] CAS error

2018-12-07 Thread Massimo Di Pierro
can you please open an issue about this? On Thursday, 29 November 2018 13:51:14 UTC-8, Carlos Cesar Caballero wrote: > > Hi guys, after some clean tests, the issue is not happening with Python > 2.7, so it seems to be a Python 3 issue. > > Greetings. > > > El 29/11/18 a las 1:34 p.m., Carlos Ce

[web2py] Re: MySql encryption using DAL

2018-12-07 Thread Massimo Di Pierro
Very useful. this should go in the book. https://github.com/web2py/web2py-book Would you be able to submit a PR? else I can do it. On Friday, 30 November 2018 15:26:17 UTC-8, appjar...@gmail.com wrote: > > Thanks Massimo. > > These are the steps and syntax to connect to Amazon's RDS using SSL.

Re: [web2py] Help needed with web2py-book app

2018-12-07 Thread Massimo Di Pierro
Merged. Will deploy tomorrow. Excellent and very much appreciated. On Tuesday, 4 December 2018 00:51:53 UTC-8, Nico Zanferrari wrote: > > Yes, the online version of the book is a web2py application - and I've > made it Python 3 compatible with that PR. > > But indeed the content of the book itsel

Re: [web2py] Conditional Checks on output from DB.Select statements?

2018-12-07 Thread sandeep patel
Yes, Arjun you are right you are comparing row object to a string.so first you have to extract value from row object. You can use first or last function to get values. if measure_1.first()['name']=='DBD': instead, store a row object in variables you can store values which you want to compare. m

[web2py] Re: Problem in Ubuntu 18.04

2018-12-07 Thread 黄祥
2.9 version is old, perhaps you can share the error log (web2py or web server log) best regards, stifan -- 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) ---

[web2py] Re: multi-level form acceptance

2018-12-07 Thread 黄祥
perhaps you can use auth_group and auth_membership, assign person in auth_user table to auth_membership that belong to auth_gorup then using conditional if to check the value if person from group_1 is 'accepted' then it will appears in person fron group_2 best regards, stifan -- Resources: - h

[web2py] Re: upload a photo to your site by >

2018-12-07 Thread 黄祥
perhaps you can show the code and the traceback error ref: http://web2py.com/books/default/chapter/29/03/overview#An-image-blog best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.co

[web2py] Re: "web2py.app“ wants access to control “System Events.app“

2018-12-07 Thread 黄祥
did you run web2py_osx.zip (For Mac) ? had you try web2py_src.zip (Source Code) ? best regards, stifan -- 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) --- Yo

[web2py] Re: Help with deploy with nginx and ubuntu 18.04

2018-12-07 Thread 黄祥
tried recently ubuntu 18.04 with the web2py latest version the scripts is no longer work, need update perhaps you can share the error log (nginx) ? best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - h

[web2py] Re: "web2py.app“ wants access to control “System Events.app“

2018-12-07 Thread John McMaster
Hello stifen, I am running for MAC version 2.17.2. I have downloaded both for MAC and the Source Code. But I have not run from source yet. I would like to know more about the reason behind the message and what it is doing with the System Events.app? Thank You -- Resources: - http://web2py.c

[web2py] Re: "web2py.app“ wants access to control “System Events.app“

2018-12-07 Thread 黄祥
curl -L -O -C - https://mdipierro.pythonanywhere.com/examples/static/web2py_osx.zip unzip web2py_osx.zip open web2py/web2py.app tested it with the step above but not found the error like you posted before, for system events.app perhaps you can get explanation here *ref:* https://macosx.com/thre

Re: [web2py] Re: upload a photo to your site by >

2018-12-07 Thread Christian Varas
As Stifan says, please show us the code. If you follow the example in the book, image upload works perfect. About ">" what are you trying to do with this? Cheers. Chris. El vie., 7 dic. 2018 6:59 a. m., 黄祥 escribió: > perhaps you can show the code and the traceback error > ref: > http://web2p

Re: [web2py] Re: upload a photo to your site by >

2018-12-07 Thread Morteza Tabibi
Hi, my friend, I'm having this problem. I want to, for example, take a picture of a flower on my site and explain about it. What should I do? Thank you for saying, for example. On Fri, Dec 7, 2018 at 1:29 PM 黄祥 wrote: > perhaps you can show the code and the traceback error > ref: > http://web2py

[web2py] Re: New production install Ubuntu/nginx/uwsgi - connect to redis

2018-12-07 Thread Leonel Câmara
That's the same as locked=True as the string 'False' evaluates is a Truthy value. What you should try is to use: RedisSession(redis_conn=rconn, session_expiry=False, *with_lock=True*) Notice the added with_lock=True -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: 2.17.2 is out

2018-12-07 Thread Web2_3py
If you are asking me, I am sorry, i don't know how to make a patch. -- 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 yo

[web2py] Re: Problem with wsgihandler.py Apache/Python3

2018-12-07 Thread Carl Petersen
Hello, I'm having a similar issue. I'm using Python 3.6.6, mod_wsgi 4.6.5, Apache 2.4.6 with web2py 2.17.2. I can get to the welcome screen, but as soon as I try to access the admin application I get the following on my screen: Internal Server Error The server encountered an internal error o

Re: [web2py] Re: 2.17.2 is out

2018-12-07 Thread Morteza Tabibi
hi, my friend, when you export CSV see you in error.??? in Linux does not a problem export CSV I have not to experience in windows sorry On Fri, Dec 7, 2018 at 11:28 AM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Can I ask for a patch? > > On Tuesday, 27 November 2018 09:42:35 UTC-8

[web2py] Re: Help with deploy with nginx and ubuntu 18.04

2018-12-07 Thread Jim S
One thing I had to do was change the install of nginx Line 30: apt-get -y install nginx-full Should be apt -y install nginx I seem to recall changing something else too, but don't recall right now. But, I'm setting up new servers today and hope to put a list of issues together. I have anothe

Re: [web2py] Re: New production install Ubuntu/nginx/uwsgi - connect to redis

2018-12-07 Thread Jim Steil
WooHoo! I think I finally figured it out. Python redis package was at a different level on the other machine. Python redis 2.10.6 works Python redis 3.0.1 does not. Seems to only want strings passed to it. On my new server I -> pip install redis==2.10.6and now it works. By default it is

Re: [web2py] Re: Help with deploy with nginx and ubuntu 18.04

2018-12-07 Thread Morteza Tabibi
- sudo apt update - sudo apt install nginx On Fri, Dec 7, 2018 at 1:34 PM 黄祥 wrote: > tried recently ubuntu 18.04 with the web2py latest version the scripts is > no longer work, need update > perhaps you can share the error log (nginx) ? > > best regards, > stifan > > -- > Resources: > -

Re: [web2py] Re: Help with deploy with nginx and ubuntu 18.04

2018-12-07 Thread Morteza Tabibi
hi friend better see in web https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04 On Fri, Dec 7, 2018 at 6:33 PM Morteza Tabibi wrote: > >- sudo apt update >- sudo apt install nginx > > > On Fri, Dec 7, 2018 at 1:34 PM 黄祥 wrote: > >> tried recently ubuntu

Re: [web2py] CAS error

2018-12-07 Thread Carlos Cesar Caballero Díaz
Hi Massimo, I am working on a fix, hopefully I will submit a PR soon. Greetings. El 7/12/18 a las 3:03 a.m., Massimo Di Pierro escribió: can you please open an issue about this? On Thursday, 29 November 2018 13:51:14 UTC-8, Carlos Cesar Caballero wrote: Hi guys, after some clean tests,

[web2py] Re: Problem with wsgihandler.py Apache/Python3

2018-12-07 Thread Carl Petersen
I was able to get web2py up and running by changing the following line (131) in http.py I don't expect that this was the proper way to do it (especially considering backward compatibility), but at lease it might point out where the issue is: elif isinstance(body, (str, bytes, bytearray)):

[web2py] Re: New production install Ubuntu/nginx/uwsgi - connect to redis

2018-12-07 Thread Leonel Câmara
Whoa nice find: redis-py 2.X attempted to coerce any type of input into a string. While occasionally convenient, this caused all sorts of hidden errors when users passed boolean values (which were coerced to ‘True’ or ‘False’), a None value (which was coerced to ‘None’) or other values, such as

Re: [web2py] Re: New production install Ubuntu/nginx/uwsgi - connect to redis

2018-12-07 Thread Jim Steil
Leonel - what's the process to get this fixed in web2py? I don't think I know enough about the redis library to offer a fix. I also found a couple bugs in the ubuntu/nginx/uwsgi install script. Would it make sense to make these install scripts version specific? -Jim On Fri, Dec 7, 2018 at 11:1

[web2py] Re: 2.17.2 is out

2018-12-07 Thread 黄祥
> > If you are asking me, I am sorry, i don't know how to make a patch. > ref: http://web2py.com/books/default/chapter/29/15/helping-web2py#Contributing-code-and-documentation-changes best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gith

Re: [web2py] Re: PostgreSQL log flooded with "could not receive data from client: Connection reset by peer" messages;

2018-12-07 Thread Tadas U
20 tasks ** .. On Fri, 7 Dec 2018 at 09:50, Tadas U wrote: > Sorry, yes, postgres is 9.3 by the way, forgot to mention > > > On Fri, 7 Dec 2018, 09:46 Massimo Di Pierro wrote: > >> What do you mean by "20 schedulers"? 20 workers? 20 tasks? >> >> On Sunday, 18 November 2018 10:46:35 UTC-8, Tadas

Re: [web2py] Re: upload a photo to your site by >

2018-12-07 Thread Dave S
On Friday, December 7, 2018 at 4:35:53 AM UTC-8, Morteza Tabibi wrote: > > Hi, my friend, I'm having this problem. I want to, for example, take a > picture of a flower on my site and explain about it. What should I do? > Thank you for saying, for example. > > Are you wanting to make a page that

[web2py] Re: multi-level form acceptance

2018-12-07 Thread Dave S
On Thursday, December 6, 2018 at 11:43:37 PM UTC-8, pradeep chauhan wrote: > > hi, > i want to send form which i created to some person, if that person accepts > the application it will be sent to 2nd person for approval and so on..how > can i do that? > The easy way (according to my personal

Re: [web2py] Re: Help with deploy with nginx and ubuntu 18.04

2018-12-07 Thread 黄祥
root@cb542ca9612f:/srv# find / -name web2py.socket find: '/proc/6191/map_files': Permission denied find: '/proc/6192/map_files': Permission denied find: '/proc/6193/map_files': Permission denied find: '/proc/6195/map_files': Permission denied find: '/proc/6196/map_files': Permission denied find: '/

[web2py] Re: New production install Ubuntu/nginx/uwsgi - connect to redis

2018-12-07 Thread Leonel Câmara
You can make a pull request with your fixes in github if you know how to fix it or you can open an issue in github. https://github.com/web2py/web2py -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.c

[web2py] web2py scripts setup apache (httpd) tested on docker

2018-12-07 Thread 黄祥
tested all web2py scripts setup apache (httpd) on docker, result only setup-web2py-ubuntu.sh worked *centos* docker pull centos docker run -it centos /bin/bash yum install -y unzip wget sudo iptables mkdir /srv cd /srv wget -c http://web2py.com/examples/static/web2py_src.zip unzip -o web2py_src