Alright, forget the cron job. Whenever a vote comes in, compute percentage, check to see if voting is done and set permissions.
On Mar 8, 2:43 am, Á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. > > For more options, visit this group > > athttp://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. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.