now I want to return to default registration

When I disable this:

##auth.settings.actions_disabled = ['register'] ## auto-register disabled; 
forces users to go through my custom registration

I get error after clicking on "Sign up" link

<type 'exceptions.ValueError'> 'password' is not in listVersionweb2py™Version 
2.12.2-stable+timestamp.2015.08.09.14.29.44PythonPython 2.7.9: 
C:\alex\alt_web2py\web2py\web2py.exe (prefix: C:\Python27)Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.

Traceback (most recent call last):
  File "C:\alex\alt_web2py\web2py\gluon\restricted.py", line 227, in restricted
    exec ccode in environment
  File "C:/alex/alt_web2py/web2py/applications/ES1/controllers/default.py" 
<http://127.0.0.1:8000/admin/default/edit/ES1/controllers/default.py>, line 
7519, in <module>
  File "C:\alex\alt_web2py\web2py\gluon\globals.py", line 412, in <lambda>
    self._caller = lambda f: f()
  File "C:/alex/alt_web2py/web2py/applications/ES1/controllers/default.py" 
<http://127.0.0.1:8000/admin/default/edit/ES1/controllers/default.py>, line 
401, in user
    return dict(form=auth())
  File "C:\alex\alt_web2py\web2py\gluon\tools.py", line 1614, in __call__
    return getattr(self, args[0])()
  File "C:\alex\alt_web2py\web2py\gluon\tools.py", line 2900, in register
    k = self.settings.register_fields.index("password")
ValueError: 'password' is not in list

Error snapshot [image: help] 
<http://127.0.0.1:8000/admin/default/ticket/ES1/127.0.0.1.2015-12-24.15-10-27.ce4f8f93-a63f-4201-9cec-8fb70aa468d2#>

<type 'exceptions.ValueError'>('password' is not in list)

inspect attributes
Frames
   
   - 
   
   *File C:\alex\alt_web2py\web2py\gluon\restricted.py in restricted at 
   line 227* code arguments variables
   - 
   
   *File C:\alex\alt_web2py\web2py\applications\ES1\controllers\default.py 
   in <module> at line 7519* code arguments variables
   - 
   
   *File C:\alex\alt_web2py\web2py\gluon\globals.py in <lambda> at line 412*
    code arguments variables
   - 
   
   *File C:\alex\alt_web2py\web2py\applications\ES1\controllers\default.py 
   in user at line 401* code arguments variables
   Code listing
   
   396.
   397.
   398.
   399.
   400.
   401.
   
   402.
   403.
   404.
   405.
   
       use @auth.requires_login()
           @auth.requires_membership('group name')
           @auth.requires_permission('read','table name',record_id)
       to decorate functions that need access control
       """
       return dict(form=auth())
   
   
   
   
   - 
   
   *File C:\alex\alt_web2py\web2py\gluon\tools.py in __call__ at line 1614* 
   code arguments variables
   - 
   
   *File C:\alex\alt_web2py\web2py\gluon\tools.py in register at line 2900* 
   code arguments variables
   Function argument list
   
   (self=<gluon.tools.Auth object>, next='/ES1/default/index', 
   onvalidation=[], onaccept=[], log='User %(id)s Registered')
   Code listing
   
   2895.
   2896.
   2897.
   2898.
   2899.
   2900.
   
   2901.
   2902.
   2903.
   2904.
   
           passfield = self.settings.password_field
           formstyle = self.settings.formstyle
           if self.settings.register_verify_password:
               if self.settings.register_fields == None:
                   self.settings.register_fields = [f.name for f in table_user 
if f.writable]
                   k = self.settings.register_fields.index("password")
   
                   self.settings.register_fields.insert(k+1, "password_two")
               extra_fields = [
                   Field("password_two", "password", requires=IS_EQUAL_TO(
                           request.post_vars.get(passfield, None),
   
   Variablesself.settings.register_fields['first_name', 'last_name', 
   'email', 'personMiddleName', 'currentPosition', 'pastPosition', 
   'education', 'summarySelfDescription', 'keyWords', 'thumbnail', 
   'timeZonePreference', 'publicContactInfo', 'motto', 'favoriteLandingPage']
   kundefinedself<gluon.tools.Auth object>self.settings<Storage 
   {'verify_email_onaccept': [], 'register... 'retrieve_username_next': 
   '/ES1/default/index'}>self.settings.register_fields.index<built-in 
   method index of list object>
   


thanks

Alex Glaros

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to