comparison src/memory/memory.py @ 1258:c585df65828a

memory: fixes issue in a test
author souliane <souliane@mailoo.org>
date Wed, 22 Oct 2014 18:58:29 +0200
parents 51a85e8f599a
children cfd636203e8f
comparison
equal deleted inserted replaced
1257:83ed877541e3 1258:c585df65828a
493 """ 493 """
494 profile = self.getProfileName(profile_key) 494 profile = self.getProfileName(profile_key)
495 if not profile: 495 if not profile:
496 raise exceptions.ProfileUnknownError(_('Trying to get entity data for a non-existant profile')) 496 raise exceptions.ProfileUnknownError(_('Trying to get entity data for a non-existant profile'))
497 entities_data = self._getEntitiesData(entity_jid, profile) 497 entities_data = self._getEntitiesData(entity_jid, profile)
498 if entity_jid.resource and entity_jid != C.ENTITY_ALL: 498 if entity_jid != C.ENTITY_ALL and entity_jid.resource:
499 self._updateEntityResources(entity_jid, profile) 499 self._updateEntityResources(entity_jid, profile)
500 500
501 for jid_ in entities_data: 501 for jid_ in entities_data:
502 entity_data = entities_data[jid_] 502 entity_data = entities_data[jid_]
503 if value == C.PROF_KEY_NONE and key in entity_data: 503 if value == C.PROF_KEY_NONE and key in entity_data: