core, bridge: added a profileSetDefault method
This commit is contained in:
parent
22696ec80b
commit
182f192703
1 changed files with 40 additions and 2 deletions
|
|
@ -433,6 +433,16 @@ class Memory(object):
|
|||
"""
|
||||
return self.params.getProfileName(profile_key, return_profile_keys)
|
||||
|
||||
def profileSetDefault(self, profile):
|
||||
"""Set default profile
|
||||
|
||||
@param profile: %(doc_profile)s
|
||||
"""
|
||||
# we want to be sure that the profile exists
|
||||
profile = self.getProfileName(profile)
|
||||
|
||||
self.memory_data['Profile_default'] = profile
|
||||
|
||||
def asyncCreateProfile(self, name, password=''):
|
||||
"""Create a new profile
|
||||
@param name: profile name
|
||||
|
|
|
|||
Loading…
Reference in a new issue