comparison src/memory/params.py @ 1263:cfd636203e8f frontends_multi_profiles

core: misc improvments: - added some constants for message types and presence - removed profile authentification specific methods in favor of a more generic "validated" key
author Goffi <goffi@goffi.org>
date Wed, 10 Dec 2014 18:36:11 +0100
parents ff58a49a7022
children faa1129559b8
comparison
equal deleted inserted replaced
1262:f8a8434dbac7 1263:cfd636203e8f
177 else: 177 else:
178 log.info(_("Trying to delete a connected profile")) 178 log.info(_("Trying to delete a connected profile"))
179 return defer.fail(Failure(exceptions.ConnectedProfileError)) 179 return defer.fail(Failure(exceptions.ConnectedProfileError))
180 return self.storage.deleteProfile(profile) 180 return self.storage.deleteProfile(profile)
181 181
182 def getProfileName(self, profile_key, return_profile_keys = False): 182 def getProfileName(self, profile_key, return_profile_keys=False):
183 """return profile according to profile_key 183 """return profile according to profile_key
184 184
185 @param profile_key: profile name or key which can be 185 @param profile_key: profile name or key which can be
186 @ALL@ for all profiles 186 @ALL@ for all profiles
187 @DEFAULT@ for default profile 187 @DEFAULT@ for default profile