This sounds promising guys. I was thinking that a single "no" could veto the new coach but it might take a majority of "yes" votes to confirm him. Or something similar. I need to create a UUID to represent the vote and I presume a /yes and /no page for the link. It has to be a UUID the new coach never sees, or a clever hacker would just vote "yes" for himself. Come to think of it, each existing coach needs a different UUID so I can prevent multiple voting from any one coach.
On Sun, Mar 7, 2010 at 11:43 PM, Álvaro Justen [Turicas] < alvarojus...@gmail.com> wrote: > On Mon, Mar 8, 2010 at 02:31, weheh <richard_gor...@verizon.net> wrote: > > Seems like a straight-forward thing to implement on top of auth. You > > create a group and allow new user membership to the group if you get a > > majority of votes. Add vote-count percentage as a field to auth_user. > > And then run a cron job that periodically looks at percentage and > > determines whether or not user has crossed threshold required to make > > user a member of the group. > > Cron job? This verification should happen when someone votes 'yes' or > 'no': it verifies if 50%+ votes are 'yes' and if it is true, add that > user in the group. > > > -- > > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > > To post to this group, send email to web...@googlegroups.com. > > To unsubscribe from this group, send email to > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> > . > > For more options, visit this group at > http://groups.google.com/group/web2py?hl=en. > > > > > > > > -- > Álvaro Justen - Turicas > http://blog.justen.eng.br/ > 21 9898-0141 > > -- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to web...@googlegroups.com. > To unsubscribe from this group, send email to > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/web2py?hl=en. > > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.