Ignore:
Timestamp:
Dec 23, 2011, 8:31:50 AM (13 years ago)
Author:
rick
Message:

Correct annoying typo in naming of the acces*s* point.

Location:
src/django_gheat/gheat/dataimport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/gheat/dataimport/__init__.py

    r9818 r9819  
    7474
    7575
    76 def import_accespoints(ap_pool, counters):
    77   # Determine which Accespoints to add
    78   bssid_list_present = Accespoint.objects.filter(mac__in=ap_pool.keys()).\
     76def import_accesspoints(ap_pool, counters):
     77  # Determine which Accesspoints to add
     78  bssid_list_present = Accesspoint.objects.filter(mac__in=ap_pool.keys()).\
    7979    values_list('mac', flat=True)
    8080  bssid_list_insert = set(ap_pool.keys()) - set(bssid_list_present)
     
    8585    for bssid in bssid_list_insert:
    8686      ssid, encryption = ap_pool[bssid]
    87       type = Accespoint.get_type_by_ssid(ssid)
     87      type = Accesspoint.get_type_by_ssid(ssid)
    8888      # Special trick in SSID ts avoid escaping in later stage
    8989      item = str((bssid.upper(),ssid.replace('%','%%'),encryption,
    90          Accespoint.get_type_by_ssid(ssid),
     90         Accesspoint.get_type_by_ssid(ssid),
    9191        get_organization_id_by_ssid(ssid)))
    9292      sql_values.append(item)
    93     counters['ap_added'] = bulk_sql('gheat_accespoint (`mac`, `ssid`,\
     93    counters['ap_added'] = bulk_sql('gheat_accesspoint (`mac`, `ssid`,\
    9494      `encryptie`, `type`, `organization_id`)',sql_values)
    9595  return counters
     
    104104  # Build mapping for meting import
    105105  mac2id = {}
    106   for mac,id in Accespoint.objects.filter(mac__in=bssid_list).\
     106  for mac,id in Accesspoint.objects.filter(mac__in=bssid_list).\
    107107    values_list('mac','id'):
    108108    mac2id[mac] = int(id)
     
    134134  if sql_values:
    135135    counters['meting_added'] = bulk_sql('gheat_meting (`meetrondje_id`,\
    136       `accespoint_id`, `latitude`, `longitude`, `signaal`)',sql_values)
     136      `accesspoint_id`, `latitude`, `longitude`, `signaal`)',sql_values)
    137137  return counters
    138138
     
    186186
    187187  if ap_pool:
    188     counters = import_accespoints(ap_pool, counters)
     188    counters = import_accesspoints(ap_pool, counters)
    189189  if client_pool:
    190190    counters = import_clients(client_pool, counters)
     
    192192    counters = import_metingen(meetrondje, meting_pool, counters)
    193193
    194   logger.debug("summary accespoints: total:%(ap_total)-6s added:%(ap_added)-6s failed:%(ap_failed)-6s ignored:%(ap_ignored)-6s" % counters)
     194  logger.debug("summary accesspoints: total:%(ap_total)-6s added:%(ap_added)-6s failed:%(ap_failed)-6s ignored:%(ap_ignored)-6s" % counters)
    195195  logger.debug("summary client     : total:%(client_total)-6s added:%(client_added)-6s failed:%(client_failed)-6s ignored:%(client_ignored)-6s" % counters)
    196196  logger.debug("summary metingen   : total:%(meting_total)-6s added:%(meting_added)-6s failed:%(meting_failed)-6s ignored:%(meting_ignored)-6s" % counters)
  • src/django_gheat/gheat/dataimport/kismet.py

    r9668 r9819  
    1717    raise IOError(e)
    1818
    19   # Prepare new accespoints and measurements
     19  # Prepare new accesspoints and measurements
    2020  wnetworks = netxml_doc.findall('wireless-network')
    2121
     
    5555  bssid_failed = defaultdict(int)
    5656
    57   # Prepare new accespoints and measurements
     57  # Prepare new accesspoints and measurements
    5858  points = gpsxml_doc.findall('gps-point')
    5959
Note: See TracChangeset for help on using the changeset viewer.