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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
18 matches
Mail list logo