[web2py] auth.settings.extra_fields and on_define
Is it possible to add the keyword argument on_define to auth.settings.extra_fields['auth_user'] Kind regards, Annet -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/e185a463-614b-4a79-9954-ccc64ea59ad3%40googlegroups.com.
[web2py] auth.settings.extra_fields problem
This don't work: auth.settings.extra_fields['auth_user']= [ Field('id_dep','reference departement'),] : Cannot resolve reference departement in auth_user definition This work: auth.settings.extra_fields['auth_user']= [ Field('id_dep','integer'),] Why? Is there a way to make it work? -- 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.
[web2py] auth.settings.extra_fields - do not show on registration?
Is it possible to add extra fields into auth and not have them shown/asked on the registration page but only on the user settings page? -- --- 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/groups/opt_out.
[web2py] auth.settings.extra_fields
Hi, i have a problem. In my models/db.py file i have this code: auth.settings.extra_fields['auth_user'] = [Field('deleted', 'boolean', default=False), Field('company_id', 'reference companies', requires=IS_IN_DB(db,db.companies.id))] In my models/companies/comanies.py file i have: db.define_table('companies', Field('name', 'string', required=True, requires=IS_NOT_EMPTY(), label=LABEL(T("Naziv"), _for="companies_name")), Field('url_sufix', 'string', required=True, requires=IS_NOT_EMPTY(), unique=True, label=LABEL(T("Url-sufix"), _for="companies_url_sufix" )), Field('logo', 'upload', label=LABEL(T("Logo"), _for="companies_logo")), Field('deleted', 'boolean')) I am receiving an error saying: 'DAL' object has no attribute 'companies' What is wrong? -- --- 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/groups/opt_out.
[web2py] auth.settings.extra_fields['auth_user']
Hi folks, i have a problem. I am using form widget i am trying to customize registration form. I my model i added auth.settings.extra_fields['auth_user'] = [Field('company_id', 'string',required =True)] in my register.html view i have. {{form.custom.widget.company_id['_class'] = 'w70'}} TvrtkaOdaberite tvrtku {{=form.custom.widget.company_id}} when i submit the form i am not receiving any error messages. Am i missing something? -- --- 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/groups/opt_out.