def GetSecurityLabel(self):
     securityStatus = sm.GetService('map').GetSecurityStatus(
         self.jobData.solarSystemID)
     sec, col = FmtSystemSecStatus(securityStatus, 1)
     col.a = 1.0
     color = StrFromColor(col)
     return '<color=%s>%s</color>' % (color, sec)
 def GetSystemNameText(self, solarSystemID):
     solarSystemName = GetByLabel(
         'UI/Contracts/ContractsWindow/ShowInfoLink',
         showInfoName=cfg.evelocations.Get(solarSystemID).name,
         info=('showinfo', const.groupSolarSystem, solarSystemID))
     sec, col = FmtSystemSecStatus(
         self.mapSvc.GetSecurityStatus(solarSystemID), 1)
     col.a = 1.0
     color = StrFromColor(col)
     text = '<color=%s>%s</color> %s' % (color, sec, solarSystemName)
     return text
 def GetSecurityWithColor(self):
     sec, col = FmtSystemSecStatus(self.GetSecurity(), 1)
     col.a = 1.0
     color = StrFromColor(col)
     return '<color=%s>%s</color>' % (color, sec)