Commits

Frederic De Groef committed a77f6fd

pulling the plug

Comments (0)

Files changed (6)

 
 
 # The date of the monday in the first week of the gehol calendar. This will be changed once a year.
-FIRST_MONDAY = "19/09/2011"
+FIRST_MONDAY = "17/09/2012"
 
 # the weekspans of the various periods in the academic year
 ALL_YEAR_WEEKSPAN = "1-36"
 
 
 # There are 3 exam sessions. It's not useful to list them all year long.
-CURRENT_EXAM_SESSION = 'september'
+CURRENT_EXAM_SESSION = None
 EXAM_SESSION_WEEKSPANS = {'january':JANUARY_EXAMS_WEEKSPAN,
                           'june':JUNE_EXAMS_WEEKSPAN,
                         'september':SEPTEMBER_EXAMS_WEEKSPAN}
 
 # A bunch of URLs which might change because what the hell
 GEHOL_FRONTEND_URL = 'scientia-web.ulb.ac.be'
-SCIENTIA_BACKEND_HOST = "164.15.72.157:8081"
+SCIENTIA_BACKEND_HOST = "164.15.72.157:8080"
 
 
 # qrcode urls templates.

coursecalendar.py

 import conf
 import version
 
+
+
 def rebuild_gehol_url(group_id):
-    return "http://164.15.72.157:8081/Reporting/Individual;Student%20Set%20Groups;id;"+group_id+"?&template=Ann%E9e%20d%27%E9tude&weeks=1-36&days=1-6&periods=5-33&width=0&height=0"
+    return "http://" + conf.SCIENTIA_BACKEND_HOST+ "/Reporting/Individual;Student%20Set%20Groups;id;"+group_id+"?&template=Ann%E9e%20d%27%E9tude&weeks=1-36&days=1-6&periods=5-33&width=0&height=0"
 
 
 
 
     def _render_calendar_summary(self, cal, course_mnemo):
         ical_url, csv_url = self._build_file_urls(course_mnemo)
-        start, end = convert_weekspan_to_dates(conf.Q2_WEEKSPAN, conf.FIRST_MONDAY)
+        start, end = convert_weekspan_to_dates(conf.Q1_WEEKSPAN, conf.FIRST_MONDAY)
 
         template_values = {'version':version.VERSION,
                         'gehol_is_down': is_status_down(),

dependencies/gehol/geholproxy.py

     Entry point for all Gehol queries
     """
 
-    def __init__(self, host="164.15.72.157:8081"):
+    def __init__(self, host="164.15.72.157:8080"):
         """
         - host: optionnal gehol host string. Default value = "164.15.72.157:8080"
         """
         self.host = host
 
-        
+
     def get_course_calendar(self, course_mnemonic, weeks=ALL_YEAR):
         """
         Builds a Gehol query YRL and retrieves the events associated to
         """
         url = self._build_course_query_url(course_mnemonic, weeks)
         return self.get_course_calendar_from_url("http://%s%s" %  (self.host,url))
-        
+
 
     def get_course_calendar_from_url(self, url):
         """
         html_data = self._get_html_data("%s;%s?%s" % (path, params, query))
         cal = CourseCalendar(html_data)
         return cal
-        
+
 
     def get_studentset_calendar(self, group_id, weeks):
         url = self._build_studentset_query_url(group_id, weeks)
                     + params)
 
 
-    
+
     def _get_html_data(self, url):
         """
         Fetches html data. Returns a file-like object from which to
                        "Accept": "text/plain"}
             conn = httplib.HTTPConnection(self.host)
             conn.request("GET", url, headers = headers)
-            response = conn.getresponse()        
+            response = conn.getresponse()
             return response
         except GeholException,e:
             raise ValueError('Could not get fetch url : %s (Reason : %s)' %
                              (url, e.message))
-        
+

stylesheets/blueprint/screen.css

 form.inline p {margin-bottom:0;}
 .error, .notice, .success {padding:.8em;margin-bottom:1em;border:2px solid #ddd;}
 .error {background:#FBE3E4;color:#8a1f11;border-color:#FBC2C4;}
-.notice {background:#FFF6BF;color:#514721;border-color:#FFD324;}
+.notice {background:#FFF6BF;color:#514721;border-color:#FFD324; border-radius: 0.7em;}
 .success {background:#E6EFC2;color:#264409;border-color:#C6D880;}
 .error a {color:#8a1f11;}
 .notice a {color:#514721;}

templates/index.html

 
 {% block content %}
 
+   <div class="notice">
+       <h3 style="text-align: center;">Pulling the plug</h3>
+        
+       <p>
+            I have decided to discontinue supporting this application.
+            Reason being, all the features this service offered (and more) are now available
+            from <a href="http://gehol.ulb.ac.be/gehol/">gehol</a>.
+            I believe this version is in much better shape, and clearly a step in the right direction.
+            Consequently, I don't see any reason to keep this application alive.
+           <br/>
+           Unneeded software is the best kind.
+       </p>
+
+       <p>
+            I'm not killing Gehol Importer though. It will stay operational until the source we use
+            vanishes from the tubes.
+            But I strongly encourage you to move away from here, and forward your ideas for new
+            features and support to the Gehol team.
+        </p>
+
+       <p>
+            I don't know how much this service was an influence to that change. It's good either way,
+            the important part is that some mediocre piece of software died, and will not be missed.
+       </p>
+       
+   </div>
+
+
+    <br/><br/><br/><br/><br/><br/>
    <div class="span-15">
         <h3>You're a professor or a staff member, and you want your schedule for an entire term or an exams session: </h3>
 

templates/main.html

 
             <div class="box">
                 <ul>
+                    <!-- 17/09/2012-->
+                    <li>
+                        Sept 17th, 2012: Curtain call.
+                    </li>
+
                     <!-- 15/07/2012-->
-                    <li>
+                    <!--li>
                         September 2012 exam sessions are online.
-                   </li>
+                   </li-->
                     <!-- 29/12/2011-->
                     <!--li>
                         Second term schedules for 2011-2012 are online.
                   We consider this service useful enough as-is. Minor
                   modifications might come in the future, but don't
                   hold your breath for any paradigm shift. 
-                  For more information, consult <a href="/questions">this page</a>.
+                  For more information, consult <a href="/questions">the FAQ</a>.
                 </p>
                 <p>
                     The authors of this application are not affiliated with either the original GeHoL service
-                    or Scientia&reg;. Questions, comments and suggestions should be sent to the following address : <a href="mailto:geholimportapp@gmail.com?subject=Something about Gehol Importer">geholimportapp@gmail.com</a>
+                    or Scientia&reg;. Questions, comments and suggestions should be sent to the following address :
+                    <a href="mailto:geholimportapp@gmail.com?subject=Something about Gehol Importer">geholimportapp@gmail.com</a>
                 </p>
             </div>