From 6cad877ab0fce4b58bebe2438ab1abdab5a42f4c Mon Sep 17 00:00:00 2001 From: yomguy Date: Thu, 4 Feb 2010 17:33:48 +0000 Subject: [PATCH] 0.3.6 --- telecaster.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/telecaster.py b/telecaster.py index b38dad5..31d69fb 100755 --- a/telecaster.py +++ b/telecaster.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # *-* coding: utf-8 *-* """ telecaster @@ -20,7 +21,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. """ -version = '0.3.5' +version = '0.3.6' # Only for Unix and Linux systems import os @@ -64,27 +65,27 @@ class TeleCaster: writing = False casting = False writing = rip_pid != [] - casting = odd_pid != [] + casting = odd_pid != [] form = WebView(self.school_file, self.url, version) - + if odd_pid == [] and form.has_key("action") and \ form.has_key("department") and form.has_key("conference") and \ form.has_key("professor") and form.has_key("comment") and \ form["action"].value == "start": - + self.conference_dict = {'title': self.title, 'department': form.getfirst("department"), 'conference': form.getfirst("conference"), 'session': form.getfirst("session"), 'professor': form.getfirst("professor"), 'comment': form.getfirst("comment")} - + s = Station(self.conf_file, self.conference_dict, self.lock_file) s.start() time.sleep(1) #w.stop_form(self.conference_dict, writing, casting) self.main() - + elif odd_pid != [] and os.path.exists(self.lock_file) and not form.has_key("action"): self.conference_dict = get_conference_from_lock(self.lock_file) form.stop_form(self.conference_dict, writing, casting) -- 2.39.5