Re: [web2py] lgoin_bare WTF???

2018-12-12 Thread Ben Duncan
Yes, I wanted to just use the auth_table. Everything else is controlled outside of the normal mechs .. Thanks *Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division On Wed, Dec 12, 2018 at 4:09 PM Anthony wrote: > login_bare() is intended to log

[web2py] lgoin_bare WTF???

2018-12-12 Thread Anthony
login_bare() is intended to log in the user without the unnecessary form processing of login(). Is there some reason you wouldn't what user_groups updated upon login? It is the list of auth groups of which the user is a member. Anthony -- Resources: - http://web2py.com -

[web2py] Re: count field with update_or_insert()

2018-12-12 Thread Dave S
On Wednesday, December 12, 2018 at 5:38:29 AM UTC-8, Anthony wrote: > > I'm actually taking 2 values from the request as the query (q = mytable.x >> == request.vars.X and mytable.y == request.vars.Y) >> [X is actually not from the vars, but from the env's]. >> update_or_insert() takes care

Re: [web2py] Re: Bug in tools.py

2018-12-12 Thread Ben Duncan
Ok, got it fixed. WAS too busy studying the forest of code to notice my mistake . The "or not" threw me Thanks ... *Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division On Wed, Dec 12, 2018 at 1:08 PM Marcelo Huerta wrote: > Please

[web2py] Re: Bug in tools.py

2018-12-12 Thread Marcelo Huerta
Please open your nearest Python interpreter and type at the ">>> " prompt: help("".strip) -- 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

[web2py] lgoin_bare WTF???

2018-12-12 Thread Ben Duncan
From the Manual: Manual Authentication Some times you want to implement your own logic and do "manual" user login. This can also be done by calling the function: 1 user = auth.login_bare(username, password) login_bare returns user if the user exists and the password is valid, else it returns

[web2py] Bug in tools.py

2018-12-12 Thread Ben Duncan
in tools.py, function :login_bare there is the command: if ((user.registration_key is None or not user.registration_key.strip()) and password == user[settings.passfield]): self.login_user(user) return user strip requires the the import of

Re: [web2py] Where does it GO?

2018-12-12 Thread Ben Duncan
Ok, thanks .. *Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division On Wed, Dec 12, 2018 at 9:36 AM Christian Varas wrote: > It goes to the console where web2py is running or in the error logs of > apache or nginx if you are running web2py in

Re: [web2py] Where does it GO?

2018-12-12 Thread Christian Varas
It goes to the console where web2py is running or in the error logs of apache or nginx if you are running web2py in one of those. Cheers. Chris. El mié., 12 dic. 2018 11:39 a. m., Ben Duncan escribió: > If you put a "print" statement in you application (controller or view) > where does the

[web2py] Where does it GO?

2018-12-12 Thread Ben Duncan
If you put a "print" statement in you application (controller or view) where does the output go? (such as 'print "Testpoint 1") Thanks .. *Ben Duncan* DBA / Chief Software Architect Mississippi State Supreme Court Electronic Filing Division -- Resources: - http://web2py.com -

Re: [web2py] Re: login_bare not working

2018-12-12 Thread Anthony
On Tuesday, December 11, 2018 at 1:58:11 PM UTC-5, Ben Duncan wrote: > > Your right: should be: > Controller: > def user_bare(): > username, password = request.post_vars['username'], > request.post_vars['password'] > if not auth.user: >form = auth.login_bare(username, password) >

[web2py] Re: count field with update_or_insert()

2018-12-12 Thread Anthony
> > I'm actually taking 2 values from the request as the query (q = mytable.x > == request.vars.X and mytable.y == request.vars.Y) > [X is actually not from the vars, but from the env's]. > update_or_insert() takes care of making these more or less unique. The > downside of that is only

[web2py] Re: removing / hiding SQLFORM.grid links in the view, edit, add forms?

2018-12-12 Thread Paul Ellis
After reading the sqlhtml.py for a while last night. I decided to use the same method. Before creating the grid: if request.args(-3) in ('edit', 'view'): On Wednesday, 12 December 2018 00:10:02 UTC+1, Paul Ellis wrote: > > I have a grid with some links. One of the buttons is a placeholder

Re: [web2py] removing / hiding SQLFORM.grid links in the view, edit, add forms?

2018-12-12 Thread Paul Ellis
@Sandeep That will disable the view, edit, create forms completely. I want to use the forms. I just don't want the extra buttons (links) which I use in the grid to appear in these forms. On Wed, Dec 12, 2018 at 6:23 AM sandeep patel wrote: > @Paul, > You can do this way, > grid =