Subversion Repositories kim

Rev

Rev 6 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6 Rev 7
Line 45... Line 45...
45
45
46
    def __init__(self):
46
    def __init__(self):
47
        self.options = get_app_options()
47
        self.options = get_app_options()
48
        self.utils = Utils(self.options)
48
        self.utils = Utils(self.options)
49
        self.log = Logger('KIM', level=self.options.LOGLEVEL).get_logger()
49
        self.log = Logger('KIM', level=self.options.LOGLEVEL).get_logger()
50
        self.log.info('Starting %s %s', name, version)
-
 
-
 
50
        self.log.debug('Starting %s %s', name, version)
51
51
52
    def run(self):
52
    def run(self):
53
        snff = self.utils.get_firefox_history()
53
        snff = self.utils.get_firefox_history()
54
        snch = self.utils.get_chrome_history()
54
        snch = self.utils.get_chrome_history()
55
        usndict = self.utils.get_uniq_sapnotes([snff, snch])
55
        usndict = self.utils.get_uniq_sapnotes([snff, snch])
56
        self.log.debug(usndict)
-
 
-
 
56
        self.log.debug("Total Unique SAP Notes: %d", len(usndict))
57
57
58
        return usndict
58
        return usndict
59
59
60
60
61
def main():
61
def main():
62
    kim = KIM()
62
    kim = KIM()
63
    kim.run()
-
 
64
-
 
-
 
63
    usndict = kim.run()
-
 
64
    return usndict
65
65
66
if __name__ == '__main__':
66
if __name__ == '__main__':
67
    main()
67
    main()
68
-