pysteve/www/cgi-bin/rest_voter.py [68:86]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        elif action == "view":
            # View a list of issues for an election
            if electionID and not issueID:
                js = []
                if election.exists(electionID):
                    try:
                        basedata = election.getBasedata(electionID)
                        if not basedata:
                            raise Exception("Could not load base data")
                        if karma < 3 and not voter.get(electionID, basedata, voterID):
                            raise Exception("Invalid voter ID presented")
                        if 'closed' in basedata and basedata['closed'] == True:
                            raise Exception("This election has closed")
                        for issueID in election.listIssues(electionID):
                            try:
                                entry = election.getIssue(electionID, issueID)
                                entry['hasVoted'] = voter.hasVoted(electionID, issueID, voterID)
                                js.append(entry)
                            except Exception as err:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



pysteve/www/wsgi/rest_admin.py [74:92]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        elif action == "view":
            # View a list of issues for an election
            if electionID and not issueID:
                js = []
                if election.exists(electionID):
                    try:
                        basedata = election.getBasedata(electionID)
                        if not basedata:
                            raise Exception("Could not load base data")
                        if karma < 3 and not voter.get(electionID, basedata, voterID):
                            raise Exception("Invalid voter ID presented")
                        if 'closed' in basedata and basedata['closed'] == True:
                            raise Exception("This election has closed")
                        for issueID in election.listIssues(electionID):
                            try:
                                entry = election.getIssue(electionID, issueID)
                                entry['hasVoted'] = voter.hasVoted(electionID, issueID, voterID)
                                js.append(entry)
                            except Exception as err:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



