val = int(value)
elif name in ["IPv4", "IPv6", "Ethernet", "Proxy" ]:
val = extract_values(value)
- elif name in ["Nameservers", "Domains", "Services",
- "Update", "Technologies", "AvailableTechnologies",
- "EnabledTechnologies", "ConnectedTechnologies" ]:
+ elif name in ["Nameservers", "Domains", "Services", "Technologies"]:
val = extract_list(value)
else:
val = str(value)
for i in value:
val = val + " " + i[i.rfind("/") + 1:]
val = val + " ]"
- elif name in ["AvailableTechnologies", "EnabledTechnologies",
- "ConnectedTechnologies",
- "AvailableDebugs", "EnabledDebugs"]:
- val = "["
- for i in value:
- val = val + " " + i
- val = val + " ]"
elif name in ["Strength", "Priority"]:
val = int(value)
else:
properties = manager.GetProperties()
for key in properties.keys():
- if key in ["AvailableDebugs", "EnabledDebugs"]:
- print "%s" % (key)
- list = ""
- for val in properties[key]:
- list = list + val + " "
- print " [ %s]" % (list)
- elif key in ["OfflineMode", "SessionMode"]:
+ if key in ["OfflineMode", "SessionMode"]:
print "%s" % (key)
if properties[key] == dbus.Boolean(1):
print " true"