I'm never EVER getting either a n_form.process().accepted  nor a
in_form.errors hit in the controller

 The following python default code tested with BOTH SQLFROM.factory AND the
FORM

>From controller default.py: (Version with FORM)
----------------------------------------------------------------------------------------------------------------------------
def login():
    print "Doing the LOGIN form ...\n"

    in_form = FORM('login',
       INPUT(_name='userid' ),
       INPUT(_name='password') ,
       INPUT(_name='rememberlogin' ),
       INPUT(_type='submit'))
    #in_form = SQLFORM.factory(
    #    Field('userid' , requires=IS_NOT_EMPTY()),
    #    Field('password' ),
    #    Field('rememberlogin' ),
    #    formstyle='divs',
    #    submit_button=' Submit ',
    #    table_name='login'
    #    )
    #in_form[0][-1][1][0]['_class']='button'

    print "Doing the process form testing ...\n"
    if in_form.process().accepted :
        print "Doing the LOGIN Accepts...\n"
        response.flash = 'form accepted'
    elif in_form.errors :
        print "Doing the LOGIN error...\n"
        response.flash = 'form has errors'

    return dict()
    #return dict(form=in_form)
--------------------------------------------------------------------------------------------------------------------------------------------------------------
And in the view (login.html) I have tried:
<input type="hidden" name="_formname" value="login" />
OR the SQLFORM value {{=from}} or EVEN nothing (both input type and =form
removed)

I Always NEVER EVER get the in_form.process().accepted : nor the
in_form.errors
hit.

Here is the Following logs from the print statements:

Thu Feb 14 11:34:59.578023 2019] [wsgi:error] [pid 29474] [remote
10.13.69.144:51763] Starting the DEFAULT Python Stuff ...
[Thu Feb 14 11:34:59.579647 2019] [wsgi:error] [pid 29474] [remote
10.13.69.144:51763] Doing the LOGIN form ...
[Thu Feb 14 11:34:59.579706 2019] [wsgi:error] [pid 29474] [remote
10.13.69.144:51763]
[Thu Feb 14 11:34:59.579903 2019] [wsgi:error] [pid 29474] [remote
10.13.69.144:51763] Doing the process form testing ...
[Thu Feb 14 11:34:59.579942 2019] [wsgi:error] [pid 29474] [remote
10.13.69.144:51763]
[Thu Feb 14 11:36:19.560354 2019] [wsgi:error] [pid 29474] [remote
10.13.69.144:51774] Starting the DEFAULT Python Stuff ...
[Thu Feb 14 11:36:19.562100 2019] [wsgi:error] [pid 29474] [remote
10.13.69.144:51774] Doing the LOGIN form ...
[Thu Feb 14 11:36:19.562156 2019] [wsgi:error] [pid 29474] [remote
10.13.69.144:51774]
[Thu Feb 14 11:36:19.562404 2019] [wsgi:error] [pid 29474] [remote
10.13.69.144:51774] Doing the process form testing ...
[Thu Feb 14 11:36:19.562444 2019] [wsgi:error] [pid 29474] [remote
10.13.69.144:51774]
[Thu Feb 14 11:36:25.923173 2019] [wsgi:error] [pid 29474] [remote
10.13.69.144:51788] Starting the DEFAULT Python Stuff ...
[Thu Feb 14 11:36:25.924805 2019] [wsgi:error] [pid 29474] [remote
10.13.69.144:51788] Doing the LOGIN form ...
[Thu Feb 14 11:36:25.924862 2019] [wsgi:error] [pid 29474] [remote
10.13.69.144:51788]
[Thu Feb 14 11:36:25.925040 2019] [wsgi:error] [pid 29474] [remote
10.13.69.144:51788] Doing the process form testing ...
[Thu Feb 14 11:36:25.925073 2019] [wsgi:error] [pid 29474] [remote
10.13.69.144:51788]

Ok, What could I be doing wrong, or am I missing something critical here ?

Thanks ..


*Ben Duncan*
DBA / Chief Software Architect
Mississippi State Supreme Court
Electronic Filing Division

-- 
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 because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to