def setPersistentState(self, state): result = False if len(state) == 2: self._name, itemType = state self._item = createItem(self._userID, itemType, trusted=False) result = True return result
def setPersistentState(self, state): result = False if len(state) == 3: self._name, itemType, tags = state self._item = createItem(self._databaseID, itemType, trusted=False) if tags: self.addTags(tags) result = True return result
def __init__(self, databaseID, name=None, tags=None, clanInfo=None, item=None): super(XMPPUserEntity, self).__init__(databaseID, name, tags, clanInfo) self._item = item or createItem(databaseID) self._gos = GAME_ONLINE_STATUS.UNDEFINED
def __init__(self, userID, name=None, tags=None, clanInfo=None, item=None, gos=GAME_ONLINE_STATUS.UNDEFINED, scope=None): super(XMPPUserEntity, self).__init__(userID, name, tags, clanInfo, scope=scope) self._item = item or createItem(userID) self._gos = gos
def removeTags(self, tags): super(XMPPUserEntity, self).removeTags(tags) if self._item.removeTags(tags): self._item = createItem(self._userID)
def removeTags(self, tags): super(XMPPUserEntity, self).removeTags(tags) if self._item.removeTags(tags): self._item = createItem(self._databaseID)
def __init__(self, databaseID, name = None, tags = None, clanInfo = None, item = None): super(XMPPUserEntity, self).__init__(databaseID, name, tags, clanInfo) self._item = item or createItem(databaseID) self._gos = GAME_ONLINE_STATUS.UNDEFINED
def __init__(self, databaseID, name = 'Unknown', tags = None, clanAbbrev = None, clanRole = 0, item = None): super(XMPPUserEntity, self).__init__(databaseID, name, tags, clanAbbrev, clanRole) self._item = item or createItem(databaseID) self._isOnlineInBW = False