def sellItem(self, itemId): dataCompactId = int(itemId) typeID = self._itemsCache.items.getItemByCD(dataCompactId).itemTypeID if dataCompactId else UNDEFINED_ITEM_CD if typeID == GUI_ITEM_TYPE.BATTLE_BOOSTER: showBattleBoosterSellDialog(dataCompactId) else: yield DialogsInterface.showDialog(SellModuleMeta(dataCompactId))
def __sellItem(self, itemTypeCompactDescr): isOk, args = yield DialogsInterface.showDialog( SellModuleMeta(itemTypeCompactDescr)) LOG_DEBUG('Sell module confirm dialog results', isOk, args)
def sell(self): yield DialogsInterface.showDialog(SellModuleMeta(self._id))
def sellItem(self, itemId): yield DialogsInterface.showDialog(SellModuleMeta(int(itemId)))
def sellItem(self): yield DialogsInterface.showDialog(SellModuleMeta(int(self._intCD)))