core, bridge: added a profileSetDefault method
This commit is contained in:
parent
22696ec80b
commit
182f192703
1 changed files with 40 additions and 2 deletions
|
|
@ -200,7 +200,7 @@ class Params(object):
|
|||
if profile_key == '@DEFAULT@':
|
||||
default = self.host.memory.memory_data.get('Profile_default')
|
||||
if not default:
|
||||
log.info(_('No default profile, returning first one')) # TODO: manage real default profile
|
||||
log.info(_('No default profile, returning first one'))
|
||||
try:
|
||||
default = self.host.memory.memory_data['Profile_default'] = self.storage.getProfilesList()[0]
|
||||
except IndexError:
|
||||
|
|
|
|||
Loading…
Reference in a new issue