]> git.parisson.com Git - telecaster-server.git/commitdiff
Fix nb of courses
authoryomguy <>
Wed, 28 Nov 2007 15:03:52 +0000 (15:03 +0000)
committeryomguy <>
Wed, 28 Nov 2007 15:03:52 +0000 (15:03 +0000)
etc/teleoddcast.cfg
teleoddcast.py

index 05cad3342887cab9aacad1599a5e9fe0d49a2f52..66bd487e4314e1cfc6577cca8a6cd2b41ceebc7a 100644 (file)
@@ -1,7 +1,7 @@
 Server=localhost
 Port=8000
 ServerPassword=source2parisson
-ServerMountpoint=/My_station_-_CRFPA_-_Procédure_civile_-_Cours.ogg
+ServerMountpoint=/My_station_-_CRFPA_-_Note_de_synthese_-_Corrections.ogg
 ServerPublic=0
 AutomaticReconnectSecs=10
 Encode=OggVorbis
@@ -13,8 +13,8 @@ ServerType=Icecast2
 ExternalFile=/home/pre-barreau/augustins/audio/
 #YP Settings
 ServerStreamURL=http://www.pre-barreau.com
-ServerName=My_station_-_CRFPA_-_Procédure_civile_-_Cours_-_2
-ServerDescription=My_station_-_CRFPA_-_Procédure_civile_-_Cours_-_2_-_qgf_-_sdg
+ServerName=My_station_-_CRFPA_-_Note_de_synthese_-_Corrections_-_1
+ServerDescription=My_station_-_CRFPA_-_Note_de_synthese_-_Corrections_-_1_-_azdf_-_zaed
 ServerGenre=Teaching
 #Advanced Settings
 LogLevel=1
index d113f30500f4a392bf22916cac4ffa0e868b5d03..f59c9a5e582e89fc49dff01f62dbdeba11ee385a 100755 (executable)
@@ -184,6 +184,7 @@ class WebView:
         #print self.departments
         #self.courses = self.conf['department']['courses']
         self.len_departments = len(self.departments)
+        self.course_nb_max = 40 
 
     def header(self):
         # Required header that tells the browser how to render the HTML.
@@ -211,7 +212,7 @@ class WebView:
             print '       case '+str(k+1)+' : var text = new Array('+courses+'); '
             print '       break;'
         print '       }'
-        print '      for(j = 0; j<50; j++)'
+        print '      for(j = 0; j<'+str(self.course_nb_max)+'; j++)'
         print '       formulaire.course.options[j+1].text=text[j];'
         #print '       formulaire.course.options[j+1].value=text[j];'
         print '}'
@@ -253,7 +254,7 @@ class WebView:
         print "\t\t<TR><TH align=\"left\">Intitul&eacute; du cours :</TH>"
         print "<TD><select name=\"course\">"
         print "<option selected>...........Choisissez un intitul&eacute;...........</option>"
-        for i in range(1,50):
+        for i in range(1,self.course_nb_max):
             print "<option></option>"
         print "</select></TD></TR>"