()
return networks
Returns a list of preferred wireless networks.

  The list is created by getting the user's preferred networks from the
  machineinfo file and appending this to the _SSIDS defined above

  Returns:
    networks: The list of networks
Returns a list of preferred wireless networks.
Returns a list of preferred wireless networks .
def GetPreferredNetworks():
  """Returns a list of preferred wireless networks.

  The list is created by getting the user's preferred networks from the
  machineinfo file and appending this to the _SSIDS defined above

  Returns:
    networks: The list of networks
  """
  networks = []
  plistdata = gmacpyutil.MachineInfoForKey('PreferredNetworks')
  if plistdata:
    # Backwards compatible with single string PreferredNetworks
    if isinstance(plistdata, basestring):
      networks = [plistdata]
    else:
      networks = list(plistdata)

  networks = _SSIDS + networks
  return networks
def GetPreferredNetworks ( ) : networks = [ ] plistdata = gmacpyutil . MachineInfoForKey ( 'PreferredNetworks' ) if plistdata : # Backwards compatible with single string PreferredNetworks if isinstance ( plistdata , basestring ) : networks = [ plistdata ] else : networks = list ( plistdata ) networks = _SSIDS + networks return networks