Lines Matching defs:convert
52 # value (if any). The convert() method on these objects is used to
206 def convert(self, value):
339 def convert(self, value):
342 tmp_list = [ ParamDesc.convert(self, v) for v in value ]
345 tmp_list = [ ParamDesc.convert(self, v) \
349 tmp_list = [ ParamDesc.convert(self, value) ]
379 tmp_list = [ ParamDesc.convert(self, v) for v in value ]
382 tmp_list = [ ParamDesc.convert(self, v) \
386 tmp_list = [ ParamDesc.convert(self, value) ]
604 self.value = convert.toInteger(value)
608 raise TypeError("Can't convert object of type %s to CheckedInt" \
677 raise TypeError("Can't convert object of type %s to Float" \
707 self.value = convert.toMemorySize(value)
719 self.value = convert.toMemorySize(value)
732 # base address is at "512MB". Use toMemorySize() to convert
736 self.value = convert.toMemorySize(value)
750 val = convert.toMemorySize(value)
895 self.value = convert.toBool(value)
1022 self.ip = convert.toIpAddress(value)
1040 return self.ip == convert.toIpAddress(other)
1092 (self.ip, self.netmask) = convert.toIpNetmask(args[0])
1117 return (self.ip, self.netmask) == convert.toIpNetmask(other)
1166 (self.ip, self.port) = convert.toIpWithPort(args[0])
1191 return (self.ip, self.port) == convert.toIpWithPort(other)
1567 self.value = convert.toLatency(value)
1590 # convert latency to ticks
1609 self.value = convert.toFrequency(value)
1622 # convert latency to ticks
1651 self.value = convert.anyToLatency(value)
1680 value = convert.toVoltage(value)
1684 value = convert.toVoltage(value)
1691 value = convert.toCurrent(value)
1695 value = convert.toCurrent(value)
1702 value = convert.toEnergy(value)
1706 value = convert.toEnergy(value)
1715 # convert to bits per second
1716 val = convert.toNetworkBandwidth(value)
1723 val = convert.toNetworkBandwidth(value)
1728 # convert to seconds per byte
1730 # convert to ticks per byte
1754 # convert to bytes per second
1755 val = convert.toMemoryBandwidth(value)
1759 val = convert.toMemoryBandwidth(value)
1764 # convert to seconds per byte
1768 # convert to ticks per byte