← Back to team overview

ubuntu-bots team mailing list archive

[Merge] lp:~lderan/ubuntu-bots/meeetingology-output into lp:~ubuntu-bots/ubuntu-bots/meetingology

 

Thomas Molloy has proposed merging lp:~lderan/ubuntu-bots/meeetingology-output into lp:~ubuntu-bots/ubuntu-bots/meetingology.

Requested reviews:
  Ubuntu IRC Bots (ubuntu-bots)

For more details, see:
https://code.launchpad.net/~lderan/ubuntu-bots/meeetingology-output/+merge/205428

Changed the layout for the vote output and set Jose to be the one notified when a meeting ends
-- 
https://code.launchpad.net/~lderan/ubuntu-bots/meeetingology-output/+merge/205428
Your team Ubuntu IRC Bots is requested to review the proposed merge of lp:~lderan/ubuntu-bots/meeetingology-output into lp:~ubuntu-bots/ubuntu-bots/meetingology.
=== modified file 'meeting.py'
--- meeting.py	2014-02-07 16:06:41 +0000
+++ meeting.py	2014-02-07 17:18:29 +0000
@@ -90,7 +90,7 @@
                          "\n"
                          "Minutes:        %(urlBasename)s.moin.txt")
     endMeetingNotification = ("Meeting in %(channel)s has just ended")
-    endMeetingNotificationList = ["lderan"]
+    endMeetingNotificationList = ["jose"]
                          
     #TODO: endMeetingMessage should get filenames from the writers
 

=== modified file 'writers.py'
--- writers.py	2014-02-07 16:13:27 +0000
+++ writers.py	2014-02-07 17:18:29 +0000
@@ -1218,7 +1218,7 @@
         if len(M.votes) > 0:
             for m in M.votes:
                 # differentiate denied votes somehow, strikethrough perhaps?
-                Votes.append(" * [[%(fullLogsFullURL)s#"+str(M.votes[m][3])+" "+m+"]]")
+                Votes.insert(0," * [[%(fullLogsFullURL)s#"+str(M.votes[m][3])+" "+m+"]]"))
                 motion = "Deadlock"
                 if(M.votes[m][0] > M.votes[m][1]):
                     motion = "Motion carried"
@@ -1227,7 +1227,7 @@
                 Votes.insert(0,"  * " + motion + " (For/Against/Abstained "+str(M.votes[m][0])+"/"+str(M.votes[m][2])+"/"+str(M.votes[m][1]) + ")")
                 if len(M.publicVoters[m]) > 0:
                     publicVoters = ', '.join(set(M.publicVoters[m]))
-                    Votes.append("   *  Voters " + publicVoters)
+                    Votes.insert(0, "   *  Voters " + publicVoters)
         Votes = "\n".join(Votes) 
         return Votes