13 |
from gtk import glade |
from gtk import glade |
14 |
|
|
15 |
import straw |
import straw |
16 |
from error import log |
from error import log, logparam |
17 |
import htmlentitydefs |
import htmlentitydefs |
18 |
import time |
import time |
19 |
|
|
90 |
|
|
91 |
def request_url(self, document, url, stream): |
def request_url(self, document, url, stream): |
92 |
try: |
try: |
93 |
image = straw.ImageCache.retrieve( |
image = straw.ImageCache.cache[ |
94 |
straw.main.get_visible_feed().complete_url(url)) |
straw.main.get_visible_feed().complete_url(url)] |
95 |
stream.write(image.get_data()) |
stream.write(image.get_data()) |
96 |
except Exception, ex: |
except Exception, ex: |
97 |
|
log(ex) |
98 |
raise |
raise |
99 |
|
|
100 |
stream.close() |
stream.close() |