def ImportRoutes(self, s):
    "Imports the rec_lin_ber.mdv file."
    # the line id is really qualified with an area_id (BEREICH_NR), but the
    # table of advertised lines does not include area. Fortunately, it seems
    # that line ids are unique across all areas, so we can just throw it away.
    for line_id, name in \
    ReadCSV(s, ['LI_NR', 'LINIEN_BEZ_DRUCK']):
      route = Route()
      route.id = line_id
      route.name = name
      route.color = "FFFFFF"
      route.color_text = "000000"
      if name in TRAM_LINES:
        route.type = TYPE_TRAM
        route.color = TRAM_LINES[name][0]
        route.color_text = TRAM_LINES[name][1]
      else:
        route.type = TYPE_BUS
        if route.name[0:1]=="N":
          route.color = "000000"
          route.color_text = "FFFF00"
      self.routes[route.id] = route
Imports the rec_lin_ber.mdv file.