예제 #1
0
 def feeds_not_fetched(self, operation_id):
     """
     Actions when feeds couldn't be fetched
     """
     try:
         account = Operation.get_by_id(operation_id).params['object']
     except:
         pass
     else:
         if account == self.account:
             for view in self.views:
                 try:
                     view.feeds_not_fetched()
                 except:
                     pass
예제 #2
0
 def feed_content_fetched(self, operation_id):
     """
     Action when some of a feed's content was just fetched
     """
     try:
         feed = Operation.get_by_id(operation_id).params['object']
     except:
         pass
     else:
         if feed.account == self.account:
             for view in self.views:
                 try:
                     view.feed_content_fetched(feed)
                 except:
                     pass
예제 #3
0
 def cannot_authenticate(self, operation_id):
     """
     Called when the authentication cannot be done
     """
     try:
         account = Operation.get_by_id(operation_id).params['object']
     except:
         pass
     else:
         if account == self.account:
             for view in self.views:
                 try:
                     view.cannot_authenticate()
                 except:
                     pass