[web2py] Re: Auth -- members of both groups

2017-02-02 Thread Leonel Câmara
I'm sorry. Correct version: @auth.requires(lambda: auth.has_membership('green') or auth.has_membership( 'blue')) def functionX(): ... As for the object, I would just use the name of the function for now. It really only matters if you're using crud as it knows what to do with it and record_id

[web2py] Re: Auth -- members of both groups

2017-02-02 Thread Dave S
On Thursday, February 2, 2017 at 5:12:35 PM UTC-8, Leonel Câmara wrote: > > The most correct way would be to give permission to both groups and then > use requires_permission. > > In auth.add_permission(group_id, 'name', 'object', record_id), what would I specify as the object in order to gate

[web2py] Re: Rocket server and HTTPS

2017-02-02 Thread Dave S
On Thursday, February 2, 2017 at 4:47:06 PM UTC-8, Leonel Câmara wrote: > > Check this topic: > > https://groups.google.com/forum/#!topic/web2py/uesX9TgA2Xk > > It appears to be exactly the same problem. > Thanks. I'll have to read it at least twice. The is on an AWS Linux system, BTW, and I d

[web2py] Re: Auth -- members of both groups

2017-02-02 Thread Leonel Câmara
The most correct way would be to give permission to both groups and then use requires_permission. If you don't plan on using permissions: @auth.requires(auth.has_membership('green') or auth.has_membership('blue')) def functionX(): ... -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Rocket server and HTTPS

2017-02-02 Thread Leonel Câmara
Check this topic: https://groups.google.com/forum/#!topic/web2py/uesX9TgA2Xk It appears to be exactly the same problem. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Repo

[web2py] Auth -- members of both groups

2017-02-02 Thread Dave S
I'm trying to give members of 2 different groups access to functionX. In the spirit of http://web2py.com/books/default/chapter/29/09/access-control#Combining-requirements> I tried @auth.requires(auth.has_membership(role=green) or auth.has_membership(role= blue)) deffunctionX(): but this di

[web2py] Re: Rocket server and HTTPS

2017-02-02 Thread Dave S
On Thursday, February 2, 2017 at 3:19:38 PM UTC-8, Michael Messmer wrote: > > I dont know much about Rocket. But if you are looking to move towards > nginx in the end. Have you tried any of the install scripts @ > https://github.com/web2py/web2py/tree/master/scripts ? > > Nope, waiting on my tu

[web2py] Re: Rocket server and HTTPS

2017-02-02 Thread Michael Messmer
I dont know much about Rocket. But if you are looking to move towards nginx in the end. Have you tried any of the install scripts @ https://github.com/web2py/web2py/tree/master/scripts ? On Thursday, February 2, 2017 at 1:49:57 PM UTC-8, Dave S wrote: > > Trying to use HTTPS with the Rocket serv

[web2py] Rocket server and HTTPS

2017-02-02 Thread Dave S
Trying to use HTTPS with the Rocket server, I get this message from Firefox: An error occurred during a connection to myserver.moc. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG I've avoided using HTTPS with the Rocket server in the

[web2py] Re: Docker

2017-02-02 Thread Michael Messmer
Sweet On Thursday, February 2, 2017 at 6:30:29 AM UTC-8, mcm wrote: > > Nice! I will try to test it on AWS when time permits. > > Il giorno giovedì 2 febbraio 2017 08:58:54 UTC+1, Michael M ha scritto: >> >> Hello all, I put together a docker build: >> >> https://github.com/preactive/web2py-docker

Re: [web2py] Re: web2py and python3

2017-02-02 Thread Paolo Valleri
In the last months few patches have been accepted in the current master branch, as a result web2py core components can be tested on py3 too. Few features are missing see https://github.com/web2py/web2py/issues/1353. Feel free to try and report/fix any new issue discovered. Paolo On Thursday, Fe

Re: [web2py] Re: error on application hosted on centos

2017-02-02 Thread Áureo Dias Neto
This works, is permission error... But now, i define on the route file, a default application, if i access " http://xxx.xxx.xxx.xxx"; i get the app i defined, but if access " http://xxx.xxx.xxx.xxx/"; i get the Welcome app.. how to resolve this? 2017-02-02 14:42 GMT-02:00 Leonel Câmara : > Make

[web2py] Re: error on application hosted on centos

2017-02-02 Thread Leonel Câmara
Make sure to chown everything in the web2py directory to the webserver's user. -- 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

[web2py] cannot access my app via http. only via https

2017-02-02 Thread António Ramos
Hello i try to log into my app via http and it keeps asking me the login credentials but if i change the url to https i log in immediately I´m using a regular user account, not admin! How can it be? Regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - ht

[web2py] Re: japronto

2017-02-02 Thread mcm
I agree nice and could be useful in speedy services and we should see if it can be used in front of web2py. But it is more important for the long term that we start to think about leveraging HTTP/2 soon Il giorno mercoledì 1 febbraio 2017 16:23:46 UTC+1, Anthony ha scritto: > > On Wednesday, F

[web2py] Re: Docker

2017-02-02 Thread mcm
Nice! I will try to test it on AWS when time permits. Il giorno giovedì 2 febbraio 2017 08:58:54 UTC+1, Michael M ha scritto: > > Hello all, I put together a docker build: > > https://github.com/preactive/web2py-docker-centos7-nginx-uwsgi > > I tested it out on a CentOS7 Azure docker host image. W

Re: [web2py] Re: web2py and python3

2017-02-02 Thread Muhammad Hashim Malik
Its about eight months passed but no news about web3py. What's the latest updated in this regard? On Wednesday, 25 May 2016 03:17:46 UTC+5, Dave S wrote: > > > > On Tuesday, May 24, 2016 at 1:42:35 PM UTC-7, Sayth Renshaw wrote: >> >> Of course though as Massimo cited all education institutions

Re: [web2py] Re: error on application hosted on centos

2017-02-02 Thread Áureo Dias Neto
My welcome app work great, it's accept create users etc. but the admin cannot create/delete/import existing apps, it's get error. 2017-02-02 1:32 GMT-02:00 Áureo Dias Neto : > I use sqlite, how to test the connection string? > And i dont know the corrects permissions to set, if you can say, pleas