def MakeKillDragObject(self, notification): fakeNode = KeyVal() kmID, kmHash = KillMailBaseFormatter.GetKillMailIDandHash( notification.data) theRealKm = sm.RemoteSvc('warStatisticMgr').GetKillMail(kmID, kmHash) fakeNode.mail = theRealKm fakeNode.__guid__ = 'listentry.KillMail' return [fakeNode]
def MakeData(killMailID, killMailHash, victimShipTypeID): d = {VICTIM_SHIP_TYPE_ID: victimShipTypeID} d.update(KillMailBaseFormatter.MakeData(killMailID, killMailHash)) return d
def OpenKillReport(self, notification): import eve.client.script.ui.shared.killReportUtil as killReportUtil kmID, kmHash = KillMailBaseFormatter.GetKillMailIDandHash( notification.data) theRealKm = sm.RemoteSvc('warStatisticMgr').GetKillMail(kmID, kmHash) killReportUtil.OpenKillReport(theRealKm)
def MakeData(killMailID, killMailHash, victimID, victimShipTypeID): d = {'victimID': victimID, 'victimShipTypeID': victimShipTypeID} d.update( KillMailBaseFormatter.MakeData(killMailID=killMailID, killMailHash=killMailHash)) return d