Add cleanup method to profiles to support logging out.

This commit is contained in:
Kovid Goyal 2007-12-03 16:59:21 +00:00
parent ad25f2057f
commit a69307c5f1

View File

@ -151,6 +151,9 @@ class DefaultProfile(object):
def parse_feeds(self): def parse_feeds(self):
'''
Create list of articles from a list of feeds.
'''
feeds = self.get_feeds() feeds = self.get_feeds()
articles = {} articles = {}
for title, url in feeds: for title, url in feeds:
@ -213,6 +216,10 @@ class DefaultProfile(object):
def cleanup(self): def cleanup(self):
'''
Called after LRF file has been generated. Use it to do any cleanup like
logging out of subscription sites, etc.
'''
pass pass
@classmethod @classmethod