I have the following code:
form = SQLFORM.factory(Field('auth_group', 'integer', label='Groups',required
=True), formname='membership', submit_button='Add Membership')
if form.process().accepted:
user_update = form.vars
if user_update['auth_group'] and user_update['auth_group'] != '0':
db.auth_membership.insert(user_id=userId, group_id=user_update[
'auth_group'])
redirect('#')
When I click on my add button it refreshes the page, but nothing else
happens. It never gets past the form.process().accepted:
I've been staring at this for an hour and can't see what I'm doing wrong.
What am I not seeing?
-Jim
--
---
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/groups/opt_out.