@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 = SQLFORM.grid(qu
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 whi
>
> 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 know
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)
>
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
- http://web2py.com
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 outp
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 on
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 strin
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 F
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 t
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
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 of
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
- http://web2py.com/book
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
14 matches
Mail list logo