/[straw]/straw/src/lib/FeedDataRouter.py
ViewVC logotype

Diff of /straw/src/lib/FeedDataRouter.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by juri, Thu Oct 16 20:20:55 2003 UTC revision 1.5 by jmalonzo, Fri Oct 17 08:16:00 2003 UTC
# Line 61  class FeedDataRouter(object): Line 61  class FeedDataRouter(object):
61          if self._feed.channel_blogroll_location:          if self._feed.channel_blogroll_location:
62              self._wait_subscriptions = 1              self._wait_subscriptions = 1
63              bc = ExtrasConsumer(self.blogroll_success, self.blogroll_fail)              bc = ExtrasConsumer(self.blogroll_success, self.blogroll_fail)
64              straw.URLFetch.connection_manager.request(              straw.URLFetch.connection_manager.request(self._feed.channel_blogroll_location, bc)
                 self._feed.channel_blogroll_location, bc)  
65          if self._feed.channel_subscriptions_location:          if self._feed.channel_subscriptions_location:
66              sc = ExtrasConsumer(self.subscriptions_success,              sc = ExtrasConsumer(self.subscriptions_success, self.subscriptions_fail)
67                  self.subscriptions_fail)              straw.URLFetch.connection_manager.request(self._feed.channel_subscriptions_location, sc)
             straw.URLFetch.connection_manager.request(  
                 self._feed.channel_subscriptions_location, sc)  
68          self.update_process_status()          self.update_process_status()
69    
70      def set_error(self, error):      def set_error(self, error):
# Line 102  class FeedDataRouter(object): Line 99  class FeedDataRouter(object):
99          self.update_process_status()          self.update_process_status()
100    
101      def update_process_status(self):      def update_process_status(self):
102          if self._wait_data or len(self._wait_images) or self._wait_subscriptions or self._wait_blogroll:          length_images = len(self._wait_images)
103            if self._wait_data or length_images or self._wait_subscriptions or self._wait_blogroll:
104              self._feed.process_status = self._feed.STATUS_POLLING              self._feed.process_status = self._feed.STATUS_POLLING
105          else:          else:
106              self._feed.process_status = self._feed.STATUS_IDLE              self._feed.process_status = self._feed.STATUS_IDLE

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26