def get_profile_list(self): """ Returns all the stored profiles as a list of C{MobileProfile} objects """ return [ MobileProfile.from_name(name, self.path) for name in os.listdir(self.path) ]
def _initialize_profile(self): name = self.get('profile', 'name') # name might not be set if we've just started if name: profile = MobileProfile.from_name(name) self.set_current_profile(profile)
def get_profile_list(self): """ Returns all the stored profiles as a list of C{MobileProfile} objects """ return [MobileProfile.from_name(name, self.path) for name in os.listdir(self.path)]