I defined a table 'register"
db.define_table('register',
Field('nodeID','reference node'),
Field('viewID','reference view'),
Field('groupID',type=''),
...
migrate=False)
The view a user chooses determines the groups he can become a member of, so
groupID
can be empty or contain one or more groupIDs. Of what type must groupID be
to implement
this?
In case I do the following:
groupslist=db(db.group.id>3).select(db.group.id,db.group.name)
groupID.requires=IS_IN_SET(groupslist,multiple=True)
when I process the register form, how would I process the groupID field in
case I want to
insert records into a membership table when the checkbox in the multiple
select is checked:
db.membership.insert(nodeID=form.vars.nodeID,groupID=form.vars.groupID)
Kind regards,
Annet
--
---
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.