You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by hu...@apache.org on 2016/02/10 10:02:22 UTC
svn commit: r1729555 - /steve/trunk/pysteve/www/cgi-bin/rest_voter.py
Author: humbedooh
Date: Wed Feb 10 09:02:22 2016
New Revision: 1729555
URL: http://svn.apache.org/viewvc?rev=1729555&view=rev
Log:
don't try file operations here, leave that to the db backend
Modified:
steve/trunk/pysteve/www/cgi-bin/rest_voter.py
Modified: steve/trunk/pysteve/www/cgi-bin/rest_voter.py
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/www/cgi-bin/rest_voter.py?rev=1729555&r1=1729554&r2=1729555&view=diff
==============================================================================
--- steve/trunk/pysteve/www/cgi-bin/rest_voter.py (original)
+++ steve/trunk/pysteve/www/cgi-bin/rest_voter.py Wed Feb 10 09:02:22 2016
@@ -171,9 +171,8 @@ if pathinfo:
response.respond(500, {'message': 'Could not create voter ID: %s' % err})
elif action == "peek" and election:
try:
- elpath = os.path.join(homedir, "issues", election)
- if os.path.isdir(elpath):
- basedata = election.getBasedata(electionID, hideHash=True)
+ basedata = election.getBasedata(electionID, hideHash=True)
+ if basedata:
if 'closed' in basedata and basedata['closed'] == True:
raise Exception("This election has closed")
if 'open' in basedata and basedata['open'] == "true":