From: yomguy <> Date: Wed, 28 Nov 2007 15:03:52 +0000 (+0000) Subject: Fix nb of courses X-Git-Tag: 0.9~337 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8c7ddd733c834dc25785325aa6e7b8aef9f9af05;p=telecaster-client.git Fix nb of courses --- diff --git a/etc/teleoddcast.cfg b/etc/teleoddcast.cfg index 05cad33..66bd487 100644 --- a/etc/teleoddcast.cfg +++ b/etc/teleoddcast.cfg @@ -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 diff --git a/teleoddcast.py b/teleoddcast.py index d113f30..f59c9a5 100755 --- a/teleoddcast.py +++ b/teleoddcast.py @@ -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\tIntitulé du cours :" print ""