Пример #1
0
    def getInfo(self):
	dic=ChargeRule.getInfo(self)
	dic["type"]="VoIP"
	dic["tariff_id"]=self.tariff_id
	dic["tariff_name"]=self.getTariffObj().getTariffName()
	return dic
	
Пример #2
0
    def getInfo(self):
	dic=ChargeRule.getInfo(self)
	dic["type"]="Internet"
	dic["bandwidth_limit"]=self.bandwidth_limit
	dic["assumed_kps"]=self.assumed_kps
	dic["cpm"]=self.cpm
	dic["cpk"]=self.cpk
	if self.bw_tx_leaf_id==None:
	    dic["bw_tx_leaf_name"]=''
	    dic["bw_rx_leaf_name"]=''
	else:
	    dic["bw_tx_leaf_name"]=bw_main.getLoader().getLeafByID(self.bw_tx_leaf_id).getLeafName()
	    dic["bw_rx_leaf_name"]=bw_main.getLoader().getLeafByID(self.bw_rx_leaf_id).getLeafName()
	return dic
Пример #3
0
 def getInfo(self):
     dic = ChargeRule.getInfo(self)
     dic["type"] = "Internet"
     dic["bandwidth_limit"] = self.bandwidth_limit
     dic["assumed_kps"] = self.assumed_kps
     dic["cpm"] = self.cpm
     dic["cpk"] = self.cpk
     if self.bw_tx_leaf_id == None:
         dic["bw_tx_leaf_name"] = ''
         dic["bw_rx_leaf_name"] = ''
     else:
         dic["bw_tx_leaf_name"] = bw_main.getLoader().getLeafByID(
             self.bw_tx_leaf_id).getLeafName()
         dic["bw_rx_leaf_name"] = bw_main.getLoader().getLeafByID(
             self.bw_rx_leaf_id).getLeafName()
     return dic
Пример #4
0
 def getInfo(self):
     dic = ChargeRule.getInfo(self)
     dic["type"] = "VoIP"
     dic["tariff_id"] = self.tariff_id
     dic["tariff_name"] = self.getTariffObj().getTariffName()
     return dic