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): |
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 |