just comments, fixme
authorFlorian Schweikert <kelvan@logic.at>
Wed, 28 Sep 2011 21:31:24 +0000 (23:31 +0200)
committerFlorian Schweikert <kelvan@logic.at>
Wed, 28 Sep 2011 21:31:24 +0000 (23:31 +0200)
gotovienna/routing.py
scotty

index d8392a1..98d0573 100644 (file)
@@ -54,7 +54,6 @@ def split_station(station):
     >>> split_station('Karlsplatz')
     ('Karlsplatz', 'Wien')
     """
-    print "split:", station
     if len(station.split(',')) > 1:
         return (station[:station.rindex(',')].strip(), station.split(',')[-1].strip())
     else:
@@ -192,6 +191,7 @@ class rParser:
             if (y.find("-") > 0):
                 return map(lambda z: time(*map(int, z.split(':'))), y.split('-'))
             else:
+                # FIXME Error if date in line (dateLineCross)
                 return map(lambda z: time(*map(int, z.split(':'))), wrap(y, 5))
         else:
             return []
diff --git a/scotty b/scotty
index 920abba..bfc0e82 100755 (executable)
--- a/scotty
+++ b/scotty
@@ -35,12 +35,9 @@ while not finished:
     if state == PageType.CORRECTION:
         try:
             cor = parser.get_correction()
-            print "A", args.origin, args.destination
             origin, origin_place = split_station(args.origin)
             destination, destination_place = split_station(args.destination)
             
-            print "B", origin, origin_place, destination, destination_place
-            
             # FIXME refactoring
             
             if cor.has_key('origin'):
@@ -95,7 +92,6 @@ while not finished:
     
                 destination_place = cor['destination_place'][int(l) - 1]
                 
-            print origin, origin_place, destination, destination_place
             args.origin = '%s, %s' % (origin, origin_place)
             args.destination = '%s, %s' %(destination, destination_place)