Пример #1
0
 def __init__(self, account):
     """
     Create a fake category in libgreader
     """
     # create the fake category
     g_special_category = gCategory(account.g_object, "Orphan feeds", 'orphans')
     super(OrphanFeedsCategory, self).__init__(
         id         = g_special_category.id, 
         account    = account, 
         g_category = g_special_category, 
     )
Пример #2
0
 def __init__(self, account):
     """
     Create a fake category in libgreader and then here, and add 
     special feeds to it
     """
     id = 'specials'
     self.base_unread = 0
     
     # create the fake category
     g_special_category = gCategory(account.g_object, "Specials", id)
     super(SpecialCategory, self).__init__(
         id         = g_special_category.id, 
         account    = account, 
         g_category = g_special_category, 
     )
     
     self.special_feeds = {}
     self.special_feeds_by_strict_id = {}
     
     # create and add special feeds
     for special_type in settings.special_feeds:
         feed = SpecialFeed(account, special_type)
         self.add_feed(feed)
         self.special_feeds[special_type] = feed