def _configure_profile(self, name, opts): if self.config.current_profile: # save current settings if a profile is active self.config.current_profile.write() profile = MobileProfile.from_dict(name, opts) self.load_profile(profile)
def create_profile(self, name, opts): """ Creates a new mobile profile with C{name} from the C{opts} dict """ return MobileProfile.from_dict(name, opts, path=self.path)