def fillList( self ): '''fills the plugin list''' self.listStore.clear() for i in sort( self.pluginManager.getPlugins() ): plugin = self.pluginManager.getPlugin( i ) if plugin == None: continue self.listStore.append( [ '<b>' + plugin.displayName + '</b>', i, \ plugin.description, plugin.isEnabled() ] )
def fillUserList(self): '''fill the user list to the completion''' self.users = UserManager(os.path.join(PATH.CONFIG_DIR, 'users.dat')) j=0 for i in sort(self.users.getUsers()): self.tUser.append_text(i) self.userListStore.append([ i , self.controller.theme.getImage('online') ]) if self.controller.config.glob['lastLoggedAccount'] == i: self.getPreferences(i) self.tUser.set_active(j) j+=1