From: Andy T. <an...@us...> - 2005-12-13 11:13:47
|
Update of /cvsroot/pythoncard/PythonCard/samples/moderator In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19204/moderator Modified Files: moderator.py Log Message: Removed all of the plain except: clauses I could Index: moderator.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/moderator/moderator.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** moderator.py 30 Aug 2004 14:49:51 -0000 1.8 --- moderator.py 13 Dec 2005 11:13:23 -0000 1.9 *************** *** 2,8 **** """ __version__ = "$Revision$" __date__ = "$Date$" - """ import sys --- 2,13 ---- """ + Moderator, as you may have guessed, is a moderation tool. + + As someone raises their hand to speak, the moderator clicks their name and it goes on the list of people waiting to speak, in order. When someone is speaking, they have a certain number of minutes to speak. It works best when there's a projector, so everyone can see they're on the list and the speaker can see how much time they have left. + + Contributed to the PythonCard community 4/23/2004 by Bruce Eckel + """ __version__ = "$Revision$" __date__ = "$Date$" import sys *************** *** 18,22 **** self.clockTimer = timer.Timer(self.components.txtTime, -1) self.clockModel = CountdownClockModel(MAX_TIME) - self.delegates = ModeratorModel() if len(sys.argv) > 1: --- 23,26 ---- *************** *** 26,37 **** try: lines = open(fname).readlines() ! except: lines = [] - - for delegate in lines: if delegate.strip(): self.delegates.add(delegate.strip()) - self.update() --- 30,38 ---- try: lines = open(fname).readlines() ! except IOError: lines = [] for delegate in lines: if delegate.strip(): self.delegates.add(delegate.strip()) self.update() *************** *** 95,99 **** self.update() - class CountdownClockModel: def __init__(self, max): --- 96,99 ---- |