Mercurial > libervia-backend
comparison src/plugins/plugin_misc_static_blog.py @ 1468:731fbed0b9cf
quick_frontend, primitivus: handling of actionNew signal
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 18 Aug 2015 09:01:18 +0200 |
parents | 4c48e2549592 |
children | b505b01195f0 |
comparison
equal
deleted
inserted
replaced
1467:ceba6fd77739 | 1468:731fbed0b9cf |
---|---|
81 | 81 |
82 @param menu_data: %(menu_data)s | 82 @param menu_data: %(menu_data)s |
83 @param profile: %(doc_profile)s | 83 @param profile: %(doc_profile)s |
84 @return: dict | 84 @return: dict |
85 """ | 85 """ |
86 # FIXME: "public_blog" key has been removed | |
87 # TODO: replace this with a more generic widget call with URIs | |
86 try: | 88 try: |
87 user_jid = jid.JID(menu_data['jid']) | 89 user_jid = jid.JID(menu_data['jid']) |
88 except KeyError: | 90 except KeyError: |
89 log.error(_("jid key is not present !")) | 91 log.error(_("jid key is not present !")) |
90 return defer.fail(exceptions.DataError) | 92 return defer.fail(exceptions.DataError) |