unescape description of profiles
This commit is contained in:
parent
5621107ee2
commit
f87ac66a73
1 changed files with 3 additions and 2 deletions
|
|
@ -18,6 +18,7 @@
|
||||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
|
from html2text import unescape
|
||||||
import socket
|
import socket
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from dateutil.parser import parse as parse_dt
|
from dateutil.parser import parse as parse_dt
|
||||||
|
|
@ -222,9 +223,9 @@ class Contact(_Contact):
|
||||||
self.status = Contact.STATUS_OFFLINE
|
self.status = Contact.STATUS_OFFLINE
|
||||||
self.status_msg = u'last connection %s' % profile['last_cnx']
|
self.status_msg = u'last connection %s' % profile['last_cnx']
|
||||||
|
|
||||||
self.summary = profile.get('announce', '').strip()
|
self.summary = unicode(unescape(profile.get('announce', '').strip()))
|
||||||
if len(profile.get('shopping_list', '')) > 0:
|
if len(profile.get('shopping_list', '')) > 0:
|
||||||
self.summary += u'\n\nLooking for:\n%s' % profile['shopping_list'].strip()
|
self.summary += u'\n\nLooking for:\n%s' % unescape(profile['shopping_list'].strip())
|
||||||
|
|
||||||
for photo in profile['pics']:
|
for photo in profile['pics']:
|
||||||
self.set_photo(photo.split('/')[-1],
|
self.set_photo(photo.split('/')[-1],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue