本文整理汇总了Python中nmlib.nm_utils.TypeConvert.py2_dbus_string方法的典型用法代码示例。如果您正苦于以下问题:Python TypeConvert.py2_dbus_string方法的具体用法?Python TypeConvert.py2_dbus_string怎么用?Python TypeConvert.py2_dbus_string使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类nmlib.nm_utils.TypeConvert
的用法示例。
在下文中一共展示了TypeConvert.py2_dbus_string方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: set_wep_key
# 需要导入模块: from nmlib.nm_utils import TypeConvert [as 别名]
# 或者: from nmlib.nm_utils.TypeConvert import py2_dbus_string [as 别名]
def set_wep_key(self, idx, key):
if idx == 0:
self.prop_dict["wep-key0"] = TypeConvert.py2_dbus_string(key)
elif idx == 1:
self.prop_dict["wep-key1"] = TypeConvert.py2_dbus_string(key)
elif idx == 2:
self.prop_dict["wep-key2"] = TypeConvert.py2_dbus_string(key)
elif idx == 3:
self.prop_dict["wep-key3"] = TypeConvert.py2_dbus_string(key)
else:
print "invalid idx"
示例2: add_dns_search
# 需要导入模块: from nmlib.nm_utils import TypeConvert [as 别名]
# 或者: from nmlib.nm_utils.TypeConvert import py2_dbus_string [as 别名]
def add_dns_search(self, dns):
if dns in self.dns_search:
print "already have the dns search"
else:
if "dns-search" not in self.prop_dict.iterkeys():
self.clear_dns_search()
self.prop_dict["dns-search"].append(TypeConvert.py2_dbus_string(dns))
示例3: pin
# 需要导入模块: from nmlib.nm_utils import TypeConvert [as 别名]
# 或者: from nmlib.nm_utils.TypeConvert import py2_dbus_string [as 别名]
def pin(self, new_pin):
self.prop_dict["pin"] = TypeConvert.py2_dbus_string(new_pin)
示例4: id
# 需要导入模块: from nmlib.nm_utils import TypeConvert [as 别名]
# 或者: from nmlib.nm_utils.TypeConvert import py2_dbus_string [as 别名]
def id(self, new_id):
self.prop_dict["id"] = TypeConvert.py2_dbus_string(new_id)
示例5: type
# 需要导入模块: from nmlib.nm_utils import TypeConvert [as 别名]
# 或者: from nmlib.nm_utils.TypeConvert import py2_dbus_string [as 别名]
def type(self, new_type):
self.prop_dict["type"] = TypeConvert.py2_dbus_string(new_type)
示例6: user_name
# 需要导入模块: from nmlib.nm_utils import TypeConvert [as 别名]
# 或者: from nmlib.nm_utils.TypeConvert import py2_dbus_string [as 别名]
def user_name(self, new_user_name):
self.prop_dict["user-name"] = TypeConvert.py2_dbus_string(new_user_name)
示例7: parity
# 需要导入模块: from nmlib.nm_utils import TypeConvert [as 别名]
# 或者: from nmlib.nm_utils.TypeConvert import py2_dbus_string [as 别名]
def parity(self, new_parity):
self.prop_dict["parity"] = TypeConvert.py2_dbus_string(new_parity)
示例8: key_mgmt
# 需要导入模块: from nmlib.nm_utils import TypeConvert [as 别名]
# 或者: from nmlib.nm_utils.TypeConvert import py2_dbus_string [as 别名]
def key_mgmt(self, new_key_mgmt):
if new_key_mgmt in ["none", "ieee8021x", "wpa-none", "wpa-psk", "wpa-eap"]:
self.prop_dict["key-mgmt"] = TypeConvert.py2_dbus_string(new_key_mgmt)
示例9: duplex
# 需要导入模块: from nmlib.nm_utils import TypeConvert [as 别名]
# 或者: from nmlib.nm_utils.TypeConvert import py2_dbus_string [as 别名]
def duplex(self, new_duplex):
self.prop_dict["duplex"] = TypeConvert.py2_dbus_string(new_duplex)
示例10: s390_nettype
# 需要导入模块: from nmlib.nm_utils import TypeConvert [as 别名]
# 或者: from nmlib.nm_utils.TypeConvert import py2_dbus_string [as 别名]
def s390_nettype(self, new_s390_nettype):
self.prop_dict["s390-nettype"] = TypeConvert.py2_dbus_string(new_s390_nettype)
示例11: port
# 需要导入模块: from nmlib.nm_utils import TypeConvert [as 别名]
# 或者: from nmlib.nm_utils.TypeConvert import py2_dbus_string [as 别名]
def port(self, new_port):
self.prop_dict["port"] = TypeConvert.py2_dbus_string(new_port)
示例12: password
# 需要导入模块: from nmlib.nm_utils import TypeConvert [as 别名]
# 或者: from nmlib.nm_utils.TypeConvert import py2_dbus_string [as 别名]
def password(self, new_password):
self.prop_dict["password"] = TypeConvert.py2_dbus_string(new_password)
示例13: ca_path
# 需要导入模块: from nmlib.nm_utils import TypeConvert [as 别名]
# 或者: from nmlib.nm_utils.TypeConvert import py2_dbus_string [as 别名]
def ca_path(self, new_ca_path):
self.prop_dict["ca-path"] = TypeConvert.py2_dbus_string(new_ca_path)
示例14: anonymous_identity
# 需要导入模块: from nmlib.nm_utils import TypeConvert [as 别名]
# 或者: from nmlib.nm_utils.TypeConvert import py2_dbus_string [as 别名]
def anonymous_identity(self, new_anonymous_identity):
self.prop_dict["anonymous-identity"] = TypeConvert.py2_dbus_string(new_anonymous_identity)
示例15: identity
# 需要导入模块: from nmlib.nm_utils import TypeConvert [as 别名]
# 或者: from nmlib.nm_utils.TypeConvert import py2_dbus_string [as 别名]
def identity(self, new_identity):
self.prop_dict["identity"] = TypeConvert.py2_dbus_string(new_identity)