Well the error is pretty explicit. You configured you mail settings wrong and you're probably connecting to a machine that isn't even running a mailserver.--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/AxOk3zS8xUE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/AxOk3zS8xUE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes it is because of your register controller. You're not using the auth provided one which does send the emails.If you want to change the fields that appear in the default register form you can just use auth.settings.register_fields. You can use auth.settings.register_onvalidation to insert the organization if it doesn't exist and put its id in the vars before onaccept. To let the user put any organization there, you can change its widget to be the text one.
--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/AxOk3zS8xUE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
db.define_table('organization',
Field('name', requires=IS_NOT_EMPTY())
)
auth.settings.extra_fields['auth_user'] = [
Field('organization', 'reference organization', widget=SQLFORM.widgets.autocomplete(request, db.organization.name, id_field=db.organization.id))
]
def add_organization(form):
"""
Adds an organization if it doesn't exist, validates all fields.
"""
if not form.vars.organization:
ret = db.organization.validate_and_insert(name=form.vars._autocomplete_organization_name_aux)
if ret.errors:
form.errors.organization = ret.errors['name']
else:
form.vars.organization = ret.id
else:
output, error = IS_IN_DB(db, db.organization.id)(form.vars.organization)
if error is not None:
form.errors.organization = error
auth.settings.register_onvalidation = add_organization
--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/AxOk3zS8xUE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No, all the code in this demo goes into the welcome app (just ask admin to make you a new app), into db.py, before auth.define_tables. All the controllers are the default supplied by welcome.py
--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/AxOk3zS8xUE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.