Mercurial > libervia-backend
diff frontends/src/jp/cmd_blog.py @ 2280:4bc9a2c2d6c9
jp (pubsub, common): fixed last item edition (keep item id instead of creating a new one)
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 28 Jun 2017 20:28:24 +0200 |
parents | 5f0dbf42aa9c |
children | 4fd010f29f99 |
line wrap: on
line diff
--- a/frontends/src/jp/cmd_blog.py Wed Jun 28 19:19:08 2017 +0200 +++ b/frontends/src/jp/cmd_blog.py Wed Jun 28 20:28:24 2017 +0200 @@ -336,8 +336,6 @@ def edit(self, content_file_path, content_file_obj, mb_data=None): """Edit the file contening the content using editor, and publish it""" - if mb_data is not None: - self.pubsub_item = mb_data['id'] # we first create metadata file meta_ori, meta_file_path = self.buildMetadataFile(content_file_path, mb_data) @@ -377,7 +375,7 @@ content = self.host.bridge.syntaxConvert(content, 'text', 'XHTML', False, self.profile) if content and self.current_syntax != 'XHTML': content = self.host.bridge.syntaxConvert(content, 'XHTML', self.current_syntax, False, self.profile) - return content, mb_data + return content, mb_data, mb_data['id'] def start(self): # if there are user defined extension, we use them