def isValidAccountType(self, itemsCache=None): attrs = itemsCache.items.stats.attributes if itemsCache is not None else 0 return not (isOutOfWallet(attrs) and not isClanEnabled(attrs))
def isValidAccountType(self): attrs = g_itemsCache.items.stats.attributes return not (isOutOfWallet(attrs) and not isClanEnabled(attrs))