[dkirov] JEP says we should not use EXTVAL in vcard
This commit is contained in:
parent
d91d0e0b0e
commit
2f9b0eab28
|
@ -16,7 +16,6 @@
|
|||
import gtk
|
||||
import gtk.glade
|
||||
import gobject
|
||||
import urllib
|
||||
import base64
|
||||
import mimetypes
|
||||
import os
|
||||
|
@ -53,13 +52,6 @@ def get_avatar_pixbuf_encoded_mime(photo):
|
|||
img_decoded = base64.decodestring(img_encoded)
|
||||
except:
|
||||
pass
|
||||
elif photo.has_key('EXTVAL'):
|
||||
url = photo['EXTVAL']
|
||||
try:
|
||||
fd = urllib.urlopen(url)
|
||||
img_decoded = fd.read()
|
||||
except:
|
||||
pass
|
||||
if img_decoded:
|
||||
pixbuf = gtkgui_helpers.get_pixbuf_from_data(img_decoded)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue