comparison commitwatcher/agent.py @ 9:08dd6fbbec3a

commitwatcher/agent.py
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 27 Sep 2013 14:23:53 -0700
parents 2061b13f7aad
children 7ae60d2ff1c2
comparison
equal deleted inserted replaced
8:2061b13f7aad 9:08dd6fbbec3a
26 26
27 def feed(self): 27 def feed(self):
28 """feed URL""" 28 """feed URL"""
29 return '/'.join((self.repository.rstrip('/'), 'atom-log')) 29 return '/'.join((self.repository.rstrip('/'), 'atom-log'))
30 30
31 @abstractmethod
32 def files(self, revision):
33 """gets the files from the revision link"""
34
31 def update(self): 35 def update(self):
32 """update""" 36 """update"""
33 37
34 feed = feedparser.parse(self.feed()) 38 feed = feedparser.parse(self.feed())
35 for entry in feed['entries']: 39 for entry in feed['entries']:
36 40
37 # get paths from diff 41 # get paths from diff
38 link = entry['link'] 42 link = entry['link']
39 print link 43 print link
44 files = self.files(link)
40 # TODO 45 # TODO
41 46
42 # TODO commit = Commit() 47 # TODO commit = Commit()