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 2015/03/24 12:40:50 UTC

svn commit: r1668850 - in /steve/trunk/pysteve: lib/election.py www/cgi-bin/rest_admin.py

Author: humbedooh
Date: Tue Mar 24 11:40:50 2015
New Revision: 1668850

URL: http://svn.apache.org/r1668850
Log:
verbosity.

Modified:
    steve/trunk/pysteve/lib/election.py
    steve/trunk/pysteve/www/cgi-bin/rest_admin.py

Modified: steve/trunk/pysteve/lib/election.py
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/lib/election.py?rev=1668850&r1=1668849&r2=1668850&view=diff
==============================================================================
--- steve/trunk/pysteve/lib/election.py (original)
+++ steve/trunk/pysteve/lib/election.py Tue Mar 24 11:40:50 2015
@@ -341,5 +341,5 @@ def getHash(electionID):
         ihash += issuedata['hash']
         output.append("Issue #%s: %s\n- Checksum: %s\n- Votes cast: %u\n" % (issue, issuedata['title'], issuedata['hash'], len(votes)))
     tothash = hashlib.sha224(ihash).hexdigest()
-    output.insert(0, ("The following data shows the state of the election data on disk. If any of these checksums change, especially the main checksum, then the election has been edited (rigged?) after invites were sent out.\n\nMain Election Checksum : %s\n\n" % tothash))
+    output.insert(0, ("You are receiving this data because you are listed as a monitor for this election.\nThe following data shows the state of the election data on disk. If any of these checksums change, especially the main checksum, then the election has been edited (rigged?) after invites were sent out.\n\nMain Election Checksum : %s\n\n" % tothash))
     return tothash, "\n".join(output)

Modified: steve/trunk/pysteve/www/cgi-bin/rest_admin.py
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/www/cgi-bin/rest_admin.py?rev=1668850&r1=1668849&r2=1668850&view=diff
==============================================================================
--- steve/trunk/pysteve/www/cgi-bin/rest_admin.py (original)
+++ steve/trunk/pysteve/www/cgi-bin/rest_admin.py Tue Mar 24 11:40:50 2015
@@ -418,7 +418,7 @@ else:
                 if karma >= 4 or ('owner' in basedata and basedata['owner'] == whoami):
                     ehash, debug = election.getHash(electionID)
                     for email in basedata['monitors']:
-                        voter.email(email, "Monitoring update for election #%s" % electionID, debug)
+                        voter.email(email, "Monitoring update for election #%s: %s" % (electionID, basedata['title']), debug)
                     response.respond(200, {'message': "Debug sent to monitors", 'hash': ehash, 'debug': debug})
                 else:
                     response.respond(403, {'message': "You do not have karma to do this"})