Browse Source

Clean source and config

Olivier Marty 8 years ago
parent
commit
cd30bb87f0
2 changed files with 5 additions and 13 deletions
  1. 5 5
      config.py
  2. 0 8
      source.py

+ 5 - 5
config.py

@@ -7,11 +7,11 @@ api_key = {
 
 # SOURCES D'EVENEMENTS A SURVEILLER
 
-sources = {
-  'ratp_trafic' : ['ligne_rer_B', 'ligne_metro_7'],
-  'transilien' : ['RER-B', 'RER-C', 'Train-U'],
-  'jcdecaux_vls' : ['paris_42707_full', 'paris_42707_empty', 'paris_42703_empty', 'paris_19001_full', 'paris_8038_empty', 'nantes_62_full']
-}
+# sources = {
+#   'ratp_trafic' : ['ligne_rer_B', 'ligne_metro_7'],
+#   'transilien' : ['RER-B', 'RER-C', 'Train-U'],
+#   'jcdecaux_vls' : ['paris_42707_full', 'paris_42707_empty', 'paris_42703_empty', 'paris_19001_full', 'paris_8038_empty', 'nantes_62_full']
+# }
 
 sources_params = {
   'jcdecaux_vls' : {

+ 0 - 8
source.py

@@ -198,11 +198,3 @@ class SourceProvider_transilien(SourceProvider):
           message += det.get_text()
         message = " ".join(message.split()) # delete multiple spaces
         yield Source_transilien(id, message)
-
-
-# interface functions
-
-def from_location(location):
-    """return a list of source ids useful for location
-    TODO : for the moment returns the whole config.sources"""
-    return config.sources