Re: [web2py] Re: Freshly cloned web2py, grid example says "not authorized"

2020-09-22 Thread AGRogers
Yes, I got bitten by this too. My opinion is that this decorator (and others like it) should start commented out. These little obstacles can make those first weeks unnecessarily harder. On Wed, 23 Sep 2020, 1:18 pm BigBaaadBob, wrote: > Yes, thanks. I’m just surprised this doesn’t work In the We

[web2py] Re: Freshly cloned web2py, grid example says "not authorized"

2020-09-22 Thread BigBaaadBob
Yes, thanks. I’m just surprised this doesn’t work In the Welcome application out of the box. I’m not writing a new application; I’m just clicking on the buttons provided in unchanged freshly cloned code. On Tuesday, September 22, 2020 at 11:04:00 AM UTC-7 Константин Комков wrote: > Hello! You n

[web2py] Re: Freshly cloned web2py, grid example says "not authorized"

2020-09-22 Thread Константин Комков
Hello! You need to comment decorator #@auth.requires_membership('admin') or add your user in 'admin' group see chapter 9 Access Control in The book. Also set table name, forexample: tablename = 'auth_user' -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github

[web2py] How can I use vue attributes inside FORM?

2020-09-22 Thread Константин Комков
I don't know but it's not working: SELECT(*years, _name='year', _id='year', requires=IS_INT_IN_RANGE(request.now.year - 1, request.now.year + 1, error_message="Year isn't correct!'"), _class='form-control', **{'_v-model': 'year'}) -- Resources: -

[web2py] Freshly cloned web2py, grid example says "not authorized"

2020-09-22 Thread BigBaaadBob
I just now cloned (recursive) the web2py distro, started it, and clicked on the "grid example" button in the welcome application. I then registered when asked to authenticate. I got redirected back to the welcome app index page. I then click on the "grid example" button again and I get "Not aut