Google didn't preserve my tabs as spaces, so the indents were off :(
Let.s try that again:
def POST(self):
i = web.input(groups = [])
for checkbox in i.groups:
db.insert("users", email = i.email, name = i.name, groups = checkbox)
or
def POST(self):
i = web.input(groups = [])
for checkbox in i.groups:
if checkbox:
db.insert("users", email = i.email, name = i.name,
groups = checkbox)
-Jim
:x
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.