예제 #1
0
파일: ui.py 프로젝트: vagner4work/feedIO
 def displayTopics(self):
     """
     function to display the current topics list in the combo box.
     """
     self.topicList = classifier.listTopics()
     self.topicList.remove(classifier.getTopic("General"))
     topicTitles = [topic.title for topic in self.topicList]
     self.ui.topicListCombo.clear()
     self.ui.topicListCombo.addItems(topicTitles)
예제 #2
0
파일: ui.py 프로젝트: onenonlycasper/feedIO
 def displayTopics(self):
     """
     function to display the current topics list in the combo box.
     """
     self.topicList = classifier.listTopics()
     self.topicList.remove(classifier.getTopic("General"))
     topicTitles = [topic.title for topic in self.topicList]
     self.ui.topicListCombo.clear()
     self.ui.topicListCombo.addItems(topicTitles)
예제 #3
0
파일: ui.py 프로젝트: onenonlycasper/feedIO
    def reCalculateAllScores(self):
        """
        Function to get all the Unread Articles and calculate their scores under all the topics.
        """
        #get all the topics
        print "reCalculating All Scores"
        topicsList = classifier.listTopics()

        for topic in topicsList:
            self.reCalculateScores(topic)
예제 #4
0
파일: ui.py 프로젝트: vagner4work/feedIO
    def reCalculateAllScores(self):
        """
        Function to get all the Unread Articles and calculate their scores under all the topics.
        """
        #get all the topics
        print "reCalculating All Scores"
        topicsList = classifier.listTopics()

        for topic in topicsList:
            self.reCalculateScores(topic)
예제 #5
0
파일: ui.py 프로젝트: onenonlycasper/feedIO
    def setNewItemScores(self):
        """
        Function to get the New Articles and calculate their scores under all the topics
        """
        #get all the topics
        topicsList = classifier.listTopics()

        for topic in topicsList:
            pri = prioritizer.Prioritizer(topic)
            scoreItemsList = pri.listScoreItems()
            scoreItemList = [scoreItem for scoreItem in scoreItemsList if scoreItem.item.age is 0]
            pri.setScores(scoreItemList)
            print "calculated New article scores for %s" % topic.title
예제 #6
0
파일: ui.py 프로젝트: seejay/feedIO
    def setNewItemScores(self):
        """
        Function to get the New Articles and calculate their scores under all the topics
        """
        #get all the topics
        topicsList = classifier.listTopics()

        for topic in topicsList:
            pri = prioritizer.Prioritizer(topic)
            scoreItemsList = pri.listScoreItems()
            scoreItemList = [scoreItem for scoreItem in scoreItemsList if scoreItem.item.age is 0]
            pri.setScores(scoreItemList)
            print "calculated New article scores for %s" % topic.title
예제 #7
0
파일: ui.py 프로젝트: onenonlycasper/feedIO
 def displayTopics(self):
     self.topicList = classifier.listTopics()
     self.topicList.remove(classifier.getTopic("General"))
     topicTitles = [topic.title for topic in self.topicList]
     self.ui.topicList.clear()
     self.ui.topicList.addItems(topicTitles)
예제 #8
0
파일: ui.py 프로젝트: onenonlycasper/feedIO
 def displayTopics(self):
     self.topicList = classifier.listTopics()
     topicTitles = [topic.title for topic in self.topicList]
     self.ui.comboTopic.clear()
     self.ui.comboTopic.addItems(topicTitles)
예제 #9
0
파일: ui.py 프로젝트: vagner4work/feedIO
 def displayTopics(self):
     self.topicList = classifier.listTopics()
     self.topicList.remove(classifier.getTopic("General"))
     topicTitles = [topic.title for topic in self.topicList]
     self.ui.topicList.clear()
     self.ui.topicList.addItems(topicTitles)
예제 #10
0
파일: ui.py 프로젝트: vagner4work/feedIO
 def displayTopics(self):
     self.topicList = classifier.listTopics()
     topicTitles = [topic.title for topic in self.topicList]
     self.ui.comboTopic.clear()
     self.ui.comboTopic.addItems(topicTitles)