Editing Maemo.org team/Generating election results

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 20: Line 20:
#* Ensure HTML attributes are quoted (colspan, rowspan, border, cellspacing)
#* Ensure HTML attributes are quoted (colspan, rowspan, border, cellspacing)
#* Massage output as necessary (removing "symbols are elected" for characters survey, replacing characters with HTML entities, etc)
#* Massage output as necessary (removing "symbols are elected" for characters survey, replacing characters with HTML entities, etc)
-
# Insert results in non-production database to test (ensure that the file is world readable & the directory hierarchy is world executable, and that the DB user has the FILE privilege):
+
# Insert results in non-production database to test:
#: mysql -uelection -p election
#: mysql -uelection -p election
-
#: $ insert into election_results values (8 <the election_id on the results URL above>, LOAD_FILE('/path/to/html/file');
+
#: $ insert into election_results values (8 <the election_id on the results URL above>, '<copy & paste HTML file>');
# Check that results display correctly, and massage results field if needed.
# Check that results display correctly, and massage results field if needed.
# Dump insert from non-prod DB to send for insertion in prod DB (as an SQL statement, to make it as easy as possible - ensures quoting & character escaping is done correctly):
# Dump insert from non-prod DB to send for insertion in prod DB (as an SQL statement, to make it as easy as possible - ensures quoting & character escaping is done correctly):

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)