comparison src/memory/params.py @ 1044:85c110c0be86

plugins misc_account, misc_register_account: manually delete the sessions when not needed anymore
author souliane <souliane@mailoo.org>
date Wed, 21 May 2014 23:17:51 +0200
parents 59de0c7a28ec
children de415d7984f7
comparison
equal deleted inserted replaced
1043:066308706dc6 1044:85c110c0be86
189 elif profile_key == C.PROF_KEY_NONE: 189 elif profile_key == C.PROF_KEY_NONE:
190 raise exceptions.ProfileNotSetError 190 raise exceptions.ProfileNotSetError
191 elif return_profile_keys and profile_key in ["@ALL@"]: 191 elif return_profile_keys and profile_key in ["@ALL@"]:
192 return profile_key # this value must be managed by the caller 192 return profile_key # this value must be managed by the caller
193 if not self.storage.hasProfile(profile_key): 193 if not self.storage.hasProfile(profile_key):
194 log.error(_('Trying to access an unknown profile')) 194 log.error(_('Trying to access an unknown profile (%s)') % profile_key)
195 return "" # FIXME: raise exceptions.ProfileUnknownError here (must be well checked, this method is used in lot of places) 195 return "" # FIXME: raise exceptions.ProfileUnknownError here (must be well checked, this method is used in lot of places)
196 return profile_key 196 return profile_key
197 197
198 def __get_unique_node(self, parent, tag, name): 198 def __get_unique_node(self, parent, tag, name):
199 """return node with given tag 199 """return node with given tag