comparison src/plugins/plugin_xep_0277.py @ 484:23cbdf0a0777

core: presence status + last resource refactored and kept in entitiesCache in memory.py, profile cache is purged on disconnection
author Goffi <goffi@goffi.org>
date Wed, 15 Aug 2012 15:50:46 +0200
parents 2a072735e459
children ca13633d3b6b
comparison
equal deleted inserted replaced
482:e0d1eed4a46b 484:23cbdf0a0777
90 microblog_data['content'] = _entry.title.text 90 microblog_data['content'] = _entry.title.text
91 if len(_entry.authors): 91 if len(_entry.authors):
92 microblog_data['author'] = _entry.authors[0].name.text 92 microblog_data['author'] = _entry.authors[0].name.text
93 microblog_data['timestamp'] = str(int(_entry.updated.tf)) 93 microblog_data['timestamp'] = str(int(_entry.updated.tf))
94 microblog_data['id'] = item['id'] 94 microblog_data['id'] = item['id']
95 except AttributeError, KeyError: 95 except (AttributeError, KeyError):
96 error(_('Error while parsing atom entry for microblogging event')) 96 error(_('Error while parsing atom entry for microblogging event'))
97 return {} 97 return {}
98 98
99 ##XXX: workaround for Jappix behaviour 99 ##XXX: workaround for Jappix behaviour
100 if not 'author' in microblog_data: 100 if not 'author' in microblog_data: