[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
|
||||||
import gtk.glade
|
import gtk.glade
|
||||||
import gobject
|
import gobject
|
||||||
import urllib
|
|
||||||
import base64
|
import base64
|
||||||
import mimetypes
|
import mimetypes
|
||||||
import os
|
import os
|
||||||
|
@ -53,13 +52,6 @@ def get_avatar_pixbuf_encoded_mime(photo):
|
||||||
img_decoded = base64.decodestring(img_encoded)
|
img_decoded = base64.decodestring(img_encoded)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
elif photo.has_key('EXTVAL'):
|
|
||||||
url = photo['EXTVAL']
|
|
||||||
try:
|
|
||||||
fd = urllib.urlopen(url)
|
|
||||||
img_decoded = fd.read()
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
if img_decoded:
|
if img_decoded:
|
||||||
pixbuf = gtkgui_helpers.get_pixbuf_from_data(img_decoded)
|
pixbuf = gtkgui_helpers.get_pixbuf_from_data(img_decoded)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue