Author: humbedooh
Date: Thu Mar 26 10:52:00 2015
New Revision: 1669315

URL: http://svn.apache.org/r1669315
Log:
pass basedata instead of election ID, it's more useful

Modified:
    steve/trunk/pysteve/lib/election.py

Modified: steve/trunk/pysteve/lib/election.py
URL: 
http://svn.apache.org/viewvc/steve/trunk/pysteve/lib/election.py?rev=1669315&r1=1669314&r2=1669315&view=diff
==============================================================================
--- steve/trunk/pysteve/lib/election.py (original)
+++ steve/trunk/pysteve/lib/election.py Thu Mar 26 10:52:00 2015
@@ -166,7 +166,7 @@ def vote(electionID, issueID, voterID, v
         voteType = getVoteType(issueData)
         if 'vote_func' in voteType and voteType['vote_func']:
             # This will/should raise an exception if the vote is invalid
-            voteType['vote_func'](electionID, issueID, voterID, vote)
+            voteType['vote_func'](basedata, issueID, voterID, vote)
             
         if config.get("database", "dbsys") == "file":
             issuepath = os.path.join(homedir, "issues", electionID, issueID) + 
".json"


Reply via email to