[web2py] Re: no email field in auth_user

2015-02-23 Thread José Eloy
Thanks guys for all the help. I checked my program again and now it works: db2.auth_user.email.readable = False db2.auth_user.email.writable = False were the solution. The email field is not shown as I did wish. My fault, I was checking the password field! (sorry, I was confused). Regards. --

[web2py] Re: no email field in auth_user

2015-02-18 Thread Anthony
I cannot reproduce the problem -- if I set the readable and writable attributes of the email field to False, I get no email field in any form based on db.auth_user, and I am able to submit new records. There must be some additional code somewhere you haven't shown that is resetting those attrib

[web2py] Re: no email field in auth_user

2015-02-18 Thread José Eloy
Thanks guys for your answers: I'm using a standard SQLFORM to create my form: form = SQLFORM(db2.auth_user, submit_button="Aceptar", deletable=True, showid=False, formstyle='divs', _id='form_administrador') Where is the problem? -- Resources: - http://web2py.com - http://web2py.com/book (

[web2py] Re: no email field in auth_user

2015-02-18 Thread Annet
I had a similar issue, the problem was the validator on email: requires = is_unique_email is_unique_email = [ IS_EMAIL(error_message=self.messages.invalid_email), IS_NOT_IN_DB(db, '%s.email' % settings.table_user_name, error_message=self.messag

[web2py] Re: no email field in auth_user

2015-02-17 Thread Anthony
In what forms are you seeing the email field appear? On Tuesday, February 17, 2015 at 5:58:05 PM UTC-5, José Eloy wrote: > > Anthony: > > Here's how I did it (db.py): > > auth = Auth(db2) > > auth.settings.extra_fields['auth_user'] = [ > Field('tipo_asunto', 'list:reference tipos_de_asunto'),

[web2py] Re: no email field in auth_user

2015-02-17 Thread José Eloy
Anthony: Here's how I did it (db.py): auth = Auth(db2) auth.settings.extra_fields['auth_user'] = [ Field('tipo_asunto', 'list:reference tipos_de_asunto'), Field('modificar_numero_asunto', 'boolean'), Field('cancelar_numero_asunto', 'boolean'), Field('capturar_nuevas_unidades', 'boolean'

[web2py] Re: no email field in auth_user

2015-02-17 Thread Anthony
Is the email field showing up in the form? How is the form created? On Tuesday, February 17, 2015 at 3:21:07 PM UTC-5, José Eloy wrote: > > Thanks Anthony. > > I did this: > > db2.auth_user.email.readable = db2.auth_user.email.writable = False > > (db2 is the DAL variable) > > But, When I fill my

[web2py] Re: no email field in auth_user

2015-02-17 Thread José Eloy
Thanks Anthony. I did this: db2.auth_user.email.readable = db2.auth_user.email.writable = False (db2 is the DAL variable) But, When I fill my form and the email field is empty I get the error "Too short". Really I don't want the email field. How can I fix this? Regards. -- Resources: - http

[web2py] Re: no email field in auth_user

2015-02-16 Thread Anthony
You can ignore it by setting its "readable" and "writable" attributes to False. On Monday, February 16, 2015 at 8:44:56 PM UTC-5, José Eloy wrote: > > Hello! > > I wonder if it is possible to disable (or remove) the email field from > auth_user. In my application I don't need it. > > Thanks for