Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/p/y/python-networkmanager-0.9.11/examples/activate_connection.py   python-networkmanager(Download)
if ctype == 'vpn':
    for dev in NetworkManager.NetworkManager.GetDevices():
        if dev.State == NetworkManager.NM_DEVICE_STATE_ACTIVATED and dev.Managed:
            break
    else:

src/p/y/python-networkmanager-HEAD/examples/activate_connection.py   python-networkmanager(Download)
if ctype == 'vpn':
    for dev in NetworkManager.NetworkManager.GetDevices():
        if dev.State == NetworkManager.NM_DEVICE_STATE_ACTIVATED and dev.Managed:
            break
    else:

src/p/y/python-networkmanager-0.9.11/examples/openvpn_over_ssh.py   python-networkmanager(Download)
# Activate VPN
for dev in NetworkManager.NetworkManager.GetDevices():
    if dev.State == NetworkManager.NM_DEVICE_STATE_ACTIVATED and dev.Managed:
        break
else:

src/p/y/python-networkmanager-HEAD/examples/openvpn_over_ssh.py   python-networkmanager(Download)
# Activate VPN
for dev in NetworkManager.NetworkManager.GetDevices():
    if dev.State == NetworkManager.NM_DEVICE_STATE_ACTIVATED and dev.Managed:
        break
else:

src/w/e/wefree-HEAD/wefree/osabstraction.py   wefree(Download)
    def __init__(self):
        NetworkingBackend.__init__(self)
        self.CONNECTED_STATE = NetworkManager.NM_DEVICE_STATE_ACTIVATED
        self.FAILED_STATE = NetworkManager.NM_DEVICE_STATE_FAILED
 

src/w/e/wefree-HEAD/wefree/interfaces.py   wefree(Download)
    def __init__(self):
        super(WifiInterfacesNetworkManager, self).__init__()
        self.pending_signal = None
        self.CONNECTED_STATE = NetworkManager.NM_DEVICE_STATE_ACTIVATED
        self.FAILED_STATE = NetworkManager.NM_DEVICE_STATE_FAILED