def __init__ (self, properties, provider): Account.__init__(self, properties, provider) self.total_unread = 0 self.cache = FeedCache(self) self.cache.load() for f in self.cache.feeds.values(): if not f.feed_read: self.total_unread = self.total_unread + 1 self.new_unread = []
def load_account(self, props): return Account(props, self)
def activate (self): self.mark_read() Account.activate(self)