]> git.parisson.com Git - telecaster-server.git/commitdiff
Transfer version
authoryomguy <>
Tue, 21 Oct 2008 12:38:14 +0000 (12:38 +0000)
committeryomguy <>
Tue, 21 Oct 2008 12:38:14 +0000 (12:38 +0000)
telecaster.py
webview.py

index 5df32d83a2c02519ca99e2428d0b3f5134081552..4b14edb37bf5d4d353cee258e79aeeb5835964d3 100755 (executable)
@@ -64,7 +64,7 @@ class TeleCaster:
         casting = False
         writing = rip_pid != []
         casting = odd_pid != []        
-        form = WebView(self.school_file)
+        form = WebView(self.school_file, version)
         
         if odd_pid == [] and form.has_key("action") and \
             form.has_key("department") and form.has_key("conference") and \
index 50b1f1981e97f80156c3fb114c7c9ac5375e4e0e..55dc7295dde2ef80198a0140625d2f66b584b675 100644 (file)
@@ -20,9 +20,6 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 """
 
-version = '0.3.5'
-# Only for Unix and Linux systems
-
 import os
 import cgi
 import cgitb
@@ -40,8 +37,9 @@ cgitb.enable()
 class WebView(FieldStorage):
     """Gives the web CGI frontend"""
     
-    def __init__(self, school_file):
+    def __init__(self, school_file, version):
         FieldStorage.__init__(self)
+        self.version = version
         self.conf = xml2dict(school_file)
         self.conf = self.conf['telecaster']
         self.interfaces = ['eth0', 'eth1', 'eth2']
@@ -114,7 +112,7 @@ class WebView(FieldStorage):
     def colophon(self):
         date = datetime.datetime.now().strftime("%Y")
         print "<div class=\"colophon\">"
-        print "TeleCaster "+version+" &copy; <span>"+date+"</span>&nbsp;<a href=\"http://parisson.com\">Parisson SARL</a>. Tous droits r&eacute;serv&eacute;s."
+        print "TeleCaster "+self.version+" &copy; <span>"+date+"</span>&nbsp;<a href=\"http://parisson.com\">Parisson SARL</a>. Tous droits r&eacute;serv&eacute;s."
         print "</div>"
             
     def footer(self):