Mercurial > libervia-backend
comparison src/memory/memory.py @ 1460:c7fd121a6180
core: getProfileName no raise ProfileUnknownError + minor doc fixes
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 16 Aug 2015 00:41:58 +0200 |
parents | b003dbd2b4e9 |
children | c2a498dce4b4 |
comparison
equal
deleted
inserted
replaced
1459:4c4f88d7b156 | 1460:c7fd121a6180 |
---|---|
359 """Return name of profile from keyword | 359 """Return name of profile from keyword |
360 | 360 |
361 @param profile_key: can be the profile name or a keywork (like @DEFAULT@) | 361 @param profile_key: can be the profile name or a keywork (like @DEFAULT@) |
362 @param return_profile_keys: if True, return unmanaged profile keys (like "@ALL@"). This keys must be managed by the caller | 362 @param return_profile_keys: if True, return unmanaged profile keys (like "@ALL@"). This keys must be managed by the caller |
363 @return: requested profile name or emptry string if it doesn't exist | 363 @return: requested profile name or emptry string if it doesn't exist |
364 @raise exceptions.ProfileUnknownError if profile doesn't exists | |
364 """ | 365 """ |
365 return self.params.getProfileName(profile_key, return_profile_keys) | 366 return self.params.getProfileName(profile_key, return_profile_keys) |
366 | 367 |
367 def asyncCreateProfile(self, name, password=''): | 368 def asyncCreateProfile(self, name, password=''): |
368 """Create a new profile | 369 """Create a new profile |