def vote(request): """ Submit a value for the voting session. """ try: sid, pid, vote = get_params(request, ['sid', 'pid', 'vote']) except KeyError, e: logger.error('poker.vote() request.get error: %s' % e) return error_response(_('Not enough parameters'), fmt='json')
def stop(request): """ Stop the session. """ try: sid, pid = get_params(request, ['sid', 'pid']) except KeyError, e: logger.error('poker.stop() error: %s' % e) return error_response(_('Not enough parameters'), fmt='json')
def vote(request): """ Submit a value for the voting session. """ try: sid, pid, vote = get_params(request, ["sid", "pid", "vote"]) except KeyError, e: logger.error("poker.vote() request.get error: %s" % e) return error_response(_("Not enough parameters"), fmt="json")
def stop(request): """ Stop the session. """ try: sid, pid = get_params(request, ["sid", "pid"]) except KeyError, e: logger.error("poker.stop() error: %s" % e) return error_response(_("Not enough parameters"), fmt="json")
def collect(request): """ Collect all submitted votes. @return: {"status":"STARTED","votes":{"<uid>":"<vote>","1":3,..}} """ try: sid, pid = get_params(request, ['sid', 'pid']) except KeyError, e: logger.error('poker.collect() error: %s' % e) return error_response(_('Not enough parameters'), fmt='json')
def collect(request): """ Collect all submitted votes. @return: {"status":"STARTED","votes":{"<uid>":"<vote>","1":3,..}} """ try: sid, pid = get_params(request, ["sid", "pid"]) except KeyError, e: logger.error("poker.collect() error: %s" % e) return error_response(_("Not enough parameters"), fmt="json")