Exemplo n.º 1
0
 def _hasNewItems(self, type, itemsInGroupIDs):
     newItemsIds = CustomizationHelper.getNewIdsByType(type, self._nationID)
     if type == CUSTOMIZATION_ITEM_TYPE.EMBLEM_TYPE:
         groupIdsSet = set(itemsInGroupIDs)
     else:
         groupIdsSet = set(((self._nationID, id) for id in itemsInGroupIDs))
     result = groupIdsSet.intersection(newItemsIds)
     return len(result) > 0
Exemplo n.º 2
0
 def __init__(self, name, nationId, type, position = -1):
     super(BaseTimedCustomizationInterface, self).__init__(name, nationId, type, position)
     self._currentItemID = None
     self._currentLifeCycle = None
     self._newItemID = None
     self._rentalPackageDP = None
     self._groupsDP = None
     self._itemsDP = None
     self._flashObject = None
     self.__newIds = CustomizationHelper.getNewIdsByType(CUSTOMIZATION_ITEM_TYPE.CI_TYPES[type], nationId)
 def hasNewItems(self):
     type = CUSTOMIZATION_ITEM_TYPE.CI_TYPES[self._type]
     newItemIDs = CustomizationHelper.getNewIdsByType(type, self._nationID)
     return len(newItemIDs) > 0
Exemplo n.º 4
0
 def hasNewItems(self):
     type = CUSTOMIZATION_ITEM_TYPE.CI_TYPES[self._type]
     newItemIDs = CustomizationHelper.getNewIdsByType(type, self._nationID)
     return len(newItemIDs) > 0