示例#1
0
文件: views.py 项目: tedwen/tea-scrum
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')
示例#2
0
文件: views.py 项目: tedwen/tea-scrum
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')
示例#3
0
文件: views.py 项目: tedwen/tea-scrum
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")
示例#4
0
文件: views.py 项目: tedwen/tea-scrum
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")
示例#5
0
文件: views.py 项目: tedwen/tea-scrum
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')
示例#6
0
文件: views.py 项目: tedwen/tea-scrum
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")